anncic-api 1.4.18 → 1.4.20
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/index.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x3c0556=a0_0x3d72;function a0_0x3d72(_0x46bae0,_0x3efd1a){var _0x2a4ad1=a0_0x2a4a();return a0_0x3d72=function(_0x3d72ad,_0xd9ecef){_0x3d72ad=_0x3d72ad-0xfd;var _0x10148e=_0x2a4ad1[_0x3d72ad];return _0x10148e;},a0_0x3d72(_0x46bae0,_0x3efd1a);}(function(_0x521e38,_0x525615){var _0x21b5cf=a0_0x3d72,_0x13d624=_0x521e38();while(!![]){try{var _0x432666=parseInt(_0x21b5cf(0x10e))/0x1+parseInt(_0x21b5cf(0x101))/0x2+parseInt(_0x21b5cf(0x10f))/0x3*(-parseInt(_0x21b5cf(0xff))/0x4)+-parseInt(_0x21b5cf(0xfd))/0x5*(-parseInt(_0x21b5cf(0x107))/0x6)+parseInt(_0x21b5cf(0x112))/0x7*(-parseInt(_0x21b5cf(0x100))/0x8)+-parseInt(_0x21b5cf(0x102))/0x9*(parseInt(_0x21b5cf(0x108))/0xa)+-parseInt(_0x21b5cf(0x109))/0xb*(-parseInt(_0x21b5cf(0x10a))/0xc);if(_0x432666===_0x525615)break;else _0x13d624['push'](_0x13d624['shift']());}catch(_0x200eab){_0x13d624['push'](_0x13d624['shift']());}}}(a0_0x2a4a,0xbdeff));function a0_0x2a4a(){var _0x4e354e=['dhauo1234420123gg3234901','appDir','text','xml','641112hgQmMT','30MSeBlx','18337XzvanK','16452COlGsj','20mb','form','/runtime/.upload','708979WtAIcD','1662636mTYsxp','json','__esModule','179991EFdTHj','25tmFPbv','name','8APISam','368LAXgGd','2045678mhliVH','4446990yxblFw'];a0_0x2a4a=function(){return _0x4e354e;};return a0_0x2a4a();}Object['defineProperty'](exports,a0_0x3c0556(0x111),{'value':!![]}),exports['default']=_0x498489=>{var _0x25b25a=a0_0x3c0556;return{'apitest':!![],'keys':_0x498489[_0x25b25a(0xfe)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x25b25a(0x103),'checkcode':_0x25b25a(0x103)}}},'bodyParser':{'enableTypes':[_0x25b25a(0x110),_0x25b25a(0x10c),_0x25b25a(0x105),_0x25b25a(0x106)],'formLimit':_0x25b25a(0x10b),'jsonLimit':_0x25b25a(0x10b),'textLimit':'20mb','xmlLimit':_0x25b25a(0x10b)},'upload':{'tmpdir':_0x498489[_0x25b25a(0x104)]+_0x25b25a(0x10d),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a1_0x1531(_0x57b46a,_0x196c07){var _0x3f7090=a1_0x3f70();return a1_0x1531=function(_0x153128,_0x5e9b9e){_0x153128=_0x153128-0xaa;var _0x402e88=_0x3f7090[_0x153128];return _0x402e88;},a1_0x1531(_0x57b46a,_0x196c07);}var a1_0x489fcd=a1_0x1531;function a1_0x3f70(){var _0x4969c0=['3553kcEXZz','3319848gpyQsZ','50570RcMhwM','1TvtQPp','3023230RFcSCk','3173335xLJOfC','3663846XSzQZY','6sOUyny','652772BLIwBv','__esModule','132196ffPOoW','defineProperty','8OliTKg'];a1_0x3f70=function(){return _0x4969c0;};return a1_0x3f70();}(function(_0x1c64aa,_0x1a0fad){var _0x1c4983=a1_0x1531,_0x1400cd=_0x1c64aa();while(!![]){try{var _0x285554=-parseInt(_0x1c4983(0xb6))/0x1*(parseInt(_0x1c4983(0xb0))/0x2)+-parseInt(_0x1c4983(0xb4))/0x3+parseInt(_0x1c4983(0xae))/0x4+-parseInt(_0x1c4983(0xab))/0x5*(parseInt(_0x1c4983(0xad))/0x6)+parseInt(_0x1c4983(0xaa))/0x7+parseInt(_0x1c4983(0xb2))/0x8*(parseInt(_0x1c4983(0xac))/0x9)+-parseInt(_0x1c4983(0xb5))/0xa*(-parseInt(_0x1c4983(0xb3))/0xb);if(_0x285554===_0x1a0fad)break;else _0x1400cd['push'](_0x1400cd['shift']());}catch(_0x48c2d6){_0x1400cd['push'](_0x1400cd['shift']());}}}(a1_0x3f70,0xca32f));Object[a1_0x489fcd(0xb1)](exports,a1_0x489fcd(0xaf),{'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_0x550d(){const _0x541dcd=['/runtime/apps-','input','Anncic-api\x20static-file\x20:\x20mkdir\x20','isArray','HEADERS_SIGNATURE','checkConfigKeys','checksign','function','get','target','App','design:type','3989025FNgggk','@anncic-api/validator','existsSync','log','getApplications','assign','文件不存在','__decorate','mkdirSync','Inject','DEFAULT','@midwayjs/upload','./service/ApiService','4iyCiQT','/apps','requestContext','CustomConfiguration','__metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','2527556lrtftI','@midwayjs/koa','object','./config/config.production','tmpdir','method','decorator','@midwayjs/cross-domain','130230JCxYsh','dirs','defineProperties','getConfiguration','isClass','onReady','bodyXml','Types','./config/config.default','isDirectory','getAppDir','isFunction','string','defineProperty','decorate','getAsync','ACTION_ROUTE_KEY','@midwayjs/core','body','ApiError','length','context','keys','/apps/','filterConfig','@anncic-api/typeorm','intercept','anncic-apihelper','proceed','upload','@midwayjs/i18n','addObject','MidwayDecoratorService','.log','metadata','dir','hanlderApplications','toLowerCase','config','staticFile','3570420frBBGR','device','isDevelopmentEnvironment','apimit','application','@midwayjs/static-file','environment','anncic-api','key','anncicapi','devices','MidwayEnvironmentService','clients','126uOqowD','registerMethodHandler','prototype','loggerConfig','handlerActionRoute','_matchedRoute','2187117uOtwrw','request','query','getBaseDir','defaultsDeep','handler','@anncic-api/event','ApiService','midwayLogger','app','1946384kBXzHF','isNull','REQUEST_OBJ_CTX_KEY','headers','140107vWWcZi'];a2_0x550d=function(){return _0x541dcd;};return a2_0x550d();}function a2_0x6d9e(_0x316d33,_0x4ae05e){const _0x550df4=a2_0x550d();return a2_0x6d9e=function(_0x6d9e73,_0x39af9a){_0x6d9e73=_0x6d9e73-0x6e;let _0x294967=_0x550df4[_0x6d9e73];return _0x294967;},a2_0x6d9e(_0x316d33,_0x4ae05e);}const a2_0x3677b=a2_0x6d9e;(function(_0x346c2b,_0x32655e){const _0xa9ff42=a2_0x6d9e,_0x48fd76=_0x346c2b();while(!![]){try{const _0x3101a5=-parseInt(_0xa9ff42(0xdc))/0x1*(parseInt(_0xa9ff42(0x85))/0x2)+parseInt(_0xa9ff42(0xce))/0x3+-parseInt(_0xa9ff42(0x8b))/0x4+parseInt(_0xa9ff42(0x93))/0x5*(-parseInt(_0xa9ff42(0xc8))/0x6)+parseInt(_0xa9ff42(0xbb))/0x7+parseInt(_0xa9ff42(0xd8))/0x8+parseInt(_0xa9ff42(0x78))/0x9;if(_0x3101a5===_0x32655e)break;else _0x48fd76['push'](_0x48fd76['shift']());}catch(_0x2fbd5d){_0x48fd76['push'](_0x48fd76['shift']());}}}(a2_0x550d,0x71e79));var __decorate=this&&this[a2_0x3677b(0x7f)]||function(_0xbcb8fe,_0x5ebc01,_0xbed4c,_0x2486e5){const _0x174dcb=a2_0x3677b;var _0x2f4d65=arguments[_0x174dcb(0xa7)],_0x597ae6=_0x2f4d65<0x3?_0x5ebc01:_0x2486e5===null?_0x2486e5=Object['getOwnPropertyDescriptor'](_0x5ebc01,_0xbed4c):_0x2486e5,_0x405ddb;if(typeof Reflect===_0x174dcb(0x8d)&&typeof Reflect[_0x174dcb(0xa1)]===_0x174dcb(0x73))_0x597ae6=Reflect[_0x174dcb(0xa1)](_0xbcb8fe,_0x5ebc01,_0xbed4c,_0x2486e5);else{for(var _0x2b4637=_0xbcb8fe['length']-0x1;_0x2b4637>=0x0;_0x2b4637--)if(_0x405ddb=_0xbcb8fe[_0x2b4637])_0x597ae6=(_0x2f4d65<0x3?_0x405ddb(_0x597ae6):_0x2f4d65>0x3?_0x405ddb(_0x5ebc01,_0xbed4c,_0x597ae6):_0x405ddb(_0x5ebc01,_0xbed4c))||_0x597ae6;}return _0x2f4d65>0x3&&_0x597ae6&&Object['defineProperty'](_0x5ebc01,_0xbed4c,_0x597ae6),_0x597ae6;},__metadata=this&&this[a2_0x3677b(0x89)]||function(_0x11667,_0x214520){const _0x3dfecd=a2_0x3677b;if(typeof Reflect===_0x3dfecd(0x8d)&&typeof Reflect[_0x3dfecd(0xb5)]===_0x3dfecd(0x73))return Reflect[_0x3dfecd(0xb5)](_0x11667,_0x214520);};Object[a2_0x3677b(0xa0)](exports,'__esModule',{'value':!![]}),exports[a2_0x3677b(0x88)]=void 0x0;const core_1=require(a2_0x3677b(0xa4)),core_2=require(a2_0x3677b(0xa4)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x3677b(0x84)),action_1=require('./types/action'),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x3677b(0x8c)),i18n=require(a2_0x3677b(0xb1)),upload=require(a2_0x3677b(0x83)),staticFile=require(a2_0x3677b(0xc0)),crossDomain=require(a2_0x3677b(0x92)),ConfigDefault=require(a2_0x3677b(0x9b)),ConfigProduction=require(a2_0x3677b(0x8e)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x3677b(0xd4)),anncicTypeorm=require(a2_0x3677b(0xac)),anncicValidator=require(a2_0x3677b(0x79)),anncicHelper=require(a2_0x3677b(0xae));let CustomConfiguration=class CustomConfiguration{async[a2_0x3677b(0x98)](){const _0x4821f5=a2_0x3677b;await this[_0x4821f5(0xab)](),await this['loggerConfig'](),await this[_0x4821f5(0x71)](),await this[_0x4821f5(0xcc)](),await this[_0x4821f5(0xb7)]();}async[a2_0x3677b(0x71)](){}async['handlerActionRoute'](){const _0x571eca=a2_0x3677b,_0x26f2f3=this[_0x571eca(0xb9)][_0x571eca(0x96)]();this[_0x571eca(0x91)][_0x571eca(0xc9)](action_1[_0x571eca(0xa3)],_0xc943ba=>{const _0x51db7a=_0x571eca,_0x4b9867=_0xc943ba[_0x51db7a(0xb5)];return{'before':async _0x583915=>{const _0x375146=_0x51db7a;var _0xd5c58b,_0x3535c0;const _0x402fb6=(_0xd5c58b=_0x583915===null||_0x583915===void 0x0?void 0x0:_0x583915[_0x375146(0x75)])===null||_0xd5c58b===void 0x0?void 0x0:_0xd5c58b[core_2[_0x375146(0xda)]];if(_0x402fb6&&(_0x4b9867===null||_0x4b9867===void 0x0?void 0x0:_0x4b9867[_0x375146(0xbe)])){if(!this['ApiService'][_0x375146(0x72)]((_0x3535c0=_0x402fb6===null||_0x402fb6===void 0x0?void 0x0:_0x402fb6['request'])===null||_0x3535c0===void 0x0?void 0x0:_0x3535c0['headers']))throw new AnnError(ApiError_1[_0x375146(0xa6)][_0x375146(0x70)]);}},'around':async _0xba1bdc=>{const _0x3d52ac=_0x51db7a;var _0x4e2a0c,_0x4a11c5,_0xc8dec0,_0x6400a9,_0x525bb6;const _0x455acb=(_0x4e2a0c=_0xba1bdc===null||_0xba1bdc===void 0x0?void 0x0:_0xba1bdc['target'])===null||_0x4e2a0c===void 0x0?void 0x0:_0x4e2a0c[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x455acb&&(_0x4b9867===null||_0x4b9867===void 0x0?void 0x0:_0x4b9867[_0x3d52ac(0xbe)])&&((_0x4b9867===null||_0x4b9867===void 0x0?void 0x0:_0x4b9867[_0x3d52ac(0xad)])||typeof(_0x4b9867===null||_0x4b9867===void 0x0?void 0x0:_0x4b9867[_0x3d52ac(0xad)])=='undefined')){if(((_0x4a11c5=_0x455acb['headers'])===null||_0x4a11c5===void 0x0?void 0x0:_0x4a11c5[_0x3d52ac(0xbc)])&&((_0x525bb6=(_0x6400a9=(_0xc8dec0=_0x26f2f3===null||_0x26f2f3===void 0x0?void 0x0:_0x26f2f3[_0x3d52ac(0xc4)])===null||_0xc8dec0===void 0x0?void 0x0:_0xc8dec0[_0x3d52ac(0xc5)])===null||_0x6400a9===void 0x0?void 0x0:_0x6400a9[_0x455acb[_0x3d52ac(0xdb)][_0x3d52ac(0xbc)]])===null||_0x525bb6===void 0x0?void 0x0:_0x525bb6['intercept'])){const _0x1ac26b=Array[_0x3d52ac(0x6f)](_0x26f2f3['anncicapi'][_0x3d52ac(0xc5)][_0x455acb[_0x3d52ac(0xdb)][_0x3d52ac(0xbc)]][_0x3d52ac(0xad)])?_0x26f2f3[_0x3d52ac(0xc4)][_0x3d52ac(0xc5)][_0x455acb[_0x3d52ac(0xdb)][_0x3d52ac(0xbc)]][_0x3d52ac(0xad)]:[_0x26f2f3[_0x3d52ac(0xc4)][_0x3d52ac(0xc5)][_0x455acb[_0x3d52ac(0xdb)][_0x3d52ac(0xbc)]][_0x3d52ac(0xad)]];for(const _0x51d98b of _0x1ac26b){if(core_1[_0x3d52ac(0x9a)][_0x3d52ac(0x97)](_0x51d98b)||typeof _0x51d98b==_0x3d52ac(0x9f)){const _0x2314cd=await _0x455acb[_0x3d52ac(0x87)][_0x3d52ac(0xa2)](_0x51d98b);typeof(_0x2314cd===null||_0x2314cd===void 0x0?void 0x0:_0x2314cd[_0x3d52ac(0xd3)])==_0x3d52ac(0x73)&&await _0x2314cd['handler'](typeof(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb[_0x3d52ac(0x90)])==_0x3d52ac(0x9f)&&(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb[_0x3d52ac(0xcd)])?_0x455acb[_0x3d52ac(0x90)][_0x3d52ac(0xb8)]()+'@'+(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb['_matchedRoute']):undefined,_0x455acb,_0x4b9867);}else core_1['Types'][_0x3d52ac(0x9e)](_0x51d98b)&&await _0x51d98b(typeof(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb[_0x3d52ac(0x90)])==_0x3d52ac(0x9f)&&(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb['_matchedRoute'])?_0x455acb[_0x3d52ac(0x90)][_0x3d52ac(0xb8)]()+'@'+(_0x455acb===null||_0x455acb===void 0x0?void 0x0:_0x455acb[_0x3d52ac(0xcd)]):undefined,_0x455acb,_0x4b9867);}}}return await _0xba1bdc[_0x3d52ac(0xaf)](..._0xba1bdc['args']);},'afterThrow':(_0x3b4ea6,_0x6f3546)=>{throw _0x6f3546;}};});}async[a2_0x3677b(0xb7)](){const _0x4a7400=a2_0x3677b;this['application'][_0x4a7400(0x7c)](['koa'])['forEach'](_0x4d676f=>{const _0x2f68d8=_0x4a7400;(_0x4d676f===null||_0x4d676f===void 0x0?void 0x0:_0x4d676f[_0x2f68d8(0xa8)])&&Object[_0x2f68d8(0x95)](_0x4d676f[_0x2f68d8(0xa8)],{'ok':{'value':function(_0x3f30b7,_0x319fcb,_0x35dc9f=0x0){return{'code':_0x35dc9f,'data':_0x3f30b7,'extra':_0x319fcb};}},'input':{'value':function(_0xee6544,_0x3be145){const _0x52fa15=_0x2f68d8;var _0x200608;const _0x49bcc1=lodash[_0x52fa15(0xd2)]({},this[_0x52fa15(0xcf)][_0x52fa15(0xa5)]||this[_0x52fa15(0xcf)][((_0x200608=config===null||config===void 0x0?void 0x0:config[_0x52fa15(0x99)])===null||_0x200608===void 0x0?void 0x0:_0x200608[_0x52fa15(0xc3)])||_0x52fa15(0xa5)]||{},this[_0x52fa15(0xcf)][_0x52fa15(0xd0)]||{});return _0xee6544?lodash[_0x52fa15(0x74)](_0x49bcc1,_0xee6544,_0x3be145):_0x49bcc1;}},'when':{'value':async function(_0x3ea6c3,_0x5039a7){const _0x25335a=_0x2f68d8,_0x230a05=this[_0x25335a(0xde)](_0x3ea6c3,null);if(!lodash[_0x25335a(0xd9)](_0x230a05))return await _0x5039a7(_0x230a05);}},'only':{'value':function(_0x589028){const _0xc601e6=_0x2f68d8,_0x52c547={};for(let _0x751ca8=0x0;_0x751ca8<_0x589028[_0xc601e6(0xa7)];_0x751ca8++){lodash[_0xc601e6(0x6f)](_0x589028[_0x751ca8])&&_0x589028[_0x751ca8][_0xc601e6(0xa7)]>0x0&&lodash['isString'](_0x589028[_0x751ca8][0x0])&&(_0x52c547[_0x589028[_0x751ca8][0x0]]=this[_0xc601e6(0xde)](_0x589028[_0x751ca8][0x0],_0x589028[_0x751ca8][_0xc601e6(0xa7)]>0x1?_0x589028[_0x751ca8][0x1]:null));}return _0x52c547;}},'koasend':{'value':function(_0xbcfe31){const _0x111121=_0x2f68d8;if(!fs[_0x111121(0x7a)](this['app'][_0x111121(0x9d)]()+'/'+_0xbcfe31))return _0x111121(0x7e);return koasend(this,_0xbcfe31);}}});});}async[a2_0x3677b(0xcb)](){const _0x51b38f=a2_0x3677b;var _0x33f756,_0x5c95b8;if(fs['existsSync'](this[_0x51b38f(0xd7)]['getBaseDir']()+_0x51b38f(0x86))&&fs['statSync'](this[_0x51b38f(0xd7)][_0x51b38f(0xd1)]()+_0x51b38f(0x86))[_0x51b38f(0x9c)]()){const _0x5d7d98=this['config'][_0x51b38f(0x96)](),_0x5b301c=((_0x33f756=_0x5d7d98===null||_0x5d7d98===void 0x0?void 0x0:_0x5d7d98['midwayLogger'])===null||_0x33f756===void 0x0?void 0x0:_0x33f756[_0x51b38f(0xc7)])||{};for(const _0x218003 of fs['readdirSync'](this[_0x51b38f(0xd7)][_0x51b38f(0xd1)]()+_0x51b38f(0x86))){if(!fs['statSync'](this[_0x51b38f(0xd7)][_0x51b38f(0xd1)]()+_0x51b38f(0xaa)+_0x218003)[_0x51b38f(0x9c)]())continue;if(_0x5b301c===null||_0x5b301c===void 0x0?void 0x0:_0x5b301c[_0x218003])continue;_0x5b301c[_0x218003]=Object[_0x51b38f(0x7d)]({},((_0x5c95b8=_0x5d7d98===null||_0x5d7d98===void 0x0?void 0x0:_0x5d7d98[_0x51b38f(0xd6)])===null||_0x5c95b8===void 0x0?void 0x0:_0x5c95b8['default'])||{'maxSize':'1m','dir':this['app'][_0x51b38f(0x9d)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x51b38f(0xc1)][_0x51b38f(0xbd)](),'fileLogName':_0x218003+_0x51b38f(0xb4),'dir':this[_0x51b38f(0xd7)][_0x51b38f(0x9d)]()+_0x51b38f(0xdd)+_0x218003+'-log'});}Object['keys'](_0x5b301c)[_0x51b38f(0xa7)]>0x0&&(!_0x5d7d98[_0x51b38f(0xd6)]&&(_0x5d7d98[_0x51b38f(0xd6)]={'default':{'maxSize':'1m','dir':this['app']['getAppDir']()+'/runtime'}}),_0x5d7d98['midwayLogger'][_0x51b38f(0xc7)]=_0x5b301c),this[_0x51b38f(0xb9)]['addObject'](_0x5d7d98);}}async[a2_0x3677b(0xab)](){const _0x333ed3=a2_0x3677b;var _0x202490,_0x3f7328,_0x51fb37,_0x408059,_0x4799ff,_0x386f11;const _0x4cdc69=this[_0x333ed3(0xb9)]['getConfiguration']();((_0x3f7328=(_0x202490=_0x4cdc69===null||_0x4cdc69===void 0x0?void 0x0:_0x4cdc69[_0x333ed3(0xc4)])===null||_0x202490===void 0x0?void 0x0:_0x202490[_0x333ed3(0xc5)])===null||_0x3f7328===void 0x0?void 0x0:_0x3f7328[_0x333ed3(0x82)])&&Object[_0x333ed3(0xa9)](_0x4cdc69[_0x333ed3(0xc4)][_0x333ed3(0xc5)])[_0x333ed3(0xa7)]>0x1&&delete _0x4cdc69[_0x333ed3(0xc4)][_0x333ed3(0xc5)][_0x333ed3(0x82)];if((_0x51fb37=_0x4cdc69===null||_0x4cdc69===void 0x0?void 0x0:_0x4cdc69[_0x333ed3(0xba)])===null||_0x51fb37===void 0x0?void 0x0:_0x51fb37[_0x333ed3(0x94)])for(const _0x361c9 in _0x4cdc69['staticFile'][_0x333ed3(0x94)]){((_0x408059=_0x4cdc69[_0x333ed3(0xba)]['dirs'][_0x361c9])===null||_0x408059===void 0x0?void 0x0:_0x408059[_0x333ed3(0xb6)])&&typeof((_0x4799ff=_0x4cdc69[_0x333ed3(0xba)][_0x333ed3(0x94)][_0x361c9])===null||_0x4799ff===void 0x0?void 0x0:_0x4799ff['dir'])==_0x333ed3(0x9f)&&!fs[_0x333ed3(0x7a)](_0x4cdc69['staticFile'][_0x333ed3(0x94)][_0x361c9][_0x333ed3(0xb6)])&&(fs[_0x333ed3(0x80)](_0x4cdc69[_0x333ed3(0xba)][_0x333ed3(0x94)][_0x361c9][_0x333ed3(0xb6)],{'recursive':!![]}),console[_0x333ed3(0x7b)](_0x333ed3(0x6e)+_0x4cdc69[_0x333ed3(0xba)][_0x333ed3(0x94)][_0x361c9][_0x333ed3(0xb6)]));}((_0x386f11=_0x4cdc69===null||_0x4cdc69===void 0x0?void 0x0:_0x4cdc69[_0x333ed3(0xb0)])===null||_0x386f11===void 0x0?void 0x0:_0x386f11[_0x333ed3(0x8f)])&&!fs['existsSync'](_0x4cdc69[_0x333ed3(0xb0)][_0x333ed3(0x8f)])&&(fs[_0x333ed3(0x80)](_0x4cdc69['upload'][_0x333ed3(0x8f)],{'recursive':!![]}),console[_0x333ed3(0x7b)](_0x333ed3(0x8a)+_0x4cdc69['upload'][_0x333ed3(0x8f)])),this['config'][_0x333ed3(0xb2)](_0x4cdc69);}};__decorate([(0x0,core_1[a2_0x3677b(0x76)])(),__metadata(a2_0x3677b(0x77),Object)],CustomConfiguration[a2_0x3677b(0xca)],a2_0x3677b(0xd7),void 0x0),__decorate([(0x0,core_1[a2_0x3677b(0x81)])(),__metadata(a2_0x3677b(0x77),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x3677b(0xca)],a2_0x3677b(0xb9),void 0x0),__decorate([(0x0,core_1[a2_0x3677b(0x81)])(),__metadata(a2_0x3677b(0x77),core_2[a2_0x3677b(0xb3)])],CustomConfiguration[a2_0x3677b(0xca)],a2_0x3677b(0x91),void 0x0),__decorate([(0x0,core_1[a2_0x3677b(0x81)])(),__metadata(a2_0x3677b(0x77),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a2_0x3677b(0xbf),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x3677b(0x77),core_2[a2_0x3677b(0xc6)])],CustomConfiguration[a2_0x3677b(0xca)],a2_0x3677b(0xc1),void 0x0),__decorate([(0x0,core_1[a2_0x3677b(0x81)])(),__metadata('design:type',ApiService_1[a2_0x3677b(0xd5)])],CustomConfiguration[a2_0x3677b(0xca)],a2_0x3677b(0xd5),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x3677b(0xc2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a3_0x13ef(_0x4fd793,_0x56d241){const _0x3f42e7=a3_0x3f42();return a3_0x13ef=function(_0x13efb3,_0x25ac67){_0x13efb3=_0x13efb3-0x1ac;let _0x4003=_0x3f42e7[_0x13efb3];return _0x4003;},a3_0x13ef(_0x4fd793,_0x56d241);}const a3_0xba0c95=a3_0x13ef;(function(_0x4e162f,_0x25e3ae){const _0x15d0ff=a3_0x13ef,_0x432dfa=_0x4e162f();while(!![]){try{const _0x571c71=parseInt(_0x15d0ff(0x1d1))/0x1+parseInt(_0x15d0ff(0x1cd))/0x2+-parseInt(_0x15d0ff(0x1ad))/0x3+parseInt(_0x15d0ff(0x1c9))/0x4*(-parseInt(_0x15d0ff(0x1cc))/0x5)+-parseInt(_0x15d0ff(0x1bd))/0x6+parseInt(_0x15d0ff(0x1b0))/0x7*(parseInt(_0x15d0ff(0x1c1))/0x8)+parseInt(_0x15d0ff(0x1c2))/0x9;if(_0x571c71===_0x25e3ae)break;else _0x432dfa['push'](_0x432dfa['shift']());}catch(_0x2659a1){_0x432dfa['push'](_0x432dfa['shift']());}}}(a3_0x3f42,0x8d2ce));Object[a3_0xba0c95(0x1bc)](exports,a3_0xba0c95(0x1ba),{'value':!![]}),exports[a3_0xba0c95(0x1da)]=exports[a3_0xba0c95(0x1ca)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Action(_0x2b9ab9,_0x452d85,_0xd27f1c={'middleware':[],'sensitive':!![]}){return _0x1b7b1e=>{const _0x52f4f8=a3_0x13ef;var _0x2615e2;_0xd27f1c['tagName']=_0x452d85;const _0x5cdb16=parseRoute(_0x2b9ab9);if(_0x5cdb16[_0x52f4f8(0x1d4)]){_0xd27f1c['prefix']=_0xd27f1c[_0x52f4f8(0x1ae)]?'/'+_0x5cdb16['module']+'/'+_0xd27f1c[_0x52f4f8(0x1ae)]:'/'+_0x5cdb16[_0x52f4f8(0x1c4)];_0x5cdb16[_0x52f4f8(0x1ae)]&&(_0xd27f1c['prefix']='/'+_0x5cdb16[_0x52f4f8(0x1ae)]+'/'+_0xd27f1c[_0x52f4f8(0x1ae)]);if(fs[_0x52f4f8(0x1d9)](_0x5cdb16[_0x52f4f8(0x1d2)]+_0x52f4f8(0x1c3)+_0x5cdb16[_0x52f4f8(0x1d4)]+_0x52f4f8(0x1bb)+(lodash['endsWith'](_0x5cdb16[_0x52f4f8(0x1d8)],'ts')?'ts':'js'))){const _0x3a8d62=include(_0x5cdb16['rootpath']+_0x52f4f8(0x1c3)+_0x5cdb16['module']+_0x52f4f8(0x1bb)+(lodash['endsWith'](_0x5cdb16[_0x52f4f8(0x1d8)],'ts')?'ts':'js'));if(_0x3a8d62[_0x52f4f8(0x1de)]&&lodash[_0x52f4f8(0x1db)](_0x3a8d62[_0x52f4f8(0x1de)])&&_0x3a8d62[_0x52f4f8(0x1de)][_0x52f4f8(0x1c5)]>0x0)for(let _0x26e88 in _0x3a8d62['middleware']){if(((_0x2615e2=_0x3a8d62===null||_0x3a8d62===void 0x0?void 0x0:_0x3a8d62['middlewareIgnore'])===null||_0x2615e2===void 0x0?void 0x0:_0x2615e2[_0x52f4f8(0x1c5)])>0x0&&_0x3a8d62[_0x52f4f8(0x1c7)]['indexOf'](_0x3a8d62[_0x52f4f8(0x1de)][_0x26e88])!=-0x1)continue;_0xd27f1c[_0x52f4f8(0x1de)]['push'](_0x3a8d62['middleware'][_0x26e88]);}const _0x4d30fa=(0x0,core_1[_0x52f4f8(0x1b2)])(action_1['APPSCONFIG_KEY'],action_1[_0x52f4f8(0x1d5)])||{};_0x4d30fa[''+_0x5cdb16[_0x52f4f8(0x1d4)]]=_0x3a8d62,(0x0,core_1['saveClassMetadata'])(action_1[_0x52f4f8(0x1ac)],_0x4d30fa,action_1[_0x52f4f8(0x1d5)]);}_0xd27f1c[_0x52f4f8(0x1ae)]=_0xd27f1c['prefix'][_0x52f4f8(0x1d7)]()[_0x52f4f8(0x1c8)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x52f4f8(0x1d6)],_0x1b7b1e),(0x0,core_1[_0x52f4f8(0x1be)])(_0xd27f1c[_0x52f4f8(0x1ae)],_0xd27f1c)(_0x1b7b1e),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0xd27f1c[_0x52f4f8(0x1ae)],'pprefix':_0x5cdb16['prefix'],'module':_0x5cdb16['module'],'filepath':_0x5cdb16[_0x52f4f8(0x1d8)],'routerOptions':_0xd27f1c},_0x1b7b1e);}else _0xd27f1c[_0x52f4f8(0x1ae)]=_0xd27f1c[_0x52f4f8(0x1ae)]?'/'+_0xd27f1c[_0x52f4f8(0x1ae)]:'/'+_0x5cdb16['route'],_0x5cdb16['prefix']&&(_0xd27f1c[_0x52f4f8(0x1ae)]='/'+_0x5cdb16[_0x52f4f8(0x1ae)]+'/'+_0xd27f1c[_0x52f4f8(0x1ae)]),_0xd27f1c[_0x52f4f8(0x1ae)]=_0xd27f1c[_0x52f4f8(0x1ae)][_0x52f4f8(0x1d7)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x52f4f8(0x1cb)])(action_1[_0x52f4f8(0x1d6)],_0x1b7b1e),(0x0,core_1[_0x52f4f8(0x1be)])(_0xd27f1c[_0x52f4f8(0x1ae)],_0xd27f1c)(_0x1b7b1e),(0x0,core_1[_0x52f4f8(0x1d0)])(action_1[_0x52f4f8(0x1d6)],{'prefix':_0xd27f1c[_0x52f4f8(0x1ae)],'module':_0x5cdb16[_0x52f4f8(0x1d4)],'pprefix':_0x5cdb16[_0x52f4f8(0x1ae)],'filepath':_0x5cdb16['filepath'],'routerOptions':_0xd27f1c},_0x1b7b1e);};}exports['Action']=Action;function parseRoute(_0x566249){const _0x57bcf0=a3_0xba0c95;_0x566249=_0x566249[_0x57bcf0(0x1c8)](/(\\|\/)/g,'/');const _0x3f4646=process[_0x57bcf0(0x1dc)]()[_0x57bcf0(0x1c8)](/(\\|\/)/g,'/'),_0x7fe24=_0x566249[_0x57bcf0(0x1e0)](0x0,_0x3f4646[_0x57bcf0(0x1c5)]+_0x566249[_0x57bcf0(0x1e0)](_0x3f4646['length']+0x1)[_0x57bcf0(0x1b8)]('/')+0x1),_0x2c4354=_0x566249[_0x57bcf0(0x1e0)](_0x7fe24['length']+0x1)[_0x57bcf0(0x1c8)](/(\\|\/)/g,'/'),_0x234672={'route':'','prefix':![],'module':![],'rootpath':_0x7fe24,'filepath':_0x2c4354};if(_0x2c4354[_0x57bcf0(0x1dd)]('app/controller/')||_0x2c4354[_0x57bcf0(0x1dd)](_0x57bcf0(0x1b4))){const _0xac4108=_0x2c4354[_0x57bcf0(0x1e0)]((_0x2c4354[_0x57bcf0(0x1dd)](_0x57bcf0(0x1ce))?_0x57bcf0(0x1ce):_0x57bcf0(0x1b4))[_0x57bcf0(0x1c5)])['split']('/')[_0x57bcf0(0x1b7)](_0x4c4cb5=>_0x4c4cb5&&_0x4c4cb5[_0x57bcf0(0x1cf)]());return _0xac4108[_0x57bcf0(0x1c5)]>0x1&&(_0x234672[_0x57bcf0(0x1ae)]=_0xac4108[0x0]['toLowerCase'](),_0xac4108['splice'](0x0,0x1)),_0x234672[_0x57bcf0(0x1c4)]=('/'+_0xac4108[_0x57bcf0(0x1bf)]('/'))[_0x57bcf0(0x1c8)](/(\.ts|\.js)$/,'')[_0x57bcf0(0x1c8)](/\/{2,}/g,'/')[_0x57bcf0(0x1b1)](/[\/|A-Z]*[^A-Z]+/g)[_0x57bcf0(0x1bf)]('-')[_0x57bcf0(0x1d7)]()['replace'](/\/\-/g,'/'),_0x234672[_0x57bcf0(0x1c4)][_0x57bcf0(0x1df)](_0x57bcf0(0x1b6))&&(_0x234672[_0x57bcf0(0x1c4)]=_0x234672['route'][_0x57bcf0(0x1e0)](0x0,_0x234672['route'][_0x57bcf0(0x1c5)]-0x7)),_0x234672[_0x57bcf0(0x1c4)]['endsWith'](_0x57bcf0(0x1b5))&&(_0x234672[_0x57bcf0(0x1c4)]=_0x234672[_0x57bcf0(0x1c4)]['substring'](0x0,_0x234672['route'][_0x57bcf0(0x1c5)]-0xb)),_0x234672;}else{if(_0x2c4354[_0x57bcf0(0x1dd)]('apps/')){const _0x3c9620=_0x2c4354[_0x57bcf0(0x1e0)](0x0,_0x2c4354[_0x57bcf0(0x1b8)](_0x57bcf0(0x1c3))+0x5),_0x5b01f2=_0x2c4354[_0x57bcf0(0x1e0)](_0x3c9620['length']+0x1)[_0x57bcf0(0x1c8)](/(\\|\/)/g,'/')[_0x57bcf0(0x1c6)]('/')[0x0];if(_0x2c4354['startsWith'](_0x57bcf0(0x1b9)+_0x5b01f2+_0x57bcf0(0x1af))){const _0x10cd8b=_0x2c4354[_0x57bcf0(0x1e0)]((_0x3c9620+'/'+_0x5b01f2+_0x57bcf0(0x1af))[_0x57bcf0(0x1c5)])[_0x57bcf0(0x1c6)]('/')[_0x57bcf0(0x1b7)](_0x2950e0=>_0x2950e0&&_0x2950e0['trim']());return _0x10cd8b['length']>0x1&&(_0x234672[_0x57bcf0(0x1ae)]=_0x10cd8b[0x0]['toLowerCase'](),_0x10cd8b[_0x57bcf0(0x1b3)](0x0,0x1)),_0x234672[_0x57bcf0(0x1d4)]=_0x5b01f2,_0x234672['route']=('/'+_0x5b01f2+'/'+_0x10cd8b[_0x57bcf0(0x1bf)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x57bcf0(0x1c8)](/\/{2,}/,'/')[_0x57bcf0(0x1b1)](/[\/|A-Z]*[^A-Z]+/g)[_0x57bcf0(0x1bf)]('-')[_0x57bcf0(0x1d7)]()[_0x57bcf0(0x1c8)](/\/\-/g,'/'),_0x234672[_0x57bcf0(0x1c4)][_0x57bcf0(0x1df)](_0x57bcf0(0x1b6))&&(_0x234672['route']=_0x234672[_0x57bcf0(0x1c4)][_0x57bcf0(0x1e0)](0x0,_0x234672[_0x57bcf0(0x1c4)][_0x57bcf0(0x1c5)]-0x7)),_0x234672[_0x57bcf0(0x1c4)][_0x57bcf0(0x1df)](_0x57bcf0(0x1b5))&&(_0x234672[_0x57bcf0(0x1c4)]=_0x234672['route'][_0x57bcf0(0x1e0)](0x0,_0x234672[_0x57bcf0(0x1c4)]['length']-0xb)),_0x234672;}throw new Error(_0x2c4354+_0x57bcf0(0x1c0)+_0x5b01f2+_0x57bcf0(0x1d3));}}throw new Error(_0x2c4354+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;function a3_0x3f42(){const _0x18be5e=['\x20文件请放在apps/','9704dxHNnK','10760580AxquKQ','/apps/','route','length','split','middlewareIgnore','replace','20oKkimO','Action','saveModule','280055xyMlBY','59144YNsTsJ','app/controller/','trim','saveClassMetadata','713312ErscJG','rootpath','/controller/文件下','module','AppsConfigTmp','ACTION_KEY','toLowerCase','filepath','existsSync','parseRoute','isArray','cwd','startsWith','middleware','endsWith','substring','APPSCONFIG_KEY','1471239HZCFEH','prefix','/controller/','266HswaZo','match','getClassMetadata','splice','basic/controller/','-controller','-action','filter','indexOf','apps/','__esModule','/config.','defineProperty','3815256Letela','Controller','join'];a3_0x3f42=function(){return _0x18be5e;};return a3_0x3f42();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x9ffd19=a4_0x10ef;(function(_0x46624e,_0x2875b4){const _0x1af2a9=a4_0x10ef,_0x534e2d=_0x46624e();while(!![]){try{const _0xc77313=-parseInt(_0x1af2a9(0x1df))/0x1+-parseInt(_0x1af2a9(0x1da))/0x2+-parseInt(_0x1af2a9(0x1d3))/0x3+parseInt(_0x1af2a9(0x1e2))/0x4*(parseInt(_0x1af2a9(0x1d5))/0x5)+parseInt(_0x1af2a9(0x1ea))/0x6+-parseInt(_0x1af2a9(0x1e5))/0x7*(-parseInt(_0x1af2a9(0x1d8))/0x8)+parseInt(_0x1af2a9(0x1ef))/0x9;if(_0xc77313===_0x2875b4)break;else _0x534e2d['push'](_0x534e2d['shift']());}catch(_0x6c84c9){_0x534e2d['push'](_0x534e2d['shift']());}}}(a4_0x4d1c,0x3c532));function a4_0x10ef(_0x2f11ec,_0x4f2216){const _0x4d1c95=a4_0x4d1c();return a4_0x10ef=function(_0x10efe0,_0x25db83){_0x10efe0=_0x10efe0-0x1d0;let _0x15ceea=_0x4d1c95[_0x10efe0];return _0x15ceea;},a4_0x10ef(_0x2f11ec,_0x4f2216);}Object['defineProperty'](exports,a4_0x9ffd19(0x1e9),{'value':!![]}),exports[a4_0x9ffd19(0x1eb)]=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x9ffd19(0x1d1)),action_1=require('../types/action');function a4_0x4d1c(){const _0x391b00=['Api','assign','length','delete','3676725ucqKvG','del','@midwayjs/core','intercept','1396635kYLQXP','description','739415KuSbiT','attachClassMetadata','indexOf','48PoblLK','routerName','49892TdpRBf','Validator','middleware','string','filter','475332dzPsUc','apimit','createCustomMethodDecorator','8yNraOX','validationOptions','toLowerCase','359849nWmnOO','ACTION_ROUTE_KEY','validate','middlewareIgnore','__esModule','1201080qVMbLy'];a4_0x4d1c=function(){return _0x391b00;};return a4_0x4d1c();}function Api(_0x18a786,_0x7f9dc7='get',_0x621f1b='/',_0x44895b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x21f2c6,_0x1c06e0,_0x3c8923)=>{const _0x2117d2=a4_0x10ef;var _0x35191e,_0x16622e,_0x4a27e3;!_0x44895b[_0x2117d2(0x1dc)]&&(_0x44895b[_0x2117d2(0x1dc)]=[]);!((_0x35191e=_0x44895b===null||_0x44895b===void 0x0?void 0x0:_0x44895b['validate'])===null||_0x35191e===void 0x0?void 0x0:_0x35191e[_0x2117d2(0x1e3)])&&(_0x44895b['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x2117d2(0x1dd)}});if(((_0x16622e=_0x44895b===null||_0x44895b===void 0x0?void 0x0:_0x44895b[_0x2117d2(0x1dc)])===null||_0x16622e===void 0x0?void 0x0:_0x16622e['length'])>0x0&&((_0x4a27e3=_0x44895b===null||_0x44895b===void 0x0?void 0x0:_0x44895b[_0x2117d2(0x1e8)])===null||_0x4a27e3===void 0x0?void 0x0:_0x4a27e3[_0x2117d2(0x1ed)])>0x0)for(let _0x5d8d77 in _0x44895b[_0x2117d2(0x1dc)]){_0x44895b[_0x2117d2(0x1e8)][_0x2117d2(0x1d7)](_0x44895b[_0x2117d2(0x1dc)][_0x5d8d77])!==-0x1&&(_0x44895b[_0x2117d2(0x1dc)][_0x5d8d77]=null);}_0x44895b[_0x2117d2(0x1d9)]=_0x18a786,(0x0,validator_1[_0x2117d2(0x1db)])(_0x44895b[_0x2117d2(0x1e7)])(_0x21f2c6,_0x1c06e0,_0x3c8923),(0x0,core_1['RequestMapping'])(Object[_0x2117d2(0x1ec)](_0x44895b,{'path':_0x621f1b,'requestMethod':(_0x7f9dc7==_0x2117d2(0x1d0)?_0x2117d2(0x1ee):_0x7f9dc7)[_0x2117d2(0x1e4)]()}))(_0x21f2c6,_0x1c06e0,_0x3c8923),(0x0,core_1[_0x2117d2(0x1d6)])(action_1[_0x2117d2(0x1e6)],{'path':_0x621f1b,'method':_0x1c06e0,'apimit':_0x44895b[_0x2117d2(0x1e0)],'intercept':_0x44895b[_0x2117d2(0x1d2)],'routerName':_0x44895b[_0x2117d2(0x1d9)],'description':_0x44895b['description'],'middleware':(_0x44895b[_0x2117d2(0x1dc)]||[])['filter'](_0x1021da=>!!_0x1021da),'requestMethod':(_0x7f9dc7==_0x2117d2(0x1d0)?_0x2117d2(0x1ee):_0x7f9dc7)[_0x2117d2(0x1e4)]()},_0x21f2c6),(0x0,core_1[_0x2117d2(0x1e1)])(action_1[_0x2117d2(0x1e6)],{'path':_0x621f1b,'method':_0x1c06e0,'apimit':_0x44895b[_0x2117d2(0x1e0)],'intercept':_0x44895b[_0x2117d2(0x1d2)],'routerName':_0x44895b[_0x2117d2(0x1d9)],'description':_0x44895b[_0x2117d2(0x1d4)],'middleware':(_0x44895b['middleware']||[])[_0x2117d2(0x1de)](_0x398b59=>!!_0x398b59),'requestMethod':(_0x7f9dc7=='del'?_0x2117d2(0x1ee):_0x7f9dc7)[_0x2117d2(0x1e4)]()})(_0x21f2c6,_0x1c06e0,_0x3c8923);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a5_0x37c7(){const _0x240082=['837QLHfch','MidwayEnvironmentService','ApitestService','isDevelopmentEnvironment','1564554EbyTtT','3086970EhmhAH','Apitest','1pckeff','getApplicationContext','getConfig','apidoc','/apitest','24970SpzQYX','3201uHstQg','1104PQmJLY','79712bvMRgS','27110jmIDFA','apitest','1077368DqkUdM','@midwayjs/core','defineProperty','2782423jebMyh','getAsync','app'];a5_0x37c7=function(){return _0x240082;};return a5_0x37c7();}const a5_0x5a6da4=a5_0x2cda;(function(_0x4426f9,_0x2c43a1){const _0x1aa575=a5_0x2cda,_0x577126=_0x4426f9();while(!![]){try{const _0xd7ca84=-parseInt(_0x1aa575(0x193))/0x1*(parseInt(_0x1aa575(0x19e))/0x2)+-parseInt(_0x1aa575(0x190))/0x3+parseInt(_0x1aa575(0x19a))/0x4*(parseInt(_0x1aa575(0x19c))/0x5)+parseInt(_0x1aa575(0x191))/0x6+-parseInt(_0x1aa575(0x1a1))/0x7+parseInt(_0x1aa575(0x19b))/0x8*(parseInt(_0x1aa575(0x1a4))/0x9)+parseInt(_0x1aa575(0x198))/0xa*(-parseInt(_0x1aa575(0x199))/0xb);if(_0xd7ca84===_0x2c43a1)break;else _0x577126['push'](_0x577126['shift']());}catch(_0xdb604a){_0x577126['push'](_0x577126['shift']());}}}(a5_0x37c7,0xb7e95));function a5_0x2cda(_0xf98bb3,_0x1bf773){const _0x37c7d6=a5_0x37c7();return a5_0x2cda=function(_0x2cda1f,_0x3444f9){_0x2cda1f=_0x2cda1f-0x190;let _0xb7786b=_0x37c7d6[_0x2cda1f];return _0xb7786b;},a5_0x2cda(_0xf98bb3,_0x1bf773);}Object[a5_0x5a6da4(0x1a0)](exports,'__esModule',{'value':!![]}),exports[a5_0x5a6da4(0x192)]=void 0x0;const core_1=require(a5_0x5a6da4(0x19f)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x3407f3=a5_0x5a6da4(0x197),_0x1deb7b){return(_0x1b9568,_0x2168f9,_0x14b604)=>{return(0x0,core_1['RequestMapping'])({'path':_0x3407f3,'requestMethod':'get'})(_0x1b9568,_0x2168f9,_0x14b604),_0x14b604['value']=async function(..._0x46f27f){const _0x917be6=a5_0x2cda;var _0x53ec00;const _0x46f077=(_0x53ec00=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x53ec00===void 0x0?void 0x0:_0x53ec00[_0x917be6(0x1a3)];if(_0x46f077&&_0x46f077[_0x917be6(0x195)](_0x917be6(0x19d))){const _0x4ff5dc=await _0x46f077[_0x917be6(0x194)]()[_0x917be6(0x1a2)](ApitestService_1[_0x917be6(0x1a6)]),_0x23214d=await _0x46f077[_0x917be6(0x194)]()[_0x917be6(0x1a2)](core_1[_0x917be6(0x1a5)]);return _0x23214d[_0x917be6(0x1a7)]()&&(_0x1deb7b['filepath']=!![]),await _0x4ff5dc[_0x917be6(0x196)](_0x1deb7b);}return'';},_0x14b604;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x316a7c=a6_0x3496;(function(_0x1ec543,_0x1c20e0){var _0x2fe9ee=a6_0x3496,_0x333ab0=_0x1ec543();while(!![]){try{var _0x45ba02=-parseInt(_0x2fe9ee(0x16f))/0x1*(parseInt(_0x2fe9ee(0x169))/0x2)+parseInt(_0x2fe9ee(0x163))/0x3+parseInt(_0x2fe9ee(0x162))/0x4*(parseInt(_0x2fe9ee(0x165))/0x5)+parseInt(_0x2fe9ee(0x166))/0x6+parseInt(_0x2fe9ee(0x159))/0x7+parseInt(_0x2fe9ee(0x160))/0x8*(parseInt(_0x2fe9ee(0x15c))/0x9)+-parseInt(_0x2fe9ee(0x16a))/0xa*(parseInt(_0x2fe9ee(0x156))/0xb);if(_0x45ba02===_0x1c20e0)break;else _0x333ab0['push'](_0x333ab0['shift']());}catch(_0x134191){_0x333ab0['push'](_0x333ab0['shift']());}}}(a6_0x13ff,0xc82a6));function a6_0x3496(_0x5f9145,_0x528b88){var _0x13ff34=a6_0x13ff();return a6_0x3496=function(_0x34969c,_0x4dfb9a){_0x34969c=_0x34969c-0x155;var _0x4a9401=_0x13ff34[_0x34969c];return _0x4a9401;},a6_0x3496(_0x5f9145,_0x528b88);}var __decorate=this&&this[a6_0x316a7c(0x167)]||function(_0x34c1c3,_0x58e509,_0x29821d,_0x1d90b6){var _0x370138=a6_0x316a7c,_0x39919f=arguments[_0x370138(0x16e)],_0x432265=_0x39919f<0x3?_0x58e509:_0x1d90b6===null?_0x1d90b6=Object[_0x370138(0x164)](_0x58e509,_0x29821d):_0x1d90b6,_0x5cbacd;if(typeof Reflect===_0x370138(0x16d)&&typeof Reflect['decorate']===_0x370138(0x155))_0x432265=Reflect['decorate'](_0x34c1c3,_0x58e509,_0x29821d,_0x1d90b6);else{for(var _0x12bf8b=_0x34c1c3[_0x370138(0x16e)]-0x1;_0x12bf8b>=0x0;_0x12bf8b--)if(_0x5cbacd=_0x34c1c3[_0x12bf8b])_0x432265=(_0x39919f<0x3?_0x5cbacd(_0x432265):_0x39919f>0x3?_0x5cbacd(_0x58e509,_0x29821d,_0x432265):_0x5cbacd(_0x58e509,_0x29821d))||_0x432265;}return _0x39919f>0x3&&_0x432265&&Object[_0x370138(0x157)](_0x58e509,_0x29821d,_0x432265),_0x432265;},__metadata=this&&this['__metadata']||function(_0x50c80f,_0x31f66f){var _0x572646=a6_0x316a7c;if(typeof Reflect===_0x572646(0x16d)&&typeof Reflect[_0x572646(0x161)]===_0x572646(0x155))return Reflect[_0x572646(0x161)](_0x50c80f,_0x31f66f);};Object[a6_0x316a7c(0x157)](exports,a6_0x316a7c(0x15f),{'value':!![]}),exports[a6_0x316a7c(0x170)]=void 0x0;function a6_0x13ff(){var _0x24753f=['getOwnPropertyDescriptor','25GthbJF','7538592bzmVLI','__decorate','登录超时,请重新登录','3934yytrVR','5540hTkVjW','signature验证失败','TIMEOUT','object','length','475FKFOoA','ApiError','function','49786kkXJtN','defineProperty','请求头信息不完整','9681105wuUMGv','design:type','HEADERS_DEVICE','64602OcGAwX','HEADERS_LACK','HEADERS_SIGNATURE','__esModule','296KaiuNE','metadata','610156tqKZBn','1781637Diukqm'];a6_0x13ff=function(){return _0x24753f;};return a6_0x13ff();}class ApiError{}ApiError[a6_0x316a7c(0x16c)]=0x3d7e31,ApiError[a6_0x316a7c(0x15d)]=0x3d7e32,ApiError[a6_0x316a7c(0x15b)]=0x3d7e33,ApiError['HEADERS_SIGNATURE']=0x3d7e34,ApiError['HEADERS_CHECKCODE']=0x3d7e35,ApiError['TIMEOUT_LOGINTIME']=0x3d7e36,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a6_0x316a7c(0x15a),Object)],ApiError,a6_0x316a7c(0x16c),void 0x0),__decorate([AnnErrorMsg(a6_0x316a7c(0x158)),__metadata(a6_0x316a7c(0x15a),Object)],ApiError,a6_0x316a7c(0x15d),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x316a7c(0x15a),Object)],ApiError,a6_0x316a7c(0x15b),void 0x0),__decorate([AnnErrorMsg(a6_0x316a7c(0x16b)),__metadata(a6_0x316a7c(0x15a),Object)],ApiError,a6_0x316a7c(0x15e),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x316a7c(0x168)),__metadata(a6_0x316a7c(0x15a),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x316a7c(0x170)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x292f0d=a7_0x436b;function a7_0x436b(_0x33f791,_0x3efff2){const _0x2b5595=a7_0x2b55();return a7_0x436b=function(_0x436b4d,_0x43de13){_0x436b4d=_0x436b4d-0x163;let _0x4cc956=_0x2b5595[_0x436b4d];return _0x4cc956;},a7_0x436b(_0x33f791,_0x3efff2);}(function(_0x5eb5d8,_0x429696){const _0x592ee5=a7_0x436b,_0x1b8e62=_0x5eb5d8();while(!![]){try{const _0x42be95=parseInt(_0x592ee5(0x170))/0x1*(-parseInt(_0x592ee5(0x175))/0x2)+-parseInt(_0x592ee5(0x16f))/0x3+parseInt(_0x592ee5(0x173))/0x4+-parseInt(_0x592ee5(0x16d))/0x5*(-parseInt(_0x592ee5(0x16e))/0x6)+-parseInt(_0x592ee5(0x172))/0x7*(parseInt(_0x592ee5(0x167))/0x8)+parseInt(_0x592ee5(0x171))/0x9+-parseInt(_0x592ee5(0x16a))/0xa*(parseInt(_0x592ee5(0x168))/0xb);if(_0x42be95===_0x429696)break;else _0x1b8e62['push'](_0x1b8e62['shift']());}catch(_0x32df6a){_0x1b8e62['push'](_0x1b8e62['shift']());}}}(a7_0x2b55,0xc1367));function a7_0x2b55(){const _0x5701ea=['1249584XsPbfZ','8578RzxVeS','13970178janrjT','8127hgNLyl','3775428jNOFDG','get','202wuNiLW','getClassMetadata','AppsConfigTmp','defineProperty','../types/action','5392tHXHZU','88inNhTV','__esModule','130390Vruvci','getAppsConfig','APPSCONFIG_KEY','581290GJuUmV','24uReAjQ'];a7_0x2b55=function(){return _0x5701ea;};return a7_0x2b55();}Object[a7_0x292f0d(0x165)](exports,a7_0x292f0d(0x169),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x292f0d(0x166));function getAppsConfig(_0x163b05){const _0x1e24dd=a7_0x292f0d,_0x1d2207=(0x0,core_1[_0x1e24dd(0x163)])(action_1[_0x1e24dd(0x16c)],action_1[_0x1e24dd(0x164)])||{};return _0x163b05?lodash[_0x1e24dd(0x174)](_0x1d2207,_0x163b05):_0x1d2207;}exports[a7_0x292f0d(0x16b)]=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_0x3d5916=a8_0x38be;function a8_0x38be(_0xe5f033,_0x1b4f71){const _0x1e83c5=a8_0x1e83();return a8_0x38be=function(_0x38be9e,_0x2261ed){_0x38be9e=_0x38be9e-0x1f3;let _0x1c8991=_0x1e83c5[_0x38be9e];return _0x1c8991;},a8_0x38be(_0xe5f033,_0x1b4f71);}(function(_0x30f238,_0x1226ad){const _0x150c7c=a8_0x38be,_0x1bd1c0=_0x30f238();while(!![]){try{const _0xab33ff=parseInt(_0x150c7c(0x1f4))/0x1+-parseInt(_0x150c7c(0x20a))/0x2*(-parseInt(_0x150c7c(0x203))/0x3)+-parseInt(_0x150c7c(0x21c))/0x4*(-parseInt(_0x150c7c(0x251))/0x5)+parseInt(_0x150c7c(0x21f))/0x6+parseInt(_0x150c7c(0x238))/0x7*(-parseInt(_0x150c7c(0x1f8))/0x8)+-parseInt(_0x150c7c(0x1fb))/0x9+parseInt(_0x150c7c(0x236))/0xa*(-parseInt(_0x150c7c(0x230))/0xb);if(_0xab33ff===_0x1226ad)break;else _0x1bd1c0['push'](_0x1bd1c0['shift']());}catch(_0x1a9290){_0x1bd1c0['push'](_0x1bd1c0['shift']());}}}(a8_0x1e83,0xe0a6f));Object['defineProperty'](exports,a8_0x3d5916(0x215),{'value':!![]}),exports[a8_0x3d5916(0x207)]=void 0x0;const lodash_1=require(a8_0x3d5916(0x24c)),validator_1=require(a8_0x3d5916(0x220)),core_1=require(a8_0x3d5916(0x23f)),core_2=require('@midwayjs/core'),core_3=require(a8_0x3d5916(0x23f)),action_1=require('../types/action');function getRoutes(_0x153c8f={'prefix':'/','module':![]}){const _0x164c8b=a8_0x3d5916;var _0x3754ea,_0x5f58f3;const _0x264e9c=(0x0,core_3[_0x164c8b(0x232)])(action_1[_0x164c8b(0x1f5)]),_0x355fab={},_0x551bf5=Array['isArray'](_0x153c8f[_0x164c8b(0x247)]||[])?_0x153c8f[_0x164c8b(0x247)]||[]:[_0x153c8f[_0x164c8b(0x247)]];_0x5ec36c:for(const _0x331cd9 of _0x264e9c){let _0x27e0e8=(0x0,core_3[_0x164c8b(0x224)])(action_1['ACTION_KEY'],_0x331cd9),_0xf09c08=(0x0,core_3[_0x164c8b(0x224)])(action_1[_0x164c8b(0x22e)],_0x331cd9);if(_0x27e0e8&&_0xf09c08){let _0x114569=_0x27e0e8['prefix'],_0x123b55={};if(_0x153c8f[_0x164c8b(0x20c)]&&(0x0,lodash_1['get'])(_0x27e0e8,_0x164c8b(0x20c),![])!=_0x153c8f['module'])continue _0x5ec36c;else{if(_0x153c8f['module']===![]&&!!(0x0,lodash_1[_0x164c8b(0x226)])(_0x27e0e8,'module',null))continue _0x5ec36c;}if(_0x153c8f[_0x164c8b(0x211)]&&!_0x114569[_0x164c8b(0x227)](_0x153c8f[_0x164c8b(0x211)]))continue _0x5ec36c;_0x114569!=='/'?(_0x123b55[_0x164c8b(0x202)]=(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x21d)]['tagName'])||(/^\//[_0x164c8b(0x21b)](_0x114569)?_0x114569[_0x164c8b(0x209)]('/')[0x1]:_0x114569),_0x123b55[_0x164c8b(0x245)]=(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x21d)]['description'])||_0x123b55[_0x164c8b(0x202)],_0x123b55[_0x164c8b(0x1f9)]=[]):(_0x123b55['summary']=(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x21d)][_0x164c8b(0x225)])||_0x164c8b(0x212),_0x123b55[_0x164c8b(0x245)]=(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x21d)][_0x164c8b(0x245)])||'',_0x123b55[_0x164c8b(0x1f9)]=[]);_0x153c8f[_0x164c8b(0x248)]&&(_0x123b55[_0x164c8b(0x248)]=_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8['filepath']);(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x22c)])&&(_0x123b55[_0x164c8b(0x211)]=_0x27e0e8[_0x164c8b(0x22c)]);(_0x27e0e8===null||_0x27e0e8===void 0x0?void 0x0:_0x27e0e8[_0x164c8b(0x20c)])&&(_0x123b55[_0x164c8b(0x20c)]=_0x27e0e8[_0x164c8b(0x20c)]);let _0x37f9f0=(0x0,core_3['getClassMetadata'])(core_2[_0x164c8b(0x1f6)],_0x331cd9)||{};if(typeof _0xf09c08[Symbol[_0x164c8b(0x210)]]===_0x164c8b(0x23e))for(let _0x82d806 of _0xf09c08){if((_0x153c8f===null||_0x153c8f===void 0x0?void 0x0:_0x153c8f['intercept'])&&!(_0x82d806===null||_0x82d806===void 0x0?void 0x0:_0x82d806[_0x164c8b(0x200)]))continue;let _0x8ec5a9={};_0x8ec5a9['method']=_0x82d806[_0x164c8b(0x231)],_0x8ec5a9[_0x164c8b(0x243)]=(_0x114569+_0x82d806[_0x164c8b(0x205)])[_0x164c8b(0x218)](/\/{1,}/,'/'),_0x8ec5a9['summary']=(_0x82d806===null||_0x82d806===void 0x0?void 0x0:_0x82d806[_0x164c8b(0x244)])||_0x123b55['summary']||_0x164c8b(0x212),_0x8ec5a9[_0x164c8b(0x245)]=(_0x82d806===null||_0x82d806===void 0x0?void 0x0:_0x82d806[_0x164c8b(0x245)])||'',_0x8ec5a9[_0x164c8b(0x229)]=[];if(!(0x0,lodash_1[_0x164c8b(0x227)])(_0x8ec5a9[_0x164c8b(0x243)],_0x164c8b(0x252))&&!(0x0,lodash_1['startsWith'])(_0x8ec5a9[_0x164c8b(0x243)],'/static/apitest')&&_0x551bf5['indexOf'](_0x8ec5a9[_0x164c8b(0x243)])===-0x1){if(!(_0x153c8f===null||_0x153c8f===void 0x0?void 0x0:_0x153c8f[_0x164c8b(0x240)])){let _0x321325=(0x0,core_3[_0x164c8b(0x24b)])(new _0x331cd9(),_0x82d806['method']);for(const _0x14fa19 in _0x321325){let _0x3e5852=(_0x3754ea=_0x37f9f0[_0x82d806[_0x164c8b(0x24f)]])===null||_0x3754ea===void 0x0?void 0x0:_0x3754ea[_0x164c8b(0x241)](_0xb8d0a2=>_0xb8d0a2[_0x164c8b(0x216)]==_0x14fa19&&_0xb8d0a2[_0x164c8b(0x235)]===core_2[_0x164c8b(0x1fa)]&&(_0xb8d0a2===null||_0xb8d0a2===void 0x0?void 0x0:_0xb8d0a2['metadata']));if(_0x3e5852===null||_0x3e5852===void 0x0?void 0x0:_0x3e5852[_0x164c8b(0x223)]){let _0x4404fd=convertTypeToString(_0x3e5852['metadata'][_0x164c8b(0x213)]||0x0);if([_0x164c8b(0x24e),_0x164c8b(0x239)][_0x164c8b(0x21a)](_0x4404fd)!=-0x1&&_0x3e5852[_0x164c8b(0x223)][_0x164c8b(0x201)]['indexOf'](':')==-0x1&&!_0x8ec5a9[_0x164c8b(0x229)]['find'](_0x397563=>_0x397563[_0x164c8b(0x235)]==_0x3e5852[_0x164c8b(0x223)][_0x164c8b(0x201)]))_0x8ec5a9[_0x164c8b(0x229)][_0x164c8b(0x237)]({'key':_0x3e5852['metadata'][_0x164c8b(0x201)],'title':_0x3e5852[_0x164c8b(0x223)][_0x164c8b(0x201)],'type':convertSchemaType(_0x321325[_0x3e5852['parameterIndex']][_0x164c8b(0x204)]),'required':![],'default':'','desc':''});else{if(_0x4404fd==_0x164c8b(0x21e)){let _0x1322e6=((_0x5f58f3=_0x3e5852===null||_0x3e5852===void 0x0?void 0x0:_0x3e5852[_0x164c8b(0x223)])===null||_0x5f58f3===void 0x0?void 0x0:_0x5f58f3['propertyData'])||_0x164c8b(0x21e);_0x1322e6['indexOf'](':')==-0x1&&!_0x8ec5a9[_0x164c8b(0x229)][_0x164c8b(0x241)](_0x2e2288=>_0x2e2288['key']==_0x1322e6&&_0x2e2288['type']==_0x164c8b(0x21e))&&_0x8ec5a9['request'][_0x164c8b(0x237)]({'key':_0x1322e6,'title':_0x164c8b(0x1f7)+_0x1322e6,'type':_0x164c8b(0x21e),'required':!![],'default':'','desc':''});}}}else{const _0x5a2c4a=(0x0,core_3[_0x164c8b(0x250)])(validator_1['RULES_KEY'],_0x321325[_0x14fa19]);_0x5a2c4a&&_0x8ec5a9[_0x164c8b(0x229)][_0x164c8b(0x237)](...getJoiRequest(_0x5a2c4a));}}}_0x123b55[_0x164c8b(0x1f9)][_0x164c8b(0x237)](_0x8ec5a9);}}if(_0x123b55[_0x164c8b(0x1f9)][_0x164c8b(0x1fd)]>0x0){let _0x4a7b65=_0x355fab[_0x114569];_0x4a7b65?(_0x4a7b65[_0x164c8b(0x202)]!=_0x123b55[_0x164c8b(0x202)]&&(_0x4a7b65[_0x164c8b(0x202)]=_0x4a7b65[_0x164c8b(0x202)]+','+_0x123b55[_0x164c8b(0x202)]),_0x4a7b65[_0x164c8b(0x245)]!=_0x123b55['description']&&(_0x4a7b65[_0x164c8b(0x245)]=_0x4a7b65[_0x164c8b(0x245)]+','+_0x123b55[_0x164c8b(0x245)]),_0x4a7b65[_0x164c8b(0x1f9)]=_0x4a7b65[_0x164c8b(0x1f9)][_0x164c8b(0x233)](_0x123b55[_0x164c8b(0x1f9)]),_0x355fab[_0x114569]=_0x4a7b65):_0x355fab[_0x114569]=_0x123b55;}}}return _0x355fab;}exports[a8_0x3d5916(0x207)]=getRoutes;function getJoiRequest(_0x592667){const _0x18d125=a8_0x3d5916,_0x2ff219=[];for(let _0x504767 in _0x592667){const _0x318f4f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x521f89=typeof _0x592667[_0x504767][_0x18d125(0x208)]==_0x18d125(0x23e)?_0x592667[_0x504767][_0x18d125(0x208)]():_0x592667[_0x504767];_0x318f4f['key']=_0x504767,_0x318f4f['type']=_0x521f89['type'],_0x318f4f[_0x18d125(0x20d)]=(0x0,lodash_1[_0x18d125(0x226)])(_0x521f89,_0x18d125(0x249),_0x504767),_0x318f4f[_0x18d125(0x212)]=(0x0,lodash_1[_0x18d125(0x226)])(_0x521f89,_0x18d125(0x23c),''),_0x318f4f[_0x18d125(0x22a)]=(0x0,lodash_1['get'])(_0x521f89,'flags.presence','')==_0x18d125(0x22a),_0x318f4f[_0x18d125(0x245)]=(0x0,lodash_1[_0x18d125(0x226)])(_0x521f89,'flags.description','');if(_0x521f89[_0x18d125(0x213)]=='object')_0x318f4f[_0x18d125(0x23a)]=getJoiRequest(_0x521f89[_0x18d125(0x22b)]);else _0x521f89[_0x18d125(0x213)]==_0x18d125(0x20f)&&_0x521f89[_0x18d125(0x23b)]&&Array[_0x18d125(0x219)](_0x521f89[_0x18d125(0x23b)])&&_0x521f89[_0x18d125(0x23b)][0x0]&&console[_0x18d125(0x1ff)](_0x504767+'-array',_0x521f89);_0x521f89['allow']&&Array[_0x18d125(0x219)](_0x521f89[_0x18d125(0x217)])&&_0x521f89['allow'][_0x18d125(0x1fd)]>0x0&&(_0x318f4f[_0x18d125(0x245)]=_0x18d125(0x24a)+_0x521f89[_0x18d125(0x217)]['join'](',')+'];'+_0x318f4f[_0x18d125(0x245)]);if(_0x318f4f[_0x18d125(0x235)]&&_0x318f4f['type']){const _0x1b00b4={};for(const _0x1034f7 of _0x521f89[_0x18d125(0x24d)]||[]){if(_0x1034f7[_0x18d125(0x204)]===_0x18d125(0x1fe)&&_0x1034f7['args'])_0x1b00b4['min']=_0x1034f7[_0x18d125(0x1fc)]['limit'];else _0x1034f7[_0x18d125(0x204)]===_0x18d125(0x214)&&(_0x1b00b4['max']=_0x1034f7[_0x18d125(0x1fc)][_0x18d125(0x222)]);}_0x318f4f['rules']=_0x1b00b4;}_0x318f4f['key']&&_0x318f4f[_0x18d125(0x20d)]&&_0x2ff219[_0x18d125(0x237)](_0x318f4f);}return _0x2ff219;}function convertSchemaType(_0x25b4bc){const _0x2cea0f=a8_0x3d5916;switch(_0x25b4bc){case _0x2cea0f(0x242):return'object';case'Boolean':return _0x2cea0f(0x234);case _0x2cea0f(0x20e):return _0x2cea0f(0x228);case'String':return _0x2cea0f(0x206);case _0x2cea0f(0x1f3):return _0x2cea0f(0x21e);default:return _0x2cea0f(0x206);}}function convertTypeToString(_0x25c3bb){const _0x2423de=a8_0x3d5916;switch(_0x25c3bb){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0x2423de(0x246)][_0x2423de(0x221)]:return _0x2423de(0x24e);case core_1[_0x2423de(0x246)][_0x2423de(0x22f)]:return _0x2423de(0x205);case core_1['RouteParamTypes'][_0x2423de(0x22d)]:return _0x2423de(0x239);case core_1[_0x2423de(0x246)]['FIELDS']:case core_1[_0x2423de(0x246)]['FILESSTREAM']:case core_1[_0x2423de(0x246)][_0x2423de(0x20b)]:return'file';default:return _0x2423de(0x23d);}}function a8_0x1e83(){const _0x16cf1e=['rules','query','method','getClassExtendedMetadata','165CHBjOl','static/apitest','File','1425902DOLBGs','ACTION_KEY','INJECT_CUSTOM_PARAM','文件上传-','10451336DJPEaf','routes','WEB_ROUTER_PARAM_KEY','9973692cvAzjD','args','length','min','log','intercept','propertyData','summary','3mPjTdY','name','path','string','getRoutes','describe','split','964884voGRYa','FILESTREAM','module','title','Number','array','iterator','prefix','default','type','max','__esModule','parameterIndex','allow','replace','isArray','indexOf','test','149360KtmnvN','routerOptions','file','2778006jwlqpx','@anncic-api/validator','QUERY','limit','metadata','getClassMetadata','tagName','get','startsWith','number','request','required','keys','pprefix','BODY','ACTION_ROUTE_KEY','PARAM','1991eZAndh','requestMethod','listModule','concat','boolean','key','14850BiJpdA','push','7XqSbhP','body','children','items','flags.default','header','function','@midwayjs/core','noreq','find','Object','route','routerName','description','RouteParamTypes','filter','filepath','flags.label','只允许:[','getMethodParamTypes','lodash'];a8_0x1e83=function(){return _0x16cf1e;};return a8_0x1e83();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x40fc06=a9_0x4b5a;function a9_0x4b5a(_0x13c810,_0x194378){var _0x2870df=a9_0x2870();return a9_0x4b5a=function(_0x4b5a6c,_0x4c7fe3){_0x4b5a6c=_0x4b5a6c-0xaa;var _0x2446db=_0x2870df[_0x4b5a6c];return _0x2446db;},a9_0x4b5a(_0x13c810,_0x194378);}(function(_0x2ab5fa,_0x422134){var _0x3911d3=a9_0x4b5a,_0x36f68f=_0x2ab5fa();while(!![]){try{var _0x2a1742=-parseInt(_0x3911d3(0xbd))/0x1*(parseInt(_0x3911d3(0xd8))/0x2)+-parseInt(_0x3911d3(0xe1))/0x3*(-parseInt(_0x3911d3(0xcc))/0x4)+parseInt(_0x3911d3(0xd4))/0x5*(-parseInt(_0x3911d3(0xb9))/0x6)+parseInt(_0x3911d3(0xc0))/0x7+-parseInt(_0x3911d3(0xde))/0x8*(parseInt(_0x3911d3(0xcb))/0x9)+parseInt(_0x3911d3(0xc1))/0xa+parseInt(_0x3911d3(0xd3))/0xb;if(_0x2a1742===_0x422134)break;else _0x36f68f['push'](_0x36f68f['shift']());}catch(_0x19752a){_0x36f68f['push'](_0x36f68f['shift']());}}}(a9_0x2870,0xdb18b));var __createBinding=this&&this[a9_0x40fc06(0xae)]||(Object[a9_0x40fc06(0xce)]?function(_0x2a2894,_0x36dc4d,_0x69270d,_0x5ba492){var _0x409521=a9_0x40fc06;if(_0x5ba492===undefined)_0x5ba492=_0x69270d;var _0x557886=Object['getOwnPropertyDescriptor'](_0x36dc4d,_0x69270d);(!_0x557886||(_0x409521(0xbe)in _0x557886?!_0x36dc4d['__esModule']:_0x557886[_0x409521(0xb5)]||_0x557886[_0x409521(0xe6)]))&&(_0x557886={'enumerable':!![],'get':function(){return _0x36dc4d[_0x69270d];}}),Object[_0x409521(0xdd)](_0x2a2894,_0x5ba492,_0x557886);}:function(_0x1cd3a4,_0x1c4dbe,_0x4454be,_0x50a73a){if(_0x50a73a===undefined)_0x50a73a=_0x4454be;_0x1cd3a4[_0x50a73a]=_0x1c4dbe[_0x4454be];}),__exportStar=this&&this[a9_0x40fc06(0xda)]||function(_0x3187bb,_0x20b2a4){var _0x5ae4d3=a9_0x40fc06;for(var _0x171ac4 in _0x3187bb)if(_0x171ac4!==_0x5ae4d3(0xb0)&&!Object[_0x5ae4d3(0xe5)][_0x5ae4d3(0xb4)][_0x5ae4d3(0xb3)](_0x20b2a4,_0x171ac4))__createBinding(_0x20b2a4,_0x3187bb,_0x171ac4);};Object['defineProperty'](exports,a9_0x40fc06(0xcd),{'value':!![]}),exports[a9_0x40fc06(0xd6)]=exports[a9_0x40fc06(0xbb)]=exports['Scope']=exports['Inject']=exports[a9_0x40fc06(0xc8)]=exports[a9_0x40fc06(0xab)]=exports[a9_0x40fc06(0xb7)]=exports[a9_0x40fc06(0xca)]=exports['Init']=exports['Headers']=exports['Query']=exports[a9_0x40fc06(0xad)]=exports[a9_0x40fc06(0xcf)]=exports['Fields']=exports[a9_0x40fc06(0xd5)]=exports[a9_0x40fc06(0xd2)]=exports[a9_0x40fc06(0xc3)]=exports[a9_0x40fc06(0xbc)]=exports[a9_0x40fc06(0xe8)]=exports['ExcelService']=exports['ApiService']=exports[a9_0x40fc06(0xaf)]=exports['CacheService']=exports[a9_0x40fc06(0xd1)]=exports['getRoutes']=exports[a9_0x40fc06(0xc7)]=exports['Action']=exports[a9_0x40fc06(0xc5)]=void 0x0;const getAppsConfig_1=require(a9_0x40fc06(0xac));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xd6),{'enumerable':!![],'get':function(){var _0x26e14b=a9_0x40fc06;return getAppsConfig_1[_0x26e14b(0xd6)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x40fc06(0xb2)),exports);var ActionApi_1=require(a9_0x40fc06(0xc2));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xc5),{'enumerable':!![],'get':function(){var _0x1fd989=a9_0x40fc06;return ActionApi_1[_0x1fd989(0xc5)];}});var Action_1=require(a9_0x40fc06(0xd9));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xe2),{'enumerable':!![],'get':function(){var _0x8fd56b=a9_0x40fc06;return Action_1[_0x8fd56b(0xe2)];}});var ActionApitest_1=require(a9_0x40fc06(0xb8));Object[a9_0x40fc06(0xdd)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x387058=a9_0x40fc06;return ActionApitest_1[_0x387058(0xc7)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xe4),{'enumerable':!![],'get':function(){var _0x23247a=a9_0x40fc06;return getRoutes_1[_0x23247a(0xe4)];}});var ApiError_1=require(a9_0x40fc06(0xaa));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xd1),{'enumerable':!![],'get':function(){var _0x42473b=a9_0x40fc06;return ApiError_1[_0x42473b(0xd1)];}});var cache_1=require(a9_0x40fc06(0xd7));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xe0),{'enumerable':!![],'get':function(){var _0xbacd7e=a9_0x40fc06;return cache_1[_0xbacd7e(0xe0)];}});var event_1=require('@anncic-api/event');Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xaf),{'enumerable':!![],'get':function(){var _0x347b81=a9_0x40fc06;return event_1[_0x347b81(0xaf)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xbf),{'enumerable':!![],'get':function(){var _0x5abcdc=a9_0x40fc06;return ApiService_1[_0x5abcdc(0xbf)];}});var ExcelService_1=require(a9_0x40fc06(0xb1));Object['defineProperty'](exports,a9_0x40fc06(0xe3),{'enumerable':!![],'get':function(){var _0x128317=a9_0x40fc06;return ExcelService_1[_0x128317(0xe3)];}});function a9_0x2870(){var _0x2d7757=['__esModule','create','Body','CustomConfiguration','ApiError','File','4954169aYllWs','45MWaUol','Files','getAppsConfig','@anncic-api/cache','600IBKSdz','./decorator/Action','__exportStar','Scope','Init','defineProperty','5993336HBuYlD','Headers','CacheService','5372607dirPce','Action','ExcelService','getRoutes','prototype','configurable','./configuration','ValidatorError','./exception/ApiError','Logger','./helper/getAppsConfig','Param','__createBinding','EventService','default','./service/ExcelService','./service/ApitestService','call','hasOwnProperty','writable','@anncic-api/validator','Config','./decorator/ActionApitest','159882MUJAZQ','Query','ScopeEnum','ValidatorService','356frcgQB','get','ApiService','3306009kceUND','288410idUTir','./decorator/ActionApi','Configuration','@midwayjs/core','Api','Inject','Apitest','Provide','Fields','App','18RZELbT','4WCleFR'];a9_0x2870=function(){return _0x2d7757;};return a9_0x2870();}var validator_1=require(a9_0x40fc06(0xb6));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x39d504=a9_0x40fc06;return validator_1[_0x39d504(0xe8)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xbc),{'enumerable':!![],'get':function(){var _0xce1cd7=a9_0x40fc06;return validator_1[_0xce1cd7(0xbc)];}});var configuration_1=require(a9_0x40fc06(0xe7));Object['defineProperty'](exports,a9_0x40fc06(0xc3),{'enumerable':!![],'get':function(){var _0xc91b1f=a9_0x40fc06;return configuration_1[_0xc91b1f(0xd0)];}});var core_1=require(a9_0x40fc06(0xc4));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xd2),{'enumerable':!![],'get':function(){var _0x40b5b6=a9_0x40fc06;return core_1[_0x40b5b6(0xd2)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xd5),{'enumerable':!![],'get':function(){var _0x14015d=a9_0x40fc06;return core_1[_0x14015d(0xd5)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xc9),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a9_0x40fc06(0xcf),{'enumerable':!![],'get':function(){var _0x157b1e=a9_0x40fc06;return core_1[_0x157b1e(0xcf)];}}),Object['defineProperty'](exports,a9_0x40fc06(0xad),{'enumerable':!![],'get':function(){var _0x59e713=a9_0x40fc06;return core_1[_0x59e713(0xad)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xba),{'enumerable':!![],'get':function(){var _0x45ce4d=a9_0x40fc06;return core_1[_0x45ce4d(0xba)];}}),Object[a9_0x40fc06(0xdd)](exports,'Headers',{'enumerable':!![],'get':function(){var _0xb06f15=a9_0x40fc06;return core_1[_0xb06f15(0xdf)];}}),Object['defineProperty'](exports,a9_0x40fc06(0xdc),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a9_0x40fc06(0xc4));Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xca),{'enumerable':!![],'get':function(){var _0x50aa56=a9_0x40fc06;return core_2[_0x50aa56(0xca)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xb7),{'enumerable':!![],'get':function(){var _0x2b28bf=a9_0x40fc06;return core_2[_0x2b28bf(0xb7)];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xab),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x40fc06(0xdd)](exports,a9_0x40fc06(0xc8),{'enumerable':!![],'get':function(){var _0x444dcc=a9_0x40fc06;return core_2[_0x444dcc(0xc8)];}}),Object[a9_0x40fc06(0xdd)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x1599c7=a9_0x40fc06;return core_2[_0x1599c7(0xc6)];}}),Object['defineProperty'](exports,a9_0x40fc06(0xdb),{'enumerable':!![],'get':function(){var _0x3eb3f9=a9_0x40fc06;return core_2[_0x3eb3f9(0xdb)];}}),Object['defineProperty'](exports,a9_0x40fc06(0xbb),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x40fc06(0xd6)]=getAppsConfig_1[a9_0x40fc06(0xd6)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0x571c(){var _0x3afe22=['decorate','join','缺少头信息:','7873230cRWKDo','crypto-js','devices','getOwnPropertyDescriptor','TIMEOUT','length','ApiService','map','@midwayjs/core','requesttime','20255bVPQDh','ScopeEnum','getsign','18wEuIkN','secret','888297xoDFJI','__esModule','118WDKQDj','缺少头信息:signature','fromEntries','timeout','sort','entries','633486dPBdia','metadata','checkcode','push','Config','device','724tbxmap','logintimeout','checksign','HEADERS_LACK','TIMEOUT_LOGINTIME','secret=','Singleton','token','toLowerCase','function','toString','HEADERS_SIGNATURE','HEADERS_CHECKCODE','__decorate','../exception/ApiError','now','defineProperty','Provide','Scope','logintime','23712nPVegi','undefined','21052anyGKG','design:type','object','MD5','ApiError','anncicapi','getcheck','prototype','password','abs','2223gGQWRZ','config','signature','3281377cwtnbm'];a10_0x571c=function(){return _0x3afe22;};return a10_0x571c();}var a10_0x159eff=a10_0x4e78;(function(_0x1b8a08,_0xbc4e25){var _0x1c829e=a10_0x4e78,_0x345832=_0x1b8a08();while(!![]){try{var _0x5d02bc=parseInt(_0x1c829e(0xf4))/0x1*(parseInt(_0x1c829e(0x116))/0x2)+parseInt(_0x1c829e(0xf2))/0x3+-parseInt(_0x1c829e(0x100))/0x4*(parseInt(_0x1c829e(0xed))/0x5)+-parseInt(_0x1c829e(0xf0))/0x6*(-parseInt(_0x1c829e(0xfa))/0x7)+-parseInt(_0x1c829e(0x114))/0x8*(parseInt(_0x1c829e(0x120))/0x9)+parseInt(_0x1c829e(0xe3))/0xa+-parseInt(_0x1c829e(0xdf))/0xb;if(_0x5d02bc===_0xbc4e25)break;else _0x345832['push'](_0x345832['shift']());}catch(_0x3483c7){_0x345832['push'](_0x345832['shift']());}}}(a10_0x571c,0xcb73a));var __decorate=this&&this[a10_0x159eff(0x10d)]||function(_0x40111f,_0x23e66e,_0x19d13f,_0x368b9b){var _0x4fdbf3=a10_0x159eff,_0x5eee43=arguments[_0x4fdbf3(0xe8)],_0x643b4f=_0x5eee43<0x3?_0x23e66e:_0x368b9b===null?_0x368b9b=Object[_0x4fdbf3(0xe6)](_0x23e66e,_0x19d13f):_0x368b9b,_0x2fe90e;if(typeof Reflect===_0x4fdbf3(0x118)&&typeof Reflect[_0x4fdbf3(0xe0)]==='function')_0x643b4f=Reflect[_0x4fdbf3(0xe0)](_0x40111f,_0x23e66e,_0x19d13f,_0x368b9b);else{for(var _0x5d4ec7=_0x40111f[_0x4fdbf3(0xe8)]-0x1;_0x5d4ec7>=0x0;_0x5d4ec7--)if(_0x2fe90e=_0x40111f[_0x5d4ec7])_0x643b4f=(_0x5eee43<0x3?_0x2fe90e(_0x643b4f):_0x5eee43>0x3?_0x2fe90e(_0x23e66e,_0x19d13f,_0x643b4f):_0x2fe90e(_0x23e66e,_0x19d13f))||_0x643b4f;}return _0x5eee43>0x3&&_0x643b4f&&Object['defineProperty'](_0x23e66e,_0x19d13f,_0x643b4f),_0x643b4f;},__metadata=this&&this['__metadata']||function(_0x357f3f,_0x27bc05){var _0x1cf870=a10_0x159eff;if(typeof Reflect==='object'&&typeof Reflect[_0x1cf870(0xfb)]===_0x1cf870(0x109))return Reflect[_0x1cf870(0xfb)](_0x357f3f,_0x27bc05);};Object[a10_0x159eff(0x110)](exports,a10_0x159eff(0xf3),{'value':!![]}),exports[a10_0x159eff(0xe9)]=void 0x0;const crypto_js_1=require(a10_0x159eff(0xe4)),core_1=require(a10_0x159eff(0xeb)),ApiError_1=require(a10_0x159eff(0x10e));let ApiService=class ApiService{[a10_0x159eff(0x11e)](_0x4e01ad){var _0x209a41=a10_0x159eff,_0x47f0c8;return _0x4e01ad?(0x0,crypto_js_1[_0x209a41(0x119)])(_0x4e01ad+(0x0,crypto_js_1[_0x209a41(0x119)])((0x0,crypto_js_1['MD5'])(_0x4e01ad)[_0x209a41(0x10a)]()+((_0x47f0c8=this[_0x209a41(0x121)])===null||_0x47f0c8===void 0x0?void 0x0:_0x47f0c8[_0x209a41(0x11e)]))['toString']())[_0x209a41(0x10a)]():'';}[a10_0x159eff(0x11c)](_0x5d8734,_0x16a93f,_0x374d10=Date[a10_0x159eff(0x10f)]()){var _0x4a7544=a10_0x159eff;return{'Token':_0x5d8734,'Logintime':_0x374d10,'Checkcode':this[_0x4a7544(0xfc)](_0x5d8734,_0x16a93f,_0x374d10)};}[a10_0x159eff(0xef)](_0xed90fc={}){var _0x19a962=a10_0x159eff,_0x3ad1a1;const _0x5a4343=[],_0x2710e4=Object['fromEntries'](Object[_0x19a962(0xf9)](_0xed90fc)[_0x19a962(0xea)](_0x36ef38=>[_0x36ef38[0x0][_0x19a962(0x108)](),_0x36ef38[0x1]]));for(let _0x3710a7 of[_0x19a962(0xff),_0x19a962(0xec),_0x19a962(0x107),_0x19a962(0x113),_0x19a962(0xfc)]){if(typeof _0x2710e4[_0x3710a7]==_0x19a962(0x115))throw new AnnError(ApiError_1[_0x19a962(0x11a)][_0x19a962(0x103)],{'message':_0x19a962(0xe2)+_0x3710a7});_0x5a4343[_0x19a962(0xfd)](_0x3710a7+'='+_0x2710e4[_0x3710a7]);}if(Date[_0x19a962(0x10f)]()-Math['abs'](_0x2710e4[_0x19a962(0xec)])>this['config'][_0x19a962(0xf7)])throw new AnnError(ApiError_1['ApiError'][_0x19a962(0xe7)]);if((((_0x3ad1a1=this[_0x19a962(0x121)][_0x19a962(0xe5)][_0x2710e4[_0x19a962(0xff)]])===null||_0x3ad1a1===void 0x0?void 0x0:_0x3ad1a1[_0x19a962(0x101)])||0x0)>0x0&&Date[_0x19a962(0x10f)]()-Math[_0x19a962(0x11f)](_0x2710e4[_0x19a962(0x113)])>this[_0x19a962(0x121)][_0x19a962(0xe5)][_0x2710e4[_0x19a962(0xff)]][_0x19a962(0x101)])throw new AnnError(ApiError_1['ApiError'][_0x19a962(0x104)]);if(!this[_0x19a962(0x121)]['devices'][_0x2710e4[_0x19a962(0xff)]]||!this[_0x19a962(0x121)][_0x19a962(0xe5)][_0x2710e4[_0x19a962(0xff)]][_0x19a962(0xf1)]||!this[_0x19a962(0x121)][_0x19a962(0xe5)][_0x2710e4['device']]['checkcode'])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x2710e4[_0x19a962(0x107)]&&_0x2710e4[_0x19a962(0xfc)]!=this['checkcode'](_0x2710e4['token'],_0x2710e4[_0x19a962(0xff)],_0x2710e4['logintime']))throw new AnnError(ApiError_1[_0x19a962(0x11a)][_0x19a962(0x10c)]);return _0x5a4343[_0x19a962(0xfd)](_0x19a962(0x105)+this[_0x19a962(0x121)][_0x19a962(0xe5)][_0x2710e4[_0x19a962(0xff)]][_0x19a962(0xf1)]),(0x0,crypto_js_1[_0x19a962(0x119)])(_0x5a4343[_0x19a962(0xf8)]()[_0x19a962(0xe1)](''))[_0x19a962(0x10a)]();}[a10_0x159eff(0xfc)](_0x4b1a6f,_0x4f2433,_0x53900b=Date[a10_0x159eff(0x10f)]()){var _0x27135e=a10_0x159eff,_0x553425,_0x1dc09c,_0x320495;if(!((_0x553425=this['config'])===null||_0x553425===void 0x0?void 0x0:_0x553425['devices'][_0x4f2433])||!((_0x320495=(_0x1dc09c=this[_0x27135e(0x121)])===null||_0x1dc09c===void 0x0?void 0x0:_0x1dc09c[_0x27135e(0xe5)][_0x4f2433])===null||_0x320495===void 0x0?void 0x0:_0x320495[_0x27135e(0xfc)]))throw new AnnError(ApiError_1[_0x27135e(0x11a)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x27135e(0x119)])(_0x4b1a6f+(0x0,crypto_js_1[_0x27135e(0x119)])(_0x53900b+this['config'][_0x27135e(0xe5)][_0x4f2433]['checkcode'])[_0x27135e(0x10a)]())[_0x27135e(0x10a)]();}[a10_0x159eff(0x102)](_0xc1a21b={}){var _0x40ece7=a10_0x159eff;const _0x54586f=Object[_0x40ece7(0xf6)](Object[_0x40ece7(0xf9)](_0xc1a21b)[_0x40ece7(0xea)](_0x2edb46=>[_0x2edb46[0x0]['toLowerCase'](),_0x2edb46[0x1]]));if(!(_0x54586f===null||_0x54586f===void 0x0?void 0x0:_0x54586f[_0x40ece7(0x122)]))throw new AnnError(ApiError_1['ApiError'][_0x40ece7(0x103)],{'message':_0x40ece7(0xf5)});if((_0x54586f===null||_0x54586f===void 0x0?void 0x0:_0x54586f[_0x40ece7(0x122)])!=this[_0x40ece7(0xef)](_0x54586f))throw new AnnError(ApiError_1[_0x40ece7(0x11a)][_0x40ece7(0x10b)]);return!![];}};function a10_0x4e78(_0x3e6c8d,_0x2064da){var _0x571c72=a10_0x571c();return a10_0x4e78=function(_0x4e7896,_0x54b715){_0x4e7896=_0x4e7896-0xdf;var _0x667921=_0x571c72[_0x4e7896];return _0x667921;},a10_0x4e78(_0x3e6c8d,_0x2064da);}__decorate([(0x0,core_1[a10_0x159eff(0xfe)])(a10_0x159eff(0x11b)),__metadata(a10_0x159eff(0x117),Object)],ApiService[a10_0x159eff(0x11d)],a10_0x159eff(0x121),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x159eff(0x111)])(),(0x0,core_1[a10_0x159eff(0x112)])(core_1[a10_0x159eff(0xee)][a10_0x159eff(0x106)])],ApiService),exports[a10_0x159eff(0xe9)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x28841b=a11_0x2603;(function(_0x2d5780,_0x480563){const _0x2ec484=a11_0x2603,_0x44c273=_0x2d5780();while(!![]){try{const _0xe19812=-parseInt(_0x2ec484(0x1a4))/0x1+parseInt(_0x2ec484(0x169))/0x2*(parseInt(_0x2ec484(0x192))/0x3)+-parseInt(_0x2ec484(0x186))/0x4*(-parseInt(_0x2ec484(0x191))/0x5)+-parseInt(_0x2ec484(0x1a5))/0x6*(parseInt(_0x2ec484(0x182))/0x7)+-parseInt(_0x2ec484(0x160))/0x8+-parseInt(_0x2ec484(0x17f))/0x9+parseInt(_0x2ec484(0x19b))/0xa;if(_0xe19812===_0x480563)break;else _0x44c273['push'](_0x44c273['shift']());}catch(_0x908c79){_0x44c273['push'](_0x44c273['shift']());}}}(a11_0x65c4,0xb0cf9));var __decorate=this&&this[a11_0x28841b(0x19c)]||function(_0x1ba530,_0x2c7976,_0x89746a,_0x3943f7){const _0x38ceca=a11_0x28841b;var _0x169e11=arguments['length'],_0x4fb95f=_0x169e11<0x3?_0x2c7976:_0x3943f7===null?_0x3943f7=Object['getOwnPropertyDescriptor'](_0x2c7976,_0x89746a):_0x3943f7,_0x70d43a;if(typeof Reflect===_0x38ceca(0x1a1)&&typeof Reflect[_0x38ceca(0x184)]===_0x38ceca(0x170))_0x4fb95f=Reflect[_0x38ceca(0x184)](_0x1ba530,_0x2c7976,_0x89746a,_0x3943f7);else{for(var _0x5e0caa=_0x1ba530[_0x38ceca(0x181)]-0x1;_0x5e0caa>=0x0;_0x5e0caa--)if(_0x70d43a=_0x1ba530[_0x5e0caa])_0x4fb95f=(_0x169e11<0x3?_0x70d43a(_0x4fb95f):_0x169e11>0x3?_0x70d43a(_0x2c7976,_0x89746a,_0x4fb95f):_0x70d43a(_0x2c7976,_0x89746a))||_0x4fb95f;}return _0x169e11>0x3&&_0x4fb95f&&Object[_0x38ceca(0x172)](_0x2c7976,_0x89746a,_0x4fb95f),_0x4fb95f;},__metadata=this&&this[a11_0x28841b(0x195)]||function(_0x480430,_0x4e42b7){const _0x538592=a11_0x28841b;if(typeof Reflect===_0x538592(0x1a1)&&typeof Reflect[_0x538592(0x177)]==='function')return Reflect[_0x538592(0x177)](_0x480430,_0x4e42b7);},__param=this&&this[a11_0x28841b(0x19f)]||function(_0x1f52ce,_0x156498){return function(_0x1248c3,_0x4f61cd){_0x156498(_0x1248c3,_0x4f61cd,_0x1f52ce);};};Object['defineProperty'](exports,a11_0x28841b(0x187),{'value':!![]}),exports[a11_0x28841b(0x163)]=exports[a11_0x28841b(0x166)]=void 0x0;const path_1=require(a11_0x28841b(0x180)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x28841b(0x15f)),core_3=require(a11_0x28841b(0x15f)),getRoutes_1=require(a11_0x28841b(0x173));let ApitestService=class ApitestService{async[a11_0x28841b(0x1aa)](_0x52cef1){const _0x248dd5=a11_0x28841b,_0x33d68e=(0x0,getRoutes_1['getRoutes'])(_0x52cef1),_0xbcddd8=[];for(let _0x1a5fb1 in _0x33d68e){for(let _0x3cfcb7 in _0x33d68e[_0x1a5fb1][_0x248dd5(0x16e)]){let _0x3777da=_0x33d68e[_0x1a5fb1][_0x248dd5(0x16e)][_0x3cfcb7],_0x56830d=[];for(let _0x503057 in _0x3777da[_0x248dd5(0x1a6)]){_0x56830d['push'](_0x3777da[_0x248dd5(0x1a6)][_0x503057]);}_0xbcddd8['push']({'title':_0x33d68e[_0x1a5fb1]['summary']+':'+_0x3777da[_0x248dd5(0x1a8)],'prefix':_0x33d68e[_0x1a5fb1]['prefix'],'router':_0x3777da[_0x248dd5(0x183)],'method':_0x3777da['method'],'describe':_0x3777da[_0x248dd5(0x178)]||'','filepath':_0x33d68e[_0x1a5fb1][_0x248dd5(0x161)]||'','request':_0x56830d});}}const _0x49ecad=(0x0,path_1[_0x248dd5(0x196)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x248dd5(0x16d)])(_0x49ecad,{'encoding':'utf-8'})[_0x248dd5(0x194)](/__res__/g,'/apiteststatic/')[_0x248dd5(0x194)](_0x248dd5(0x16a),JSON[_0x248dd5(0x17b)](_0xbcddd8))[_0x248dd5(0x194)](_0x248dd5(0x18b),JSON[_0x248dd5(0x17b)](this[_0x248dd5(0x16f)][_0x248dd5(0x15e)]));}};__decorate([(0x0,core_3[a11_0x28841b(0x171)])(a11_0x28841b(0x185)),__metadata(a11_0x28841b(0x199),Object)],ApitestService[a11_0x28841b(0x176)],a11_0x28841b(0x16f),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x28841b(0x17e)])(a11_0x28841b(0x17a)),(0x0,core_3[a11_0x28841b(0x167)])(core_3[a11_0x28841b(0x162)][a11_0x28841b(0x18e)])],ApitestService),exports['ApitestService']=ApitestService;function a11_0x65c4(){const _0x34a0c6=['join','application/javascript;\x20charset=utf-8','MidwayEnvironmentService','design:type','set','39284720sayLAJ','__decorate','design:returntype','apitesthtml','__param','isDevelopmentEnvironment','object','existsSync','Request','537512hVYlhc','870AhPqlF','request','ctx','summary','Environment','apidoc','devices','@midwayjs/core','11320336eNUfWH','filepath','ScopeEnum','ApitestStaticController','content-type','apitestmodule','ApitestService','Scope','.css','4OQgzga','__apiList__','Get','Controller','readFileSync','routes','config','function','Config','defineProperty','../helper/getRoutes','Param','/apiteststatic/*','prototype','metadata','description','/index.html','apitest','stringify','extname','text/css;\x20charset=utf-8','Provide','4868559zoBbNs','path','length','64925KuSfJu','route','decorate','anncicapi','18148qASiMA','__esModule','cache-control','public,\x20max-age=604800','Inject','__devices__','design:paramtypes','/apitest','Singleton','apiteststatic','module','95EVIJBd','821883LFdKQv','url','replace','__metadata'];a11_0x65c4=function(){return _0x34a0c6;};return a11_0x65c4();}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x329ae2=a11_0x28841b;if(this['apitest']){const _0x3382c1={'module':![]};return this['Environment'][_0x329ae2(0x1a0)]()&&(_0x3382c1[_0x329ae2(0x161)]=!![]),await this['ApitestService'][_0x329ae2(0x1aa)](_0x3382c1);}return'';}async[a11_0x28841b(0x165)](_0x5453e7){const _0x1ac62e=a11_0x28841b;if(this[_0x1ac62e(0x17a)]){const _0x13c436={'module':_0x5453e7};return this[_0x1ac62e(0x1a9)][_0x1ac62e(0x1a0)]()&&(_0x13c436[_0x1ac62e(0x161)]=!![]),await this[_0x1ac62e(0x166)][_0x1ac62e(0x1aa)](_0x13c436);}return'';}async[a11_0x28841b(0x18f)](){const _0x38dc5c=a11_0x28841b;if((0x0,path_1['extname'])(this[_0x38dc5c(0x1a7)][_0x38dc5c(0x1a6)][_0x38dc5c(0x193)])){var _0x4c5b29=(0x0,path_1[_0x38dc5c(0x196)])(__dirname,'../../public/'+this[_0x38dc5c(0x1a7)][_0x38dc5c(0x1a6)]['url'][_0x38dc5c(0x194)]('/apiteststatic/','/'));if(_0x4c5b29['substring'](_0x4c5b29['length']-0xb)!=_0x38dc5c(0x179)){this[_0x38dc5c(0x1a7)]['set'](_0x38dc5c(0x188),_0x38dc5c(0x189));if((0x0,path_1[_0x38dc5c(0x17c)])(this[_0x38dc5c(0x1a7)][_0x38dc5c(0x1a6)][_0x38dc5c(0x193)])=='.js')this[_0x38dc5c(0x1a7)]['set'](_0x38dc5c(0x164),_0x38dc5c(0x197));else(0x0,path_1[_0x38dc5c(0x17c)])(this['ctx'][_0x38dc5c(0x1a6)][_0x38dc5c(0x193)])==_0x38dc5c(0x168)&&this[_0x38dc5c(0x1a7)][_0x38dc5c(0x19a)](_0x38dc5c(0x164),_0x38dc5c(0x17d));return(0x0,fs_1[_0x38dc5c(0x1a2)])(_0x4c5b29)&&(0x0,fs_1[_0x38dc5c(0x16d)])(_0x4c5b29,{'encoding':'utf-8'});}}return'';}};function a11_0x2603(_0x28084f,_0x4c5558){const _0x65c458=a11_0x65c4();return a11_0x2603=function(_0x260365,_0x44c988){_0x260365=_0x260365-0x15e;let _0x2deb36=_0x65c458[_0x260365];return _0x2deb36;},a11_0x2603(_0x28084f,_0x4c5558);}__decorate([(0x0,core_3[a11_0x28841b(0x18a)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x28841b(0x176)],'ctx',void 0x0),__decorate([(0x0,core_3[a11_0x28841b(0x18a)])(),__metadata(a11_0x28841b(0x199),core_1[a11_0x28841b(0x198)])],ApitestStaticController['prototype'],a11_0x28841b(0x1a9),void 0x0),__decorate([(0x0,core_3[a11_0x28841b(0x18a)])(),__metadata(a11_0x28841b(0x199),ApitestService)],ApitestStaticController[a11_0x28841b(0x176)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a11_0x28841b(0x171)])(a11_0x28841b(0x17a)),__metadata(a11_0x28841b(0x199),Boolean)],ApitestStaticController[a11_0x28841b(0x176)],a11_0x28841b(0x17a),void 0x0),__decorate([(0x0,core_3[a11_0x28841b(0x171)])('anncicapi'),__metadata(a11_0x28841b(0x199),Object)],ApitestStaticController[a11_0x28841b(0x176)],'config',void 0x0),__decorate([(0x0,core_2[a11_0x28841b(0x16b)])(a11_0x28841b(0x18d)),__metadata(a11_0x28841b(0x199),Function),__metadata(a11_0x28841b(0x18c),[]),__metadata(a11_0x28841b(0x19d),Promise)],ApitestStaticController[a11_0x28841b(0x176)],a11_0x28841b(0x19e),null),__decorate([(0x0,core_2[a11_0x28841b(0x16b)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x28841b(0x174)])(a11_0x28841b(0x190))),__metadata('design:type',Function),__metadata(a11_0x28841b(0x18c),[String]),__metadata(a11_0x28841b(0x19d),Promise)],ApitestStaticController['prototype'],a11_0x28841b(0x165),null),__decorate([(0x0,core_2[a11_0x28841b(0x16b)])(a11_0x28841b(0x175)),__metadata(a11_0x28841b(0x199),Function),__metadata(a11_0x28841b(0x18c),[]),__metadata(a11_0x28841b(0x19d),Promise)],ApitestStaticController[a11_0x28841b(0x176)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x28841b(0x16c)])('/'),(0x0,core_3[a11_0x28841b(0x167)])(core_3[a11_0x28841b(0x162)][a11_0x28841b(0x1a3)])],ApitestStaticController),exports[a11_0x28841b(0x163)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a12_0x3efb(){const _0x3e1eac=['key','app','addRow','public/xlsx','@midwayjs/core','getAppDir','handler','isNumber','ExcelService','Provide','endsWith','ScopeEnum','/public/xlsx','136EbMgGt','806368cFlfft','21EsarFp','startsWith','Sheet\x201','addWorksheet','5vRcrIt','export','eachCell','.xlsx','Scope','__metadata','random','metadata','worksheets','defineProperty','getRow','90IciTDg','toString','168066SkAUtR','getWorksheet','design:type','substring','get','keys','__decorate','push','columns','cellCount','header','8172qKOsXK','2267106GWazJF','Workbook','App','value','Api\x20Excel\x20Error:\x20','replace','__esModule','149261kiZeWJ','readFile','frozen','object','1181096TLnHcO','5734179xhQgOY','length','xlsx','getCell','download','getOwnPropertyDescriptor','function','col','decorate'];a12_0x3efb=function(){return _0x3e1eac;};return a12_0x3efb();}const a12_0x29bed4=a12_0x530e;(function(_0x24af58,_0x3f92f8){const _0x3dce21=a12_0x530e,_0x221fba=_0x24af58();while(!![]){try{const _0x5c3b53=parseInt(_0x3dce21(0x10f))/0x1+parseInt(_0x3dce21(0xe9))/0x2*(parseInt(_0x3dce21(0x107))/0x3)+parseInt(_0x3dce21(0xea))/0x4+-parseInt(_0x3dce21(0xef))/0x5*(parseInt(_0x3dce21(0x108))/0x6)+parseInt(_0x3dce21(0xeb))/0x7*(parseInt(_0x3dce21(0x113))/0x8)+parseInt(_0x3dce21(0xfc))/0x9*(parseInt(_0x3dce21(0xfa))/0xa)+-parseInt(_0x3dce21(0x114))/0xb;if(_0x5c3b53===_0x3f92f8)break;else _0x221fba['push'](_0x221fba['shift']());}catch(_0x2b252b){_0x221fba['push'](_0x221fba['shift']());}}}(a12_0x3efb,0x3c872));var __decorate=this&&this[a12_0x29bed4(0x102)]||function(_0x22e2a3,_0x2abd77,_0x444ac8,_0x450b28){const _0x1ac307=a12_0x29bed4;var _0x426925=arguments['length'],_0x21eb6b=_0x426925<0x3?_0x2abd77:_0x450b28===null?_0x450b28=Object[_0x1ac307(0x119)](_0x2abd77,_0x444ac8):_0x450b28,_0xaf36f0;if(typeof Reflect===_0x1ac307(0x112)&&typeof Reflect['decorate']===_0x1ac307(0x11a))_0x21eb6b=Reflect[_0x1ac307(0xdb)](_0x22e2a3,_0x2abd77,_0x444ac8,_0x450b28);else{for(var _0x5a79f9=_0x22e2a3['length']-0x1;_0x5a79f9>=0x0;_0x5a79f9--)if(_0xaf36f0=_0x22e2a3[_0x5a79f9])_0x21eb6b=(_0x426925<0x3?_0xaf36f0(_0x21eb6b):_0x426925>0x3?_0xaf36f0(_0x2abd77,_0x444ac8,_0x21eb6b):_0xaf36f0(_0x2abd77,_0x444ac8))||_0x21eb6b;}return _0x426925>0x3&&_0x21eb6b&&Object[_0x1ac307(0xf8)](_0x2abd77,_0x444ac8,_0x21eb6b),_0x21eb6b;},__metadata=this&&this[a12_0x29bed4(0xf4)]||function(_0x414be7,_0x534740){const _0x277d57=a12_0x29bed4;if(typeof Reflect==='object'&&typeof Reflect[_0x277d57(0xf6)]==='function')return Reflect[_0x277d57(0xf6)](_0x414be7,_0x534740);};Object[a12_0x29bed4(0xf8)](exports,a12_0x29bed4(0x10e),{'value':!![]}),exports[a12_0x29bed4(0xe4)]=void 0x0;function a12_0x530e(_0x34f94c,_0x91d4cb){const _0x3efbff=a12_0x3efb();return a12_0x530e=function(_0x530e99,_0x36b3d5){_0x530e99=_0x530e99-0xdb;let _0x1c22c5=_0x3efbff[_0x530e99];return _0x1c22c5;},a12_0x530e(_0x34f94c,_0x91d4cb);}const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),core_1=require(a12_0x29bed4(0xe0));let ExcelService=class ExcelService{async['parse'](_0x4903f2,_0x430e8f,_0x5e1759=[0x0]){const _0x288162=a12_0x29bed4;var _0x55d3e7,_0x1d1594;const _0x12077=new exceljs[(_0x288162(0x109))](),_0x59558d=[];let _0x558e4d=_0x4903f2[_0x288162(0x10d)](/(\\|\/)/g,'/')[_0x288162(0x10d)](/\/{2,}/g,'/');!(_0x558e4d===null||_0x558e4d===void 0x0?void 0x0:_0x558e4d[_0x288162(0xec)]('/'))&&(_0x558e4d=this[_0x288162(0xdd)][_0x288162(0xe1)]()+'/'+_0x558e4d);try{await _0x12077['xlsx'][_0x288162(0x110)](_0x558e4d);}catch(_0xb21df9){return console['log'](_0x288162(0x10c)+_0x558e4d+'\x20is\x20read\x20fail'),_0x59558d;}for(const _0x619d13 of _0x5e1759){const _0x4cc4f5=lodash[_0x288162(0xe3)](_0x619d13)?((_0x55d3e7=_0x12077[_0x288162(0xf7)])===null||_0x55d3e7===void 0x0?void 0x0:_0x55d3e7[_0x619d13])||undefined:_0x12077[_0x288162(0xfd)](_0x619d13);if(_0x4cc4f5){var _0x1214de=0x1;const _0x423927=_0x4cc4f5[_0x288162(0xf9)](0x1),_0x1750b3=await new Promise(_0x1026cc=>{const _0x1679ca=_0x288162,_0x3af14d={};_0x423927[_0x1679ca(0xf1)]((_0x3bed1e,_0x10149f)=>{const _0x561e6d=_0x1679ca;for(const _0x293f74 of _0x430e8f){if(_0x3bed1e[_0x561e6d(0x10b)]==_0x293f74[_0x561e6d(0x106)])_0x1214de=0x2,_0x3af14d[_0x293f74[_0x561e6d(0xdc)]]={'header':_0x3bed1e[_0x561e6d(0x11b)],'handler':_0x293f74[_0x561e6d(0xe2)]};else{if(!_0x3af14d[_0x293f74[_0x561e6d(0xdc)]])try{const _0x424112=_0x423927[_0x561e6d(0x117)](_0x293f74[_0x561e6d(0x106)]);_0x424112&&(_0x3af14d[_0x293f74[_0x561e6d(0xdc)]]={'header':_0x424112[_0x561e6d(0x11b)],'handler':_0x293f74[_0x561e6d(0xe2)]});}catch{}}}_0x423927[_0x561e6d(0x105)]==_0x10149f&&_0x1026cc(_0x3af14d);});});for(const _0x7471f7 of _0x4cc4f5['findRows'](_0x1214de,_0x4cc4f5['rowCount'])){const _0x2ec892={};for(const _0x57f454 in _0x1750b3){if(_0x1750b3[_0x57f454]['header']){const _0x4b00c8=_0x7471f7[_0x288162(0x117)](_0x1750b3[_0x57f454]['header']);typeof((_0x1d1594=_0x1750b3[_0x57f454])===null||_0x1d1594===void 0x0?void 0x0:_0x1d1594[_0x288162(0xe2)])==_0x288162(0x11a)?_0x2ec892[_0x57f454]=await _0x1750b3[_0x57f454]['handler']((_0x4b00c8===null||_0x4b00c8===void 0x0?void 0x0:_0x4b00c8['toString']())||'',_0x4b00c8['model']):_0x2ec892[_0x57f454]=(_0x4b00c8===null||_0x4b00c8===void 0x0?void 0x0:_0x4b00c8[_0x288162(0xfb)]())||'';}}Object[_0x288162(0x101)](_0x2ec892)[_0x288162(0x115)]>0x0&&_0x59558d[_0x288162(0x103)](_0x2ec892);}}}return _0x59558d;}async[a12_0x29bed4(0xf0)](_0x43ff8b,_0xb01701,_0x1e8c5a,_0x2b9ceb=a12_0x29bed4(0xdf)){const _0x34a16a=a12_0x29bed4;var _0x2b03ca,_0xa7ba85;const _0x4389e3=new exceljs[(_0x34a16a(0x109))](),_0x48de34={},_0x5edbc8=[],_0x3e8c47=_0x4389e3[_0x34a16a(0xee)](_0x34a16a(0xed),{'views':[{'state':_0x34a16a(0x111),'xSplit':0x1}]});for(const _0x4a8395 in _0xb01701){_0x48de34[_0xb01701[_0x4a8395][_0x34a16a(0xdc)]]=_0xb01701[_0x4a8395]['header'],_0x5edbc8[_0x34a16a(0x103)]({'header':_0xb01701[_0x4a8395][_0x34a16a(0x106)],'key':(_0x2b03ca=_0xb01701[_0x4a8395])===null||_0x2b03ca===void 0x0?void 0x0:_0x2b03ca[_0x34a16a(0xdc)]['replace'](/\./g,'_')});}_0x3e8c47[_0x34a16a(0x104)]=_0x5edbc8;for(const _0x21e02c of _0x1e8c5a){const _0x316ba3={};for(const _0x312687 in _0xb01701){typeof((_0xa7ba85=_0xb01701[_0x312687])===null||_0xa7ba85===void 0x0?void 0x0:_0xa7ba85['handler'])==_0x34a16a(0x11a)?_0x316ba3[_0xb01701[_0x312687][_0x34a16a(0xdc)][_0x34a16a(0x10d)](/\./g,'_')]=await _0xb01701[_0x312687][_0x34a16a(0xe2)](_0x21e02c):_0x316ba3[_0xb01701[_0x312687]['key'][_0x34a16a(0x10d)](/\./g,'_')]=lodash[_0x34a16a(0x100)](_0x21e02c,_0xb01701[_0x312687]['key'],'');}_0x3e8c47[_0x34a16a(0xde)](_0x316ba3);}let _0x244d2f='';const _0x524aa7=_0x43ff8b+'-'+lodash[_0x34a16a(0xf5)](0x2710,0x1869f)+_0x34a16a(0xf2);if(_0x2b9ceb&&_0x2b9ceb[_0x34a16a(0xec)]('/'))_0x244d2f=''+_0x2b9ceb;else _0x2b9ceb&&!_0x2b9ceb[_0x34a16a(0xec)]('/')&&!_0x2b9ceb['startsWith']('\x5c')?_0x244d2f=this[_0x34a16a(0xdd)][_0x34a16a(0xe1)]()+'/'+_0x2b9ceb:_0x244d2f=this['app']['getAppDir']()+_0x34a16a(0xe8);return(_0x244d2f[_0x34a16a(0xe6)]('/')||_0x244d2f[_0x34a16a(0xe6)]('\x5c'))&&(_0x244d2f=_0x244d2f[_0x34a16a(0xff)](0x0,_0x244d2f[_0x34a16a(0x115)]-0x1)),_0x244d2f=_0x244d2f[_0x34a16a(0x10d)](/(\\|\/)/g,'/')[_0x34a16a(0x10d)](/\/{2,}/g,'/'),!fs['existsSync'](_0x244d2f)&&fs['mkdirSync'](_0x244d2f,{'recursive':!![]}),await _0x4389e3[_0x34a16a(0x116)]['writeFile']((_0x244d2f+'/'+_0x524aa7)[_0x34a16a(0x10d)](/(\\|\/)/g,'/')[_0x34a16a(0x10d)](/\/{2,}/g,'/')),{'filename':_0x524aa7,'filepath':(_0x244d2f['substring']((''+this[_0x34a16a(0xdd)][_0x34a16a(0xe1)]())['length'])+'/'+_0x524aa7)[_0x34a16a(0x10d)](/(\\|\/)/g,'/')[_0x34a16a(0x10d)](/\/{2,}/g,'/')};}async[a12_0x29bed4(0x118)](_0x562d0f,_0x359ce5){return await koasend(_0x562d0f,''+_0x359ce5);}};__decorate([(0x0,core_1[a12_0x29bed4(0x10a)])(),__metadata(a12_0x29bed4(0xfe),Object)],ExcelService['prototype'],a12_0x29bed4(0xdd),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x29bed4(0xe5)])(),(0x0,core_1[a12_0x29bed4(0xf3)])(core_1[a12_0x29bed4(0xe7)]['Singleton'])],ExcelService),exports[a12_0x29bed4(0xe4)]=ExcelService;
|
package/dist/types/action.d.ts
CHANGED
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x213e(){var _0x532d6c=['192hRqiVu','APPSCONFIG_KEY','AppsConfigTmp','anncic-api:action','680931kdbjFl','8571HohNTA','anncic-api:action:route','285488oBYIUR','ACTION_KEY','ACTION_ROUTE_KEY','defineProperty','1942SwYQlJ','__esModule','anncic-api:apps:config','5Gptvqw','8813478wSmWjg','10RbvdHz','22040520thARGd','5376294kKWkFT','1494DyTuPr','268qIAANh'];a13_0x213e=function(){return _0x532d6c;};return a13_0x213e();}function a13_0x2b53(_0x49c4de,_0x3bfdac){var _0x213eff=a13_0x213e();return a13_0x2b53=function(_0x2b53a7,_0x58a514){_0x2b53a7=_0x2b53a7-0x1a2;var _0x2cabb0=_0x213eff[_0x2b53a7];return _0x2cabb0;},a13_0x2b53(_0x49c4de,_0x3bfdac);}var a13_0x36fdd5=a13_0x2b53;(function(_0x55cddc,_0x39f86b){var _0x59ece4=a13_0x2b53,_0x31a858=_0x55cddc();while(!![]){try{var _0x2cd338=-parseInt(_0x59ece4(0x1a9))/0x1*(-parseInt(_0x59ece4(0x1b1))/0x2)+parseInt(_0x59ece4(0x1a3))/0x3*(parseInt(_0x59ece4(0x1b2))/0x4)+-parseInt(_0x59ece4(0x1ac))/0x5*(-parseInt(_0x59ece4(0x1ad))/0x6)+parseInt(_0x59ece4(0x1a5))/0x7*(-parseInt(_0x59ece4(0x1b3))/0x8)+-parseInt(_0x59ece4(0x1a2))/0x9*(-parseInt(_0x59ece4(0x1ae))/0xa)+parseInt(_0x59ece4(0x1b0))/0xb+-parseInt(_0x59ece4(0x1af))/0xc;if(_0x2cd338===_0x39f86b)break;else _0x31a858['push'](_0x31a858['shift']());}catch(_0x370717){_0x31a858['push'](_0x31a858['shift']());}}}(a13_0x213e,0xd1ef5));Object[a13_0x36fdd5(0x1a8)](exports,a13_0x36fdd5(0x1aa),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x36fdd5(0x1b4)]=exports[a13_0x36fdd5(0x1a7)]=exports[a13_0x36fdd5(0x1a6)]=void 0x0,exports[a13_0x36fdd5(0x1a6)]=a13_0x36fdd5(0x1b6),exports[a13_0x36fdd5(0x1a7)]=a13_0x36fdd5(0x1a4),exports['APPSCONFIG_KEY']=a13_0x36fdd5(0x1ab);class AppsConfigTmp{}exports[a13_0x36fdd5(0x1b5)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x4c4d47=a14_0x25de;(function(_0x261d45,_0x401ada){var _0x28fb68=a14_0x25de,_0x437e89=_0x261d45();while(!![]){try{var _0x284f47=parseInt(_0x28fb68(0x136))/0x1+parseInt(_0x28fb68(0x133))/0x2+parseInt(_0x28fb68(0x14f))/0x3*(-parseInt(_0x28fb68(0x137))/0x4)+parseInt(_0x28fb68(0x138))/0x5*(parseInt(_0x28fb68(0x145))/0x6)+parseInt(_0x28fb68(0x12d))/0x7*(parseInt(_0x28fb68(0x135))/0x8)+-parseInt(_0x28fb68(0x140))/0x9*(parseInt(_0x28fb68(0x144))/0xa)+parseInt(_0x28fb68(0x143))/0xb;if(_0x284f47===_0x401ada)break;else _0x437e89['push'](_0x437e89['shift']());}catch(_0x5c91b0){_0x437e89['push'](_0x437e89['shift']());}}}(a14_0x6142,0x5fd6a));var __decorate=this&&this[a14_0x4c4d47(0x139)]||function(_0x23dbf8,_0x2d5c09,_0x5040c1,_0x57743d){var _0x233c9b=a14_0x4c4d47,_0x15ecd1=arguments[_0x233c9b(0x12f)],_0x5cc7a5=_0x15ecd1<0x3?_0x2d5c09:_0x57743d===null?_0x57743d=Object[_0x233c9b(0x146)](_0x2d5c09,_0x5040c1):_0x57743d,_0x42d6e4;if(typeof Reflect===_0x233c9b(0x147)&&typeof Reflect[_0x233c9b(0x131)]===_0x233c9b(0x148))_0x5cc7a5=Reflect['decorate'](_0x23dbf8,_0x2d5c09,_0x5040c1,_0x57743d);else{for(var _0x24d2a5=_0x23dbf8[_0x233c9b(0x12f)]-0x1;_0x24d2a5>=0x0;_0x24d2a5--)if(_0x42d6e4=_0x23dbf8[_0x24d2a5])_0x5cc7a5=(_0x15ecd1<0x3?_0x42d6e4(_0x5cc7a5):_0x15ecd1>0x3?_0x42d6e4(_0x2d5c09,_0x5040c1,_0x5cc7a5):_0x42d6e4(_0x2d5c09,_0x5040c1))||_0x5cc7a5;}return _0x15ecd1>0x3&&_0x5cc7a5&&Object[_0x233c9b(0x130)](_0x2d5c09,_0x5040c1,_0x5cc7a5),_0x5cc7a5;},__metadata=this&&this[a14_0x4c4d47(0x13e)]||function(_0x42eb80,_0x5648cb){var _0x3f464f=a14_0x4c4d47;if(typeof Reflect===_0x3f464f(0x147)&&typeof Reflect[_0x3f464f(0x14b)]==='function')return Reflect[_0x3f464f(0x14b)](_0x42eb80,_0x5648cb);};function a14_0x25de(_0x389ea0,_0xeabe2a){var _0x61420d=a14_0x6142();return a14_0x25de=function(_0x25de56,_0x3509c1){_0x25de56=_0x25de56-0x12b;var _0x253c97=_0x61420d[_0x25de56];return _0x253c97;},a14_0x25de(_0x389ea0,_0xeabe2a);}function a14_0x6142(){var _0x8ebbb=['1:是;0:否','length','defineProperty','decorate','分页数量','1300250KzsSte','string','1711848YsnuSM','200695Naaivo','648644NULEFh','169825ayCEVj','__decorate','第一页为1,第二页为2','valid','_size','_isreverse','__metadata','trim','10953gftoge','_page','RuleType','3559688sLtVif','5860QnwGON','36KNjNur','getOwnPropertyDescriptor','object','function','PageDTO','number','metadata','排序方式','integer','min','9JECwbY','prototype','design:type','Rule','__esModule','7lQBcxo'];a14_0x6142=function(){return _0x8ebbb;};return a14_0x6142();}Object[a14_0x4c4d47(0x130)](exports,a14_0x4c4d47(0x12c),{'value':!![]}),exports[a14_0x4c4d47(0x149)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a14_0x4c4d47(0x12b)])('分页',validator_1[a14_0x4c4d47(0x142)][a14_0x4c4d47(0x14a)]()[a14_0x4c4d47(0x14d)]()[a14_0x4c4d47(0x14e)](0x1),a14_0x4c4d47(0x13a)),__metadata(a14_0x4c4d47(0x151),Number)],PageDTO['prototype'],a14_0x4c4d47(0x141),void 0x0),__decorate([(0x0,validator_1[a14_0x4c4d47(0x12b)])(a14_0x4c4d47(0x132),validator_1['RuleType']['number']()['integer']()[a14_0x4c4d47(0x14e)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x4c4d47(0x150)],a14_0x4c4d47(0x13c),void 0x0),__decorate([(0x0,validator_1[a14_0x4c4d47(0x12b)])(a14_0x4c4d47(0x14c),validator_1['RuleType'][a14_0x4c4d47(0x134)]()[a14_0x4c4d47(0x13f)]()),__metadata(a14_0x4c4d47(0x151),String)],PageDTO[a14_0x4c4d47(0x150)],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x4c4d47(0x12b)])('是否倒序',validator_1[a14_0x4c4d47(0x142)]['number']()['integer']()[a14_0x4c4d47(0x13b)](0x0,0x1),a14_0x4c4d47(0x12e)),__metadata(a14_0x4c4d47(0x151),Number)],PageDTO[a14_0x4c4d47(0x150)],a14_0x4c4d47(0x13d),void 0x0),exports['PageDTO']=PageDTO;
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './dist/index';
|
|
|
4
4
|
declare module '@midwayjs/koa/dist/interface' {
|
|
5
5
|
interface Context {
|
|
6
6
|
app: Application;
|
|
7
|
+
koasend(filepath: string): Promise<void>;
|
|
7
8
|
|
|
8
9
|
when(key: string, callbal: (value: any) => {}): void;
|
|
9
10
|
only(keys: Array<Array<any>>): { [key: string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.20",
|
|
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.20",
|
|
21
|
+
"@anncic-api/core": "^1.4.20",
|
|
22
|
+
"@anncic-api/event": "^1.4.20",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.20",
|
|
24
|
+
"@anncic-api/validator": "^1.4.20",
|
|
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.20",
|
|
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": "26f8f85fd148517eeb91872a3cef44dd47125cfd"
|
|
43
43
|
}
|