anncic-api 1.4.16 → 1.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x905860=a0_0x431b;function a0_0x5d4b(){var _0x2d9beb=['20mb','dhauo1234420123gg3234901','830lPdxEy','json','xml','2522375pNXEQP','21LExxKM','form','44703hDstsj','appDir','2161784aergJf','8sywFOX','1551154xWEDpF','326337hKpEEy','225448YkZQCs','__esModule','default','4KEuUYj','name','/runtime/.upload','282894GfjyNw','zhiulanuiy7892387985hnoi'];a0_0x5d4b=function(){return _0x2d9beb;};return a0_0x5d4b();}(function(_0x46f113,_0x5936a2){var _0x4f7a22=a0_0x431b,_0x4f8d84=_0x46f113();while(!![]){try{var _0x1701a2=parseInt(_0x4f7a22(0x93))/0x1*(parseInt(_0x4f7a22(0x96))/0x2)+parseInt(_0x4f7a22(0x92))/0x3*(-parseInt(_0x4f7a22(0x90))/0x4)+parseInt(_0x4f7a22(0x8a))/0x5+-parseInt(_0x4f7a22(0x99))/0x6*(parseInt(_0x4f7a22(0x8b))/0x7)+parseInt(_0x4f7a22(0x8f))/0x8+-parseInt(_0x4f7a22(0x8d))/0x9*(parseInt(_0x4f7a22(0x87))/0xa)+-parseInt(_0x4f7a22(0x91))/0xb;if(_0x1701a2===_0x5936a2)break;else _0x4f8d84['push'](_0x4f8d84['shift']());}catch(_0x3b288d){_0x4f8d84['push'](_0x4f8d84['shift']());}}}(a0_0x5d4b,0x4c7e2));function a0_0x431b(_0x26cc31,_0x459452){var _0x5d4b5c=a0_0x5d4b();return a0_0x431b=function(_0x431b02,_0x371b12){_0x431b02=_0x431b02-0x84;var _0x2a42d9=_0x5d4b5c[_0x431b02];return _0x2a42d9;},a0_0x431b(_0x26cc31,_0x459452);}Object['defineProperty'](exports,a0_0x905860(0x94),{'value':!![]}),exports[a0_0x905860(0x95)]=_0x5eb4ca=>{var _0x1c222b=a0_0x905860;return{'apitest':!![],'keys':_0x5eb4ca[_0x1c222b(0x97)],'anncicapi':{'timeout':0x1388,'password':_0x1c222b(0x84),'devices':{'DEFAULT':{'secret':_0x1c222b(0x86),'checkcode':_0x1c222b(0x86)}}},'bodyParser':{'enableTypes':[_0x1c222b(0x88),_0x1c222b(0x8c),'text',_0x1c222b(0x89)],'formLimit':_0x1c222b(0x85),'jsonLimit':_0x1c222b(0x85),'textLimit':'20mb','xmlLimit':_0x1c222b(0x85)},'upload':{'tmpdir':_0x5eb4ca[_0x1c222b(0x8e)]+_0x1c222b(0x98),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x5d3d98=a1_0x2bcc;(function(_0x4da649,_0x983790){var _0x4cf558=a1_0x2bcc,_0x2db416=_0x4da649();while(!![]){try{var _0x102c0f=-parseInt(_0x4cf558(0x13e))/0x1+parseInt(_0x4cf558(0x146))/0x2+-parseInt(_0x4cf558(0x147))/0x3*(parseInt(_0x4cf558(0x144))/0x4)+-parseInt(_0x4cf558(0x141))/0x5*(parseInt(_0x4cf558(0x13d))/0x6)+-parseInt(_0x4cf558(0x13b))/0x7*(-parseInt(_0x4cf558(0x13f))/0x8)+-parseInt(_0x4cf558(0x143))/0x9*(-parseInt(_0x4cf558(0x140))/0xa)+-parseInt(_0x4cf558(0x13c))/0xb;if(_0x102c0f===_0x983790)break;else _0x2db416['push'](_0x2db416['shift']());}catch(_0x514a5f){_0x2db416['push'](_0x2db416['shift']());}}}(a1_0xf721,0xed91e));function a1_0x2bcc(_0x22b1c4,_0x2165cd){var _0xf72172=a1_0xf721();return a1_0x2bcc=function(_0x2bcc6f,_0x2bfbf0){_0x2bcc6f=_0x2bcc6f-0x13b;var _0x34291a=_0xf72172[_0x2bcc6f];return _0x34291a;},a1_0x2bcc(_0x22b1c4,_0x2165cd);}function a1_0xf721(){var _0x32d4cc=['51sEhATd','707fuqZfi','896698wdHSvS','450VtlLTb','19675AmMYBz','79696TzrdbA','469770Ketupi','78095ECesvS','defineProperty','324rGqDAH','440884NSjzpZ','__esModule','2844254xYsJxg'];a1_0xf721=function(){return _0x32d4cc;};return a1_0xf721();}Object[a1_0x5d3d98(0x142)](exports,a1_0x5d3d98(0x145),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x2037d0=a2_0x3349;(function(_0x28f84b,_0x3727fc){const _0x58e73a=a2_0x3349,_0x2733af=_0x28f84b();while(!![]){try{const _0x196f5d=parseInt(_0x58e73a(0x167))/0x1+parseInt(_0x58e73a(0x173))/0x2+-parseInt(_0x58e73a(0x1c0))/0x3*(-parseInt(_0x58e73a(0x154))/0x4)+-parseInt(_0x58e73a(0x186))/0x5*(-parseInt(_0x58e73a(0x1a0))/0x6)+parseInt(_0x58e73a(0x1b5))/0x7*(-parseInt(_0x58e73a(0x1a3))/0x8)+-parseInt(_0x58e73a(0x1aa))/0x9+parseInt(_0x58e73a(0x16f))/0xa*(-parseInt(_0x58e73a(0x15e))/0xb);if(_0x196f5d===_0x3727fc)break;else _0x2733af['push'](_0x2733af['shift']());}catch(_0x4bb35c){_0x2733af['push'](_0x2733af['shift']());}}}(a2_0x3d9a,0xab556));function a2_0x3d9a(){const _0x240387=['@midwayjs/cross-domain','dir','assign','@midwayjs/koa','keys','mkdirSync','get','design:type','7yBhSuf','handler','getAppDir','handlerActionRoute','device','ACTION_ROUTE_KEY','length','default','Inject','__metadata','defineProperties','532821lBOvvw','REQUEST_OBJ_CTX_KEY','@anncic-api/cache','toLowerCase','MidwayConfigService','devices','Types','string','isString','12uEvWfZ','ApiService','getApplications','context','getBaseDir','environment','MidwayEnvironmentService','anncic-api','app','anncic-apihelper','572qlpwak','onReady','./exception/ApiError','key','getOwnPropertyDescriptor','object','isArray','MidwayDecoratorService','_matchedRoute','136803LRPNrQ','filterConfig','@midwayjs/upload','CustomConfiguration','Configuration','headers','DEFAULT','method','55280aRlnSm','@midwayjs/i18n','./service/ApiService','.log','1757124bbxFeV','intercept','@anncic-api/typeorm','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','statSync','config','staticFile','decorator','target','isClass','request','/runtime/apps-','decorate','loggerConfig','__esModule','dirs','registerMethodHandler','requestContext','/apps','94895zqmSTd','upload','application','MidwayApplicationManager','query','proceed','defineProperty','args','prototype','function','Anncic-api\x20static-file\x20:\x20mkdir\x20','isNull','isDirectory','getConfiguration','@anncic-api/event','bodyXml','./config/config.default','metadata','anncicapi','tmpdir','addObject','isDevelopmentEnvironment','./types/action','/runtime','apimit','hanlderApplications','54cXcOsg','koa','existsSync','3036376NWbrMy','isFunction','HEADERS_SIGNATURE','checkConfigKeys','/apps/','midwayLogger','body','3151908dFnckO','input','forEach'];a2_0x3d9a=function(){return _0x240387;};return a2_0x3d9a();}var __decorate=this&&this['__decorate']||function(_0x18e304,_0x36949a,_0x51dab5,_0x4a7d20){const _0x1d0625=a2_0x3349;var _0x455ff3=arguments['length'],_0x5077c0=_0x455ff3<0x3?_0x36949a:_0x4a7d20===null?_0x4a7d20=Object[_0x1d0625(0x162)](_0x36949a,_0x51dab5):_0x4a7d20,_0x4b85fe;if(typeof Reflect===_0x1d0625(0x163)&&typeof Reflect['decorate']===_0x1d0625(0x18f))_0x5077c0=Reflect[_0x1d0625(0x17f)](_0x18e304,_0x36949a,_0x51dab5,_0x4a7d20);else{for(var _0xf4ab02=_0x18e304['length']-0x1;_0xf4ab02>=0x0;_0xf4ab02--)if(_0x4b85fe=_0x18e304[_0xf4ab02])_0x5077c0=(_0x455ff3<0x3?_0x4b85fe(_0x5077c0):_0x455ff3>0x3?_0x4b85fe(_0x36949a,_0x51dab5,_0x5077c0):_0x4b85fe(_0x36949a,_0x51dab5))||_0x5077c0;}return _0x455ff3>0x3&&_0x5077c0&&Object['defineProperty'](_0x36949a,_0x51dab5,_0x5077c0),_0x5077c0;},__metadata=this&&this[a2_0x2037d0(0x1be)]||function(_0x319485,_0x211d22){const _0x163bab=a2_0x2037d0;if(typeof Reflect===_0x163bab(0x163)&&typeof Reflect[_0x163bab(0x197)]==='function')return Reflect[_0x163bab(0x197)](_0x319485,_0x211d22);};Object[a2_0x2037d0(0x18c)](exports,a2_0x2037d0(0x181),{'value':!![]}),exports[a2_0x2037d0(0x16a)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x2037d0(0x160)),ApiService_1=require(a2_0x2037d0(0x171)),action_1=require(a2_0x2037d0(0x19c)),fs=require('fs'),koa=require(a2_0x2037d0(0x1b0)),i18n=require(a2_0x2037d0(0x170)),upload=require(a2_0x2037d0(0x169)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2037d0(0x1ad)),ConfigDefault=require(a2_0x2037d0(0x196)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2037d0(0x1c2)),anncicEvent=require(a2_0x2037d0(0x194)),anncicTypeorm=require(a2_0x2037d0(0x175)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x2037d0(0x15d));let CustomConfiguration=class CustomConfiguration{async[a2_0x2037d0(0x15f)](){const _0x2f91f7=a2_0x2037d0;await this[_0x2f91f7(0x168)](),await this[_0x2f91f7(0x180)](),await this['checkConfigKeys'](),await this[_0x2f91f7(0x1b8)](),await this[_0x2f91f7(0x19f)]();}async[a2_0x2037d0(0x1a6)](){}async[a2_0x2037d0(0x1b8)](){const _0x3b4969=a2_0x2037d0,_0x52b11c=this[_0x3b4969(0x178)]['getConfiguration']();this['decorator'][_0x3b4969(0x183)](action_1[_0x3b4969(0x1ba)],_0x3d1e14=>{const _0x1439bf=_0x3b4969,_0x3eb0fb=_0x3d1e14[_0x1439bf(0x197)];return{'before':async _0x1f9804=>{const _0x2816e1=_0x1439bf;var _0x508ae3,_0x456fad;const _0xf2a82c=(_0x508ae3=_0x1f9804===null||_0x1f9804===void 0x0?void 0x0:_0x1f9804[_0x2816e1(0x17b)])===null||_0x508ae3===void 0x0?void 0x0:_0x508ae3[core_2[_0x2816e1(0x1c1)]];if(_0xf2a82c&&(_0x3eb0fb===null||_0x3eb0fb===void 0x0?void 0x0:_0x3eb0fb[_0x2816e1(0x19e)])){if(!this[_0x2816e1(0x155)]['checksign']((_0x456fad=_0xf2a82c===null||_0xf2a82c===void 0x0?void 0x0:_0xf2a82c['request'])===null||_0x456fad===void 0x0?void 0x0:_0x456fad[_0x2816e1(0x16c)]))throw new AnnError(ApiError_1['ApiError'][_0x2816e1(0x1a5)]);}},'around':async _0x3e8149=>{const _0x29cad7=_0x1439bf;var _0x373fc5,_0x230899,_0x2c6364,_0x1482b9,_0x5ca411;const _0xeaa9be=(_0x373fc5=_0x3e8149===null||_0x3e8149===void 0x0?void 0x0:_0x3e8149[_0x29cad7(0x17b)])===null||_0x373fc5===void 0x0?void 0x0:_0x373fc5[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xeaa9be&&(_0x3eb0fb===null||_0x3eb0fb===void 0x0?void 0x0:_0x3eb0fb['apimit'])){if(((_0x230899=_0xeaa9be[_0x29cad7(0x16c)])===null||_0x230899===void 0x0?void 0x0:_0x230899[_0x29cad7(0x1b9)])&&((_0x5ca411=(_0x1482b9=(_0x2c6364=_0x52b11c===null||_0x52b11c===void 0x0?void 0x0:_0x52b11c[_0x29cad7(0x198)])===null||_0x2c6364===void 0x0?void 0x0:_0x2c6364[_0x29cad7(0x1c5)])===null||_0x1482b9===void 0x0?void 0x0:_0x1482b9[_0xeaa9be['headers'][_0x29cad7(0x1b9)]])===null||_0x5ca411===void 0x0?void 0x0:_0x5ca411['intercept'])){const _0x5b71f7=Array[_0x29cad7(0x164)](_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)][_0x29cad7(0x1b9)]][_0x29cad7(0x174)])?_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)]['device']][_0x29cad7(0x174)]:[_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)][_0x29cad7(0x1b9)]][_0x29cad7(0x174)]];for(const _0x104c99 of _0x5b71f7){if(core_1['Types'][_0x29cad7(0x17c)](_0x104c99)||typeof _0x104c99==_0x29cad7(0x1c7)){const _0x195016=await _0xeaa9be[_0x29cad7(0x184)]['getAsync'](_0x104c99);typeof(_0x195016===null||_0x195016===void 0x0?void 0x0:_0x195016[_0x29cad7(0x1b6)])==_0x29cad7(0x18f)&&await _0x195016['handler'](typeof(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be['method'])==_0x29cad7(0x1c7)&&(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be['_matchedRoute'])?_0xeaa9be[_0x29cad7(0x16e)][_0x29cad7(0x1c3)]()+'@'+(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)]):undefined,_0xeaa9be,_0x3eb0fb);}else core_1[_0x29cad7(0x1c6)][_0x29cad7(0x1a4)](_0x104c99)&&await _0x104c99(typeof(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x16e)])==_0x29cad7(0x1c7)&&(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)])?_0xeaa9be['method'][_0x29cad7(0x1c3)]()+'@'+(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)]):undefined,_0xeaa9be,_0x3eb0fb);}}}return await _0x3e8149[_0x29cad7(0x18b)](..._0x3e8149[_0x29cad7(0x18d)]);},'afterThrow':(_0xd6fbc,_0x4fe705)=>{throw _0x4fe705;}};});}async[a2_0x2037d0(0x19f)](){const _0x31eaff=a2_0x2037d0;this[_0x31eaff(0x188)][_0x31eaff(0x156)]([_0x31eaff(0x1a1)])[_0x31eaff(0x1ac)](_0x43664d=>{const _0x49cbf9=_0x31eaff;(_0x43664d===null||_0x43664d===void 0x0?void 0x0:_0x43664d[_0x49cbf9(0x157)])&&Object[_0x49cbf9(0x1bf)](_0x43664d[_0x49cbf9(0x157)],{'ok':{'value':function(_0x985baf,_0x28f9e3,_0x42e79a=0x0){return{'code':_0x42e79a,'data':_0x985baf,'extra':_0x28f9e3};}},'input':{'value':function(_0x2af144,_0x4f76af){const _0x154459=_0x49cbf9;var _0x1945b9;const _0x3ba7a9=lodash['defaultsDeep']({},this['request'][_0x154459(0x1a9)]||this['request'][((_0x1945b9=config===null||config===void 0x0?void 0x0:config[_0x154459(0x195)])===null||_0x1945b9===void 0x0?void 0x0:_0x1945b9[_0x154459(0x161)])||_0x154459(0x1a9)]||{},this[_0x154459(0x17d)][_0x154459(0x18a)]||{});return _0x2af144?lodash[_0x154459(0x1b3)](_0x3ba7a9,_0x2af144,_0x4f76af):_0x3ba7a9;}},'when':{'value':async function(_0x315cd9,_0x51a059){const _0x1a3cac=_0x49cbf9,_0x2c42a8=this[_0x1a3cac(0x1ab)](_0x315cd9,null);if(!lodash[_0x1a3cac(0x191)](_0x2c42a8))return await _0x51a059(_0x2c42a8);}},'only':{'value':function(_0x2cfb23){const _0x1ff308=_0x49cbf9,_0x592968={};for(let _0xbd6cba=0x0;_0xbd6cba<_0x2cfb23[_0x1ff308(0x1bb)];_0xbd6cba++){lodash[_0x1ff308(0x164)](_0x2cfb23[_0xbd6cba])&&_0x2cfb23[_0xbd6cba]['length']>0x0&&lodash[_0x1ff308(0x1c8)](_0x2cfb23[_0xbd6cba][0x0])&&(_0x592968[_0x2cfb23[_0xbd6cba][0x0]]=this['input'](_0x2cfb23[_0xbd6cba][0x0],_0x2cfb23[_0xbd6cba]['length']>0x1?_0x2cfb23[_0xbd6cba][0x1]:null));}return _0x592968;}}});});}async[a2_0x2037d0(0x180)](){const _0x5179f8=a2_0x2037d0;var _0x550cd0,_0x1811df;if(fs[_0x5179f8(0x1a2)](this['app']['getBaseDir']()+_0x5179f8(0x185))&&fs['statSync'](this['app'][_0x5179f8(0x158)]()+_0x5179f8(0x185))[_0x5179f8(0x192)]()){const _0x137175=this['config']['getConfiguration'](),_0x2ff5b2=((_0x550cd0=_0x137175===null||_0x137175===void 0x0?void 0x0:_0x137175['midwayLogger'])===null||_0x550cd0===void 0x0?void 0x0:_0x550cd0['clients'])||{};for(const _0x2751f1 of fs['readdirSync'](this[_0x5179f8(0x15c)][_0x5179f8(0x158)]()+_0x5179f8(0x185))){if(!fs[_0x5179f8(0x177)](this[_0x5179f8(0x15c)]['getBaseDir']()+_0x5179f8(0x1a7)+_0x2751f1)[_0x5179f8(0x192)]())continue;if(_0x2ff5b2===null||_0x2ff5b2===void 0x0?void 0x0:_0x2ff5b2[_0x2751f1])continue;_0x2ff5b2[_0x2751f1]=Object[_0x5179f8(0x1af)]({},((_0x1811df=_0x137175===null||_0x137175===void 0x0?void 0x0:_0x137175[_0x5179f8(0x1a8)])===null||_0x1811df===void 0x0?void 0x0:_0x1811df[_0x5179f8(0x1bc)])||{'maxSize':'1m','dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x5179f8(0x159)][_0x5179f8(0x19b)](),'fileLogName':_0x2751f1+_0x5179f8(0x172),'dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+_0x5179f8(0x17e)+_0x2751f1+'-log'});}Object[_0x5179f8(0x1b1)](_0x2ff5b2)[_0x5179f8(0x1bb)]>0x0&&(!_0x137175[_0x5179f8(0x1a8)]&&(_0x137175[_0x5179f8(0x1a8)]={'default':{'maxSize':'1m','dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+_0x5179f8(0x19d)}}),_0x137175[_0x5179f8(0x1a8)]['clients']=_0x2ff5b2),this['config'][_0x5179f8(0x19a)](_0x137175);}}async[a2_0x2037d0(0x168)](){const _0x11963a=a2_0x2037d0;var _0x2aa6b2,_0xfd0474,_0x331dcb,_0x5bdad7,_0x142e9f,_0x4aaa7c;const _0x4d01da=this[_0x11963a(0x178)][_0x11963a(0x193)]();((_0xfd0474=(_0x2aa6b2=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da[_0x11963a(0x198)])===null||_0x2aa6b2===void 0x0?void 0x0:_0x2aa6b2[_0x11963a(0x1c5)])===null||_0xfd0474===void 0x0?void 0x0:_0xfd0474['DEFAULT'])&&Object[_0x11963a(0x1b1)](_0x4d01da[_0x11963a(0x198)][_0x11963a(0x1c5)])['length']>0x1&&delete _0x4d01da[_0x11963a(0x198)]['devices'][_0x11963a(0x16d)];if((_0x331dcb=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da['staticFile'])===null||_0x331dcb===void 0x0?void 0x0:_0x331dcb['dirs'])for(const _0xcafaf1 in _0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)]){((_0x5bdad7=_0x4d01da[_0x11963a(0x179)]['dirs'][_0xcafaf1])===null||_0x5bdad7===void 0x0?void 0x0:_0x5bdad7[_0x11963a(0x1ae)])&&typeof((_0x142e9f=_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1])===null||_0x142e9f===void 0x0?void 0x0:_0x142e9f[_0x11963a(0x1ae)])==_0x11963a(0x1c7)&&!fs[_0x11963a(0x1a2)](_0x4d01da[_0x11963a(0x179)]['dirs'][_0xcafaf1][_0x11963a(0x1ae)])&&(fs[_0x11963a(0x1b2)](_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1][_0x11963a(0x1ae)],{'recursive':!![]}),console['log'](_0x11963a(0x190)+_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1]['dir']));}((_0x4aaa7c=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da['upload'])===null||_0x4aaa7c===void 0x0?void 0x0:_0x4aaa7c[_0x11963a(0x199)])&&!fs[_0x11963a(0x1a2)](_0x4d01da[_0x11963a(0x187)][_0x11963a(0x199)])&&(fs['mkdirSync'](_0x4d01da['upload'][_0x11963a(0x199)],{'recursive':!![]}),console['log'](_0x11963a(0x176)+_0x4d01da[_0x11963a(0x187)][_0x11963a(0x199)])),this[_0x11963a(0x178)][_0x11963a(0x19a)](_0x4d01da);}};function a2_0x3349(_0x3d89d5,_0x4d903c){const _0x3d9a21=a2_0x3d9a();return a2_0x3349=function(_0x3349d3,_0x3218ce){_0x3349d3=_0x3349d3-0x154;let _0x19d385=_0x3d9a21[_0x3349d3];return _0x19d385;},a2_0x3349(_0x3d89d5,_0x4d903c);}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x2037d0(0x1b4),Object)],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x15c),void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata('design:type',core_2[a2_0x2037d0(0x1c4)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata(a2_0x2037d0(0x1b4),core_2[a2_0x2037d0(0x165)])],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x17a),void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata('design:type',core_2[a2_0x2037d0(0x189)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata(a2_0x2037d0(0x1b4),core_2[a2_0x2037d0(0x15a)])],CustomConfiguration['prototype'],a2_0x2037d0(0x159),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2037d0(0x1b4),ApiService_1['ApiService'])],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x155),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2037d0(0x16b)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2037d0(0x15b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2037d0(0x16a)]=CustomConfiguration;
|
|
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;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x2369(_0x3b1a7b,_0x53a5b7){const _0x2741d3=a3_0x2741();return a3_0x2369=function(_0x2369f8,_0x387d3b){_0x2369f8=_0x2369f8-0x15a;let _0x1d320d=_0x2741d3[_0x2369f8];return _0x1d320d;},a3_0x2369(_0x3b1a7b,_0x53a5b7);}const a3_0x5035ad=a3_0x2369;(function(_0xe606fc,_0x3de62c){const _0x315d98=a3_0x2369,_0x221cb2=_0xe606fc();while(!![]){try{const _0x3aa2d1=-parseInt(_0x315d98(0x191))/0x1*(parseInt(_0x315d98(0x16b))/0x2)+parseInt(_0x315d98(0x17e))/0x3+-parseInt(_0x315d98(0x16f))/0x4*(parseInt(_0x315d98(0x15e))/0x5)+parseInt(_0x315d98(0x164))/0x6*(parseInt(_0x315d98(0x189))/0x7)+-parseInt(_0x315d98(0x185))/0x8*(parseInt(_0x315d98(0x176))/0x9)+-parseInt(_0x315d98(0x167))/0xa*(parseInt(_0x315d98(0x18b))/0xb)+-parseInt(_0x315d98(0x15b))/0xc*(-parseInt(_0x315d98(0x160))/0xd);if(_0x3aa2d1===_0x3de62c)break;else _0x221cb2['push'](_0x221cb2['shift']());}catch(_0x68693){_0x221cb2['push'](_0x221cb2['shift']());}}}(a3_0x2741,0xe01a0));Object[a3_0x5035ad(0x181)](exports,a3_0x5035ad(0x16d),{'value':!![]}),exports['parseRoute']=exports[a3_0x5035ad(0x192)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x5035ad(0x15d)),action_1=require(a3_0x5035ad(0x18a));function Action(_0xed9180,_0xb5f4bb,_0x2e882b={'middleware':[],'sensitive':!![]}){return _0x3ecfdd=>{const _0x52775d=a3_0x2369;var _0x9fa0c6;_0x2e882b[_0x52775d(0x175)]=_0xb5f4bb;const _0xedf352=parseRoute(_0xed9180);if(_0xedf352[_0x52775d(0x17c)]){_0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]?'/'+_0xedf352[_0x52775d(0x17c)]+'/'+_0x2e882b['prefix']:'/'+_0xedf352[_0x52775d(0x15f)];_0xedf352[_0x52775d(0x15c)]&&(_0x2e882b[_0x52775d(0x15c)]='/'+_0xedf352[_0x52775d(0x15c)]+'/'+_0x2e882b[_0x52775d(0x15c)]);if(fs[_0x52775d(0x16a)](_0xedf352[_0x52775d(0x183)]+'/apps/'+_0xedf352[_0x52775d(0x17c)]+_0x52775d(0x18c)+(lodash[_0x52775d(0x169)](_0xedf352['filepath'],'ts')?'ts':'js'))){const _0x312801=include(_0xedf352['rootpath']+'/apps/'+_0xedf352[_0x52775d(0x17c)]+_0x52775d(0x18c)+(lodash[_0x52775d(0x169)](_0xedf352[_0x52775d(0x170)],'ts')?'ts':'js'));if(_0x312801[_0x52775d(0x174)]&&lodash[_0x52775d(0x166)](_0x312801[_0x52775d(0x174)])&&_0x312801[_0x52775d(0x174)][_0x52775d(0x17f)]>0x0)for(let _0x31fa94 in _0x312801[_0x52775d(0x174)]){if(((_0x9fa0c6=_0x312801===null||_0x312801===void 0x0?void 0x0:_0x312801[_0x52775d(0x15a)])===null||_0x9fa0c6===void 0x0?void 0x0:_0x9fa0c6[_0x52775d(0x17f)])>0x0&&_0x312801[_0x52775d(0x15a)]['indexOf'](_0x312801['middleware'][_0x31fa94])!=-0x1)continue;_0x2e882b[_0x52775d(0x174)][_0x52775d(0x162)](_0x312801[_0x52775d(0x174)][_0x31fa94]);}const _0x1ee3bf=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x52775d(0x163)])||{};_0x1ee3bf[''+_0xedf352['module']]=_0x312801,(0x0,core_1[_0x52775d(0x178)])(action_1[_0x52775d(0x18d)],_0x1ee3bf,action_1[_0x52775d(0x163)]);}_0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]['toLowerCase']()[_0x52775d(0x16e)](/\/{2,}/g,'/'),(0x0,core_1[_0x52775d(0x165)])(action_1['ACTION_KEY'],_0x3ecfdd),(0x0,core_1[_0x52775d(0x184)])(_0x2e882b[_0x52775d(0x15c)],_0x2e882b)(_0x3ecfdd),(0x0,core_1['saveClassMetadata'])(action_1[_0x52775d(0x17a)],{'prefix':_0x2e882b[_0x52775d(0x15c)],'pprefix':_0xedf352['prefix'],'module':_0xedf352[_0x52775d(0x17c)],'filepath':_0xedf352[_0x52775d(0x170)],'routerOptions':_0x2e882b},_0x3ecfdd);}else _0x2e882b[_0x52775d(0x15c)]=_0x2e882b[_0x52775d(0x15c)]?'/'+_0x2e882b[_0x52775d(0x15c)]:'/'+_0xedf352[_0x52775d(0x15f)],_0xedf352['prefix']&&(_0x2e882b[_0x52775d(0x15c)]='/'+_0xedf352['prefix']+'/'+_0x2e882b[_0x52775d(0x15c)]),_0x2e882b['prefix']=_0x2e882b[_0x52775d(0x15c)][_0x52775d(0x182)]()[_0x52775d(0x16e)](/\/{2,}/g,'/'),(0x0,core_1[_0x52775d(0x165)])(action_1[_0x52775d(0x17a)],_0x3ecfdd),(0x0,core_1[_0x52775d(0x184)])(_0x2e882b[_0x52775d(0x15c)],_0x2e882b)(_0x3ecfdd),(0x0,core_1[_0x52775d(0x178)])(action_1[_0x52775d(0x17a)],{'prefix':_0x2e882b[_0x52775d(0x15c)],'module':_0xedf352[_0x52775d(0x17c)],'pprefix':_0xedf352[_0x52775d(0x15c)],'filepath':_0xedf352[_0x52775d(0x170)],'routerOptions':_0x2e882b},_0x3ecfdd);};}function a3_0x2741(){const _0x24dc10=['46469796KiXtoW','prefix','@midwayjs/core','28240KMXVNw','route','13eaucKM','\x20文件请放在app/controller/文件下','push','AppsConfigTmp','141942IRLcYQ','saveModule','isArray','10iAllna','-controller','endsWith','existsSync','2csyRiZ','-action','__esModule','replace','724EgZNgd','filepath','apps/','basic/controller/','trim','middleware','tagName','618417OakZkL','startsWith','saveClassMetadata','splice','ACTION_KEY','app/controller/','module','parseRoute','92625unXetQ','length','/apps/','defineProperty','toLowerCase','rootpath','Controller','136DqtnIz','filter','cwd','join','511DlEBbu','../types/action','10118581TZSSAd','/config.','APPSCONFIG_KEY','match','/controller/','split','1602119MnYVQf','Action','substring','middlewareIgnore'];a3_0x2741=function(){return _0x24dc10;};return a3_0x2741();}exports[a3_0x5035ad(0x192)]=Action;function parseRoute(_0x189eee){const _0x2d0dfa=a3_0x5035ad;_0x189eee=_0x189eee['replace'](/(\\|\/)/g,'/');const _0x2a283d=process[_0x2d0dfa(0x187)]()[_0x2d0dfa(0x16e)](/(\\|\/)/g,'/'),_0x4e6cca=_0x189eee['substring'](0x0,_0x2a283d[_0x2d0dfa(0x17f)]+_0x189eee[_0x2d0dfa(0x193)](_0x2a283d[_0x2d0dfa(0x17f)]+0x1)['indexOf']('/')+0x1),_0x57fd52=_0x189eee[_0x2d0dfa(0x193)](_0x4e6cca[_0x2d0dfa(0x17f)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x463a0a={'route':'','prefix':![],'module':![],'rootpath':_0x4e6cca,'filepath':_0x57fd52};if(_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x17b))||_0x57fd52['startsWith'](_0x2d0dfa(0x172))){const _0x5398e7=_0x57fd52[_0x2d0dfa(0x193)]((_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x17b))?'app/controller/':_0x2d0dfa(0x172))[_0x2d0dfa(0x17f)])[_0x2d0dfa(0x190)]('/')[_0x2d0dfa(0x186)](_0x223b74=>_0x223b74&&_0x223b74[_0x2d0dfa(0x173)]());return _0x5398e7[_0x2d0dfa(0x17f)]>0x1&&(_0x463a0a[_0x2d0dfa(0x15c)]=_0x5398e7[0x0][_0x2d0dfa(0x182)](),_0x5398e7[_0x2d0dfa(0x179)](0x0,0x1)),_0x463a0a['route']=('/'+_0x5398e7[_0x2d0dfa(0x188)]('/'))[_0x2d0dfa(0x16e)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x2d0dfa(0x18e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x2d0dfa(0x182)]()[_0x2d0dfa(0x16e)](/\/\-/g,'/'),_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x169)](_0x2d0dfa(0x16c))&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a['route'][_0x2d0dfa(0x193)](0x0,_0x463a0a['route'][_0x2d0dfa(0x17f)]-0x7)),_0x463a0a['route']['endsWith']('-controller')&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x193)](0x0,_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x17f)]-0xb)),_0x463a0a;}else{if(_0x57fd52[_0x2d0dfa(0x177)](_0x2d0dfa(0x171))){const _0x3cb3a0=_0x57fd52['substring'](0x0,_0x57fd52['indexOf'](_0x2d0dfa(0x180))+0x5),_0x1a6211=_0x57fd52[_0x2d0dfa(0x193)](_0x3cb3a0[_0x2d0dfa(0x17f)]+0x1)[_0x2d0dfa(0x16e)](/(\\|\/)/g,'/')[_0x2d0dfa(0x190)]('/')[0x0];if(_0x57fd52[_0x2d0dfa(0x177)]('apps/'+_0x1a6211+_0x2d0dfa(0x18f))){const _0x3046e1=_0x57fd52[_0x2d0dfa(0x193)]((_0x3cb3a0+'/'+_0x1a6211+_0x2d0dfa(0x18f))[_0x2d0dfa(0x17f)])[_0x2d0dfa(0x190)]('/')[_0x2d0dfa(0x186)](_0x5e81db=>_0x5e81db&&_0x5e81db[_0x2d0dfa(0x173)]());return _0x3046e1[_0x2d0dfa(0x17f)]>0x1&&(_0x463a0a[_0x2d0dfa(0x15c)]=_0x3046e1[0x0]['toLowerCase'](),_0x3046e1['splice'](0x0,0x1)),_0x463a0a[_0x2d0dfa(0x17c)]=_0x1a6211,_0x463a0a[_0x2d0dfa(0x15f)]=('/'+_0x1a6211+'/'+_0x3046e1[_0x2d0dfa(0x188)]('/'))[_0x2d0dfa(0x16e)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x2d0dfa(0x18e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x2d0dfa(0x16e)](/\/\-/g,'/'),_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x169)]('-action')&&(_0x463a0a['route']=_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x193)](0x0,_0x463a0a['route'][_0x2d0dfa(0x17f)]-0x7)),_0x463a0a[_0x2d0dfa(0x15f)]['endsWith'](_0x2d0dfa(0x168))&&(_0x463a0a[_0x2d0dfa(0x15f)]=_0x463a0a['route'][_0x2d0dfa(0x193)](0x0,_0x463a0a[_0x2d0dfa(0x15f)][_0x2d0dfa(0x17f)]-0xb)),_0x463a0a;}throw new Error(_0x57fd52+'\x20文件请放在apps/'+_0x1a6211+'/controller/文件下');}}throw new Error(_0x57fd52+_0x2d0dfa(0x161));}exports[a3_0x5035ad(0x17d)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x23c96f=a4_0x538c;(function(_0xb7556a,_0x2b546b){const _0x3b1eb8=a4_0x538c,_0x56ef92=_0xb7556a();while(!![]){try{const _0x263686=parseInt(_0x3b1eb8(0x1cd))/0x1*(parseInt(_0x3b1eb8(0x1c1))/0x2)+-parseInt(_0x3b1eb8(0x1ca))/0x3+-parseInt(_0x3b1eb8(0x1cb))/0x4+parseInt(_0x3b1eb8(0x1c3))/0x5+parseInt(_0x3b1eb8(0x1d3))/0x6*(-parseInt(_0x3b1eb8(0x1e0))/0x7)+-parseInt(_0x3b1eb8(0x1c7))/0x8*(parseInt(_0x3b1eb8(0x1c2))/0x9)+parseInt(_0x3b1eb8(0x1c6))/0xa*(parseInt(_0x3b1eb8(0x1d8))/0xb);if(_0x263686===_0x2b546b)break;else _0x56ef92['push'](_0x56ef92['shift']());}catch(_0x4e3031){_0x56ef92['push'](_0x56ef92['shift']());}}}(a4_0x3c4d,0x9e097));function a4_0x3c4d(){const _0x1acbef=['452452btXsud','Validator','23TzCrYn','indexOf','ACTION_ROUTE_KEY','@midwayjs/core','delete','createCustomMethodDecorator','18030rpirUi','string','Api','middlewareIgnore','../types/action','25270333pCRxfF','__esModule','filter','apimit','validationOptions','description','length','toLowerCase','2723FzhrvP','routerName','35710UlYLOu','7930773OQvFry','5685580wBcLGA','validate','middleware','10RfpgaI','8TDCGHn','del','defineProperty','3103530inrzkK'];a4_0x3c4d=function(){return _0x1acbef;};return a4_0x3c4d();}Object[a4_0x23c96f(0x1c9)](exports,a4_0x23c96f(0x1d9),{'value':!![]}),exports[a4_0x23c96f(0x1d5)]=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x23c96f(0x1d0)),action_1=require(a4_0x23c96f(0x1d7));function a4_0x538c(_0xa0c589,_0x2f1bd6){const _0x3c4d5a=a4_0x3c4d();return a4_0x538c=function(_0x538c68,_0x2343f2){_0x538c68=_0x538c68-0x1c0;let _0x16637e=_0x3c4d5a[_0x538c68];return _0x16637e;},a4_0x538c(_0xa0c589,_0x2f1bd6);}function Api(_0x3ec92a,_0x3c7530='get',_0x53001b='/',_0x3d5b12={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x34e763,_0x1f2939,_0x5148e8)=>{const _0x3e5ebb=a4_0x538c;var _0x354300,_0x5eac03,_0x4590e6;!_0x3d5b12[_0x3e5ebb(0x1c5)]&&(_0x3d5b12[_0x3e5ebb(0x1c5)]=[]);!((_0x354300=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12['validate'])===null||_0x354300===void 0x0?void 0x0:_0x354300[_0x3e5ebb(0x1dc)])&&(_0x3d5b12[_0x3e5ebb(0x1c4)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3e5ebb(0x1d4)}});if(((_0x5eac03=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12[_0x3e5ebb(0x1c5)])===null||_0x5eac03===void 0x0?void 0x0:_0x5eac03[_0x3e5ebb(0x1de)])>0x0&&((_0x4590e6=_0x3d5b12===null||_0x3d5b12===void 0x0?void 0x0:_0x3d5b12[_0x3e5ebb(0x1d6)])===null||_0x4590e6===void 0x0?void 0x0:_0x4590e6['length'])>0x0)for(let _0x768d1d in _0x3d5b12['middleware']){_0x3d5b12[_0x3e5ebb(0x1d6)][_0x3e5ebb(0x1ce)](_0x3d5b12['middleware'][_0x768d1d])!==-0x1&&(_0x3d5b12['middleware'][_0x768d1d]=null);}_0x3d5b12[_0x3e5ebb(0x1c0)]=_0x3ec92a,(0x0,validator_1[_0x3e5ebb(0x1cc)])(_0x3d5b12['validate'])(_0x34e763,_0x1f2939,_0x5148e8),(0x0,core_1['RequestMapping'])(Object['assign'](_0x3d5b12,{'path':_0x53001b,'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()}))(_0x34e763,_0x1f2939,_0x5148e8),(0x0,core_1['attachClassMetadata'])(action_1[_0x3e5ebb(0x1cf)],{'path':_0x53001b,'method':_0x1f2939,'apimit':_0x3d5b12[_0x3e5ebb(0x1db)],'routerName':_0x3d5b12['routerName'],'description':_0x3d5b12[_0x3e5ebb(0x1dd)],'middleware':(_0x3d5b12['middleware']||[])[_0x3e5ebb(0x1da)](_0x498ac4=>!!_0x498ac4),'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()},_0x34e763),(0x0,core_1[_0x3e5ebb(0x1d2)])(action_1[_0x3e5ebb(0x1cf)],{'path':_0x53001b,'method':_0x1f2939,'apimit':_0x3d5b12[_0x3e5ebb(0x1db)],'routerName':_0x3d5b12[_0x3e5ebb(0x1c0)],'description':_0x3d5b12['description'],'middleware':(_0x3d5b12[_0x3e5ebb(0x1c5)]||[])[_0x3e5ebb(0x1da)](_0x34b391=>!!_0x34b391),'requestMethod':(_0x3c7530==_0x3e5ebb(0x1c8)?_0x3e5ebb(0x1d1):_0x3c7530)[_0x3e5ebb(0x1df)]()})(_0x34e763,_0x1f2939,_0x5148e8);};}exports[a4_0x23c96f(0x1d5)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x3e6a(_0x52a46b,_0x38d889){const _0x227f44=a5_0x227f();return a5_0x3e6a=function(_0x3e6a8d,_0x5695e9){_0x3e6a8d=_0x3e6a8d-0x1ba;let _0x3765cb=_0x227f44[_0x3e6a8d];return _0x3765cb;},a5_0x3e6a(_0x52a46b,_0x38d889);}const a5_0x5b816c=a5_0x3e6a;(function(_0x529937,_0x5700f5){const _0x4e4629=a5_0x3e6a,_0x32283c=_0x529937();while(!![]){try{const _0x471c91=parseInt(_0x4e4629(0x1c8))/0x1+parseInt(_0x4e4629(0x1cb))/0x2+parseInt(_0x4e4629(0x1bf))/0x3+parseInt(_0x4e4629(0x1c6))/0x4+parseInt(_0x4e4629(0x1c2))/0x5+-parseInt(_0x4e4629(0x1d5))/0x6*(-parseInt(_0x4e4629(0x1ba))/0x7)+parseInt(_0x4e4629(0x1c0))/0x8*(-parseInt(_0x4e4629(0x1c9))/0x9);if(_0x471c91===_0x5700f5)break;else _0x32283c['push'](_0x32283c['shift']());}catch(_0x5cf652){_0x32283c['push'](_0x32283c['shift']());}}}(a5_0x227f,0x8afd4));Object[a5_0x5b816c(0x1d3)](exports,a5_0x5b816c(0x1c5),{'value':!![]}),exports['Apitest']=void 0x0;function a5_0x227f(){const _0x466cd8=['getAsync','1200422nNbBbo','getApplicationContext','value','isDevelopmentEnvironment','getConfig','apidoc','filepath','ApitestService','defineProperty','app','150WQvRlP','239575bCLzrD','RequestMapping','apitest','MidwayEnvironmentService','@midwayjs/core','3247806NXhuuh','26536DqmBzO','Apitest','5479630gNmKcT','REQUEST_OBJ_CTX_KEY','../service/ApitestService','__esModule','2867152iniXbx','/apitest','380983RdaEbS','11295clxpPl'];a5_0x227f=function(){return _0x466cd8;};return a5_0x227f();}const core_1=require(a5_0x5b816c(0x1be)),ApitestService_1=require(a5_0x5b816c(0x1c4));function Apitest(_0x3a9dab=a5_0x5b816c(0x1c7),_0x2f025b){return(_0x595ff9,_0x15d387,_0xbb6085)=>{const _0x10db81=a5_0x3e6a;return(0x0,core_1[_0x10db81(0x1bb)])({'path':_0x3a9dab,'requestMethod':'get'})(_0x595ff9,_0x15d387,_0xbb6085),_0xbb6085[_0x10db81(0x1cd)]=async function(..._0x4d62d8){const _0x1b2638=_0x10db81;var _0x1307df;const _0xd90b08=(_0x1307df=this[core_1[_0x1b2638(0x1c3)]])===null||_0x1307df===void 0x0?void 0x0:_0x1307df[_0x1b2638(0x1d4)];if(_0xd90b08&&_0xd90b08[_0x1b2638(0x1cf)](_0x1b2638(0x1bc))){const _0x264f22=await _0xd90b08[_0x1b2638(0x1cc)]()[_0x1b2638(0x1ca)](ApitestService_1[_0x1b2638(0x1d2)]),_0x23f509=await _0xd90b08['getApplicationContext']()[_0x1b2638(0x1ca)](core_1[_0x1b2638(0x1bd)]);return _0x23f509[_0x1b2638(0x1ce)]()&&(_0x2f025b[_0x1b2638(0x1d1)]=!![]),await _0x264f22[_0x1b2638(0x1d0)](_0x2f025b);}return'';},_0xbb6085;};}exports[a5_0x5b816c(0x1c1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x37e482=a6_0xcb35;(function(_0x8c84ac,_0xba4b0d){var _0x19e002=a6_0xcb35,_0x871182=_0x8c84ac();while(!![]){try{var _0x1cfd31=parseInt(_0x19e002(0xbc))/0x1+-parseInt(_0x19e002(0xcc))/0x2*(-parseInt(_0x19e002(0xcd))/0x3)+-parseInt(_0x19e002(0xc1))/0x4*(-parseInt(_0x19e002(0xb8))/0x5)+-parseInt(_0x19e002(0xca))/0x6*(parseInt(_0x19e002(0xcf))/0x7)+parseInt(_0x19e002(0xc3))/0x8+-parseInt(_0x19e002(0xb9))/0x9*(parseInt(_0x19e002(0xc0))/0xa)+parseInt(_0x19e002(0xbd))/0xb;if(_0x1cfd31===_0xba4b0d)break;else _0x871182['push'](_0x871182['shift']());}catch(_0x2e1956){_0x871182['push'](_0x871182['shift']());}}}(a6_0x834d,0x63037));function a6_0x834d(){var _0x3890d5=['2516cGQAap','HEADERS_CHECKCODE','5866384ovUWXS','__metadata','metadata','decorate','__esModule','HEADERS_LACK','TIMEOUT','42ZInxCN','design:type','12KwvlRz','116691uILdoB','getOwnPropertyDescriptor','360395sevhmq','function','defineProperty','ApiError','登录超时,请重新登录','object','1565ZiRUoZ','14589QHDQXg','HEADERS_DEVICE','请求超时,请重试','170525baKnxJ','829499uCmOcc','HEADERS_SIGNATURE','TIMEOUT_LOGINTIME','3970WwjkvG'];a6_0x834d=function(){return _0x3890d5;};return a6_0x834d();}var __decorate=this&&this['__decorate']||function(_0x1f987d,_0x380535,_0x528e62,_0xdaa516){var _0x29a70d=a6_0xcb35,_0x4a9a1f=arguments['length'],_0x246c91=_0x4a9a1f<0x3?_0x380535:_0xdaa516===null?_0xdaa516=Object[_0x29a70d(0xce)](_0x380535,_0x528e62):_0xdaa516,_0x1f09a4;if(typeof Reflect===_0x29a70d(0xb7)&&typeof Reflect[_0x29a70d(0xc6)]===_0x29a70d(0xd0))_0x246c91=Reflect[_0x29a70d(0xc6)](_0x1f987d,_0x380535,_0x528e62,_0xdaa516);else{for(var _0x485d23=_0x1f987d['length']-0x1;_0x485d23>=0x0;_0x485d23--)if(_0x1f09a4=_0x1f987d[_0x485d23])_0x246c91=(_0x4a9a1f<0x3?_0x1f09a4(_0x246c91):_0x4a9a1f>0x3?_0x1f09a4(_0x380535,_0x528e62,_0x246c91):_0x1f09a4(_0x380535,_0x528e62))||_0x246c91;}return _0x4a9a1f>0x3&&_0x246c91&&Object[_0x29a70d(0xb4)](_0x380535,_0x528e62,_0x246c91),_0x246c91;},__metadata=this&&this[a6_0x37e482(0xc4)]||function(_0x3e84d5,_0x1d24e9){var _0x3e87b1=a6_0x37e482;if(typeof Reflect===_0x3e87b1(0xb7)&&typeof Reflect[_0x3e87b1(0xc5)]==='function')return Reflect[_0x3e87b1(0xc5)](_0x3e84d5,_0x1d24e9);};Object[a6_0x37e482(0xb4)](exports,a6_0x37e482(0xc7),{'value':!![]}),exports[a6_0x37e482(0xb5)]=void 0x0;function a6_0xcb35(_0x88465c,_0xf3815c){var _0x834d7a=a6_0x834d();return a6_0xcb35=function(_0xcb35c8,_0x19fdf8){_0xcb35c8=_0xcb35c8-0xb4;var _0x55d12c=_0x834d7a[_0xcb35c8];return _0x55d12c;},a6_0xcb35(_0x88465c,_0xf3815c);}class ApiError{}ApiError[a6_0x37e482(0xc9)]=0x3d7e31,ApiError[a6_0x37e482(0xc8)]=0x3d7e32,ApiError[a6_0x37e482(0xba)]=0x3d7e33,ApiError[a6_0x37e482(0xbe)]=0x3d7e34,ApiError[a6_0x37e482(0xc2)]=0x3d7e35,ApiError[a6_0x37e482(0xbf)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x37e482(0xbb)),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xc9),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xc8),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata('design:type',Object)],ApiError,a6_0x37e482(0xba),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x37e482(0xcb),Object)],ApiError,a6_0x37e482(0xbe),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x37e482(0xb6)),__metadata(a6_0x37e482(0xcb),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x37e482(0xb5)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x42404d=a7_0x1b9e;(function(_0x5cf01d,_0x3e8e7b){const _0x65ae2d=a7_0x1b9e,_0x12a8fc=_0x5cf01d();while(!![]){try{const _0x716dc8=-parseInt(_0x65ae2d(0x7b))/0x1*(-parseInt(_0x65ae2d(0x6e))/0x2)+-parseInt(_0x65ae2d(0x70))/0x3*(-parseInt(_0x65ae2d(0x75))/0x4)+-parseInt(_0x65ae2d(0x78))/0x5+parseInt(_0x65ae2d(0x77))/0x6*(-parseInt(_0x65ae2d(0x76))/0x7)+-parseInt(_0x65ae2d(0x6f))/0x8*(parseInt(_0x65ae2d(0x7c))/0x9)+-parseInt(_0x65ae2d(0x6d))/0xa*(parseInt(_0x65ae2d(0x73))/0xb)+parseInt(_0x65ae2d(0x6b))/0xc;if(_0x716dc8===_0x3e8e7b)break;else _0x12a8fc['push'](_0x12a8fc['shift']());}catch(_0x224dd3){_0x12a8fc['push'](_0x12a8fc['shift']());}}}(a7_0x3227,0x748bf));Object[a7_0x42404d(0x72)](exports,a7_0x42404d(0x6a),{'value':!![]}),exports[a7_0x42404d(0x6c)]=void 0x0;function a7_0x1b9e(_0x5ce63c,_0x356f75){const _0x322718=a7_0x3227();return a7_0x1b9e=function(_0x1b9e7a,_0xd543b){_0x1b9e7a=_0x1b9e7a-0x6a;let _0x2ffab4=_0x322718[_0x1b9e7a];return _0x2ffab4;},a7_0x1b9e(_0x5ce63c,_0x356f75);}function a7_0x3227(){const _0x5c5405=['__esModule','18212148dYPuUV','getAppsConfig','7320NYSzce','83688wCOXeO','404968zoNkgs','217473PLEzRf','get','defineProperty','6314FUuglV','@midwayjs/core','8jVvLUr','4109swCpqr','1500wxORck','3709295eRcbap','../types/action','getClassMetadata','9vaiaan','45UdFBNb'];a7_0x3227=function(){return _0x5c5405;};return a7_0x3227();}const core_1=require(a7_0x42404d(0x74)),action_1=require(a7_0x42404d(0x79));function getAppsConfig(_0x332870){const _0x431a73=a7_0x42404d,_0x5da797=(0x0,core_1[_0x431a73(0x7a)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x332870?lodash[_0x431a73(0x71)](_0x5da797,_0x332870):_0x5da797;}exports[a7_0x42404d(0x6c)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0xf93653=a8_0x172d;(function(_0x10dbd4,_0x527ec3){const _0x5da57e=a8_0x172d,_0x595b8c=_0x10dbd4();while(!![]){try{const _0x329308=parseInt(_0x5da57e(0x170))/0x1+parseInt(_0x5da57e(0x183))/0x2*(-parseInt(_0x5da57e(0x173))/0x3)+-parseInt(_0x5da57e(0x182))/0x4*(parseInt(_0x5da57e(0x17d))/0x5)+-parseInt(_0x5da57e(0x198))/0x6+-parseInt(_0x5da57e(0x16b))/0x7*(-parseInt(_0x5da57e(0x179))/0x8)+-parseInt(_0x5da57e(0x14a))/0x9+-parseInt(_0x5da57e(0x155))/0xa*(-parseInt(_0x5da57e(0x196))/0xb);if(_0x329308===_0x527ec3)break;else _0x595b8c['push'](_0x595b8c['shift']());}catch(_0x18328c){_0x595b8c['push'](_0x595b8c['shift']());}}}(a8_0x37dc,0x2f391));function a8_0x172d(_0x462d4f,_0x223a31){const _0x37dc71=a8_0x37dc();return a8_0x172d=function(_0x172d40,_0x4efdb8){_0x172d40=_0x172d40-0x139;let _0x999360=_0x37dc71[_0x172d40];return _0x999360;},a8_0x172d(_0x462d4f,_0x223a31);}Object[a8_0xf93653(0x18c)](exports,a8_0xf93653(0x197),{'value':!![]}),exports[a8_0xf93653(0x163)]=void 0x0;const lodash_1=require(a8_0xf93653(0x195)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a8_0xf93653(0x167)),action_1=require('../types/action');function getRoutes(_0x31df4d={'prefix':'/','module':![]}){const _0x489a29=a8_0xf93653;var _0x382f52,_0x45ab59;const _0x3da808=(0x0,core_3[_0x489a29(0x16d)])(action_1[_0x489a29(0x144)]),_0x33f0e7={},_0x2f4ba6=Array['isArray'](_0x31df4d[_0x489a29(0x162)]||[])?_0x31df4d['filter']||[]:[_0x31df4d[_0x489a29(0x162)]];_0x31121a:for(const _0x3f0bba of _0x3da808){let _0x4ea6ec=(0x0,core_3[_0x489a29(0x148)])(action_1[_0x489a29(0x144)],_0x3f0bba),_0xef727d=(0x0,core_3[_0x489a29(0x148)])(action_1[_0x489a29(0x199)],_0x3f0bba);if(_0x4ea6ec&&_0xef727d){let _0x3b1a27=_0x4ea6ec[_0x489a29(0x194)],_0x44c724={};if(_0x31df4d[_0x489a29(0x172)]&&(0x0,lodash_1['get'])(_0x4ea6ec,_0x489a29(0x172),![])!=_0x31df4d[_0x489a29(0x172)])continue _0x31121a;else{if(_0x31df4d[_0x489a29(0x172)]===![]&&!!(0x0,lodash_1['get'])(_0x4ea6ec,_0x489a29(0x172),null))continue _0x31121a;}if(_0x31df4d[_0x489a29(0x194)]&&!_0x3b1a27[_0x489a29(0x169)](_0x31df4d[_0x489a29(0x194)]))continue _0x31121a;_0x3b1a27!=='/'?(_0x44c724['summary']=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec['routerOptions']['tagName'])||(/^\//[_0x489a29(0x15a)](_0x3b1a27)?_0x3b1a27[_0x489a29(0x16a)]('/')[0x1]:_0x3b1a27),_0x44c724[_0x489a29(0x140)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)]['description'])||_0x44c724[_0x489a29(0x153)],_0x44c724[_0x489a29(0x16e)]=[]):(_0x44c724[_0x489a29(0x153)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)]['tagName'])||_0x489a29(0x13e),_0x44c724[_0x489a29(0x140)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)][_0x489a29(0x140)])||'',_0x44c724[_0x489a29(0x16e)]=[]);_0x31df4d['filepath']&&(_0x44c724[_0x489a29(0x160)]=_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x160)]);(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x152)])&&(_0x44c724['prefix']=_0x4ea6ec[_0x489a29(0x152)]);(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x172)])&&(_0x44c724[_0x489a29(0x172)]=_0x4ea6ec['module']);let _0x516a4c=(0x0,core_3['getClassMetadata'])(core_2[_0x489a29(0x13f)],_0x3f0bba)||{};if(typeof _0xef727d[Symbol[_0x489a29(0x177)]]===_0x489a29(0x161))for(let _0x516b36 of _0xef727d){let _0x517b5f={};_0x517b5f['method']=_0x516b36[_0x489a29(0x16f)],_0x517b5f['route']=(_0x3b1a27+_0x516b36['path'])[_0x489a29(0x174)](/\/{1,}/,'/'),_0x517b5f[_0x489a29(0x153)]=(_0x516b36===null||_0x516b36===void 0x0?void 0x0:_0x516b36[_0x489a29(0x18f)])||_0x44c724[_0x489a29(0x153)]||_0x489a29(0x13e),_0x517b5f[_0x489a29(0x140)]=(_0x516b36===null||_0x516b36===void 0x0?void 0x0:_0x516b36[_0x489a29(0x140)])||'',_0x517b5f[_0x489a29(0x188)]=[];if(!(0x0,lodash_1[_0x489a29(0x169)])(_0x517b5f['route'],_0x489a29(0x189))&&!(0x0,lodash_1['startsWith'])(_0x517b5f['route'],'/static/apitest')&&_0x2f4ba6[_0x489a29(0x187)](_0x517b5f[_0x489a29(0x13a)])===-0x1){if(!(_0x31df4d===null||_0x31df4d===void 0x0?void 0x0:_0x31df4d[_0x489a29(0x146)])){let _0x316bb5=(0x0,core_3[_0x489a29(0x13c)])(new _0x3f0bba(),_0x516b36['method']);for(const _0x59d4f5 in _0x316bb5){let _0x247208=(_0x382f52=_0x516a4c[_0x516b36[_0x489a29(0x142)]])===null||_0x382f52===void 0x0?void 0x0:_0x382f52[_0x489a29(0x180)](_0x28dab0=>_0x28dab0[_0x489a29(0x184)]==_0x59d4f5&&_0x28dab0[_0x489a29(0x159)]===core_2[_0x489a29(0x18e)]&&(_0x28dab0===null||_0x28dab0===void 0x0?void 0x0:_0x28dab0[_0x489a29(0x17b)]));if(_0x247208===null||_0x247208===void 0x0?void 0x0:_0x247208[_0x489a29(0x17b)]){let _0x22c834=convertTypeToString(_0x247208[_0x489a29(0x17b)][_0x489a29(0x149)]||0x0);if([_0x489a29(0x18a),'body'][_0x489a29(0x187)](_0x22c834)!=-0x1&&_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)][_0x489a29(0x187)](':')==-0x1&&!_0x517b5f['request'][_0x489a29(0x180)](_0x417998=>_0x417998[_0x489a29(0x159)]==_0x247208['metadata'][_0x489a29(0x193)]))_0x517b5f['request'][_0x489a29(0x18d)]({'key':_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)],'title':_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)],'type':convertSchemaType(_0x316bb5[_0x247208['parameterIndex']][_0x489a29(0x171)]),'required':![],'default':'','desc':''});else{if(_0x22c834==_0x489a29(0x156)){let _0x245756=((_0x45ab59=_0x247208===null||_0x247208===void 0x0?void 0x0:_0x247208['metadata'])===null||_0x45ab59===void 0x0?void 0x0:_0x45ab59[_0x489a29(0x193)])||_0x489a29(0x156);_0x245756[_0x489a29(0x187)](':')==-0x1&&!_0x517b5f[_0x489a29(0x188)]['find'](_0x19f599=>_0x19f599[_0x489a29(0x159)]==_0x245756&&_0x19f599[_0x489a29(0x149)]==_0x489a29(0x156))&&_0x517b5f[_0x489a29(0x188)]['push']({'key':_0x245756,'title':_0x489a29(0x175)+_0x245756,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xa0fbfc=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x489a29(0x178)],_0x316bb5[_0x59d4f5]);_0xa0fbfc&&_0x517b5f[_0x489a29(0x188)]['push'](...getJoiRequest(_0xa0fbfc));}}}_0x44c724['routes'][_0x489a29(0x18d)](_0x517b5f);}}if(_0x44c724['routes'][_0x489a29(0x13b)]>0x0){let _0x1249eb=_0x33f0e7[_0x3b1a27];_0x1249eb?(_0x1249eb[_0x489a29(0x153)]!=_0x44c724['summary']&&(_0x1249eb[_0x489a29(0x153)]=_0x1249eb[_0x489a29(0x153)]+','+_0x44c724['summary']),_0x1249eb[_0x489a29(0x140)]!=_0x44c724[_0x489a29(0x140)]&&(_0x1249eb[_0x489a29(0x140)]=_0x1249eb[_0x489a29(0x140)]+','+_0x44c724['description']),_0x1249eb[_0x489a29(0x16e)]=_0x1249eb[_0x489a29(0x16e)][_0x489a29(0x191)](_0x44c724[_0x489a29(0x16e)]),_0x33f0e7[_0x3b1a27]=_0x1249eb):_0x33f0e7[_0x3b1a27]=_0x44c724;}}}return _0x33f0e7;}function a8_0x37dc(){const _0x104e00=['title','filepath','function','filter','getRoutes','FIELDS','get','string','@midwayjs/core','flags.default','startsWith','split','7xriXcw','PARAM','listModule','routes','requestMethod','71614IpEAiz','name','module','51Pdsjlq','replace','文件上传-','Object','iterator','RULES_KEY','2537272UtMLdC','items','metadata','boolean','44620baLuBY','flags.presence','只允许:[','find','args','148oiDFAH','8076UxXxmd','parameterIndex','body','describe','indexOf','request','static/apitest','query','File','defineProperty','push','WEB_ROUTER_PARAM_KEY','routerName','header','concat','keys','propertyData','prefix','lodash','231zigbZv','__esModule','2141514WONHRD','ACTION_ROUTE_KEY','-array','route','length','getMethodParamTypes','children','default','INJECT_CUSTOM_PARAM','description','routerOptions','method','required','ACTION_KEY','QUERY','noreq','path','getClassMetadata','type','1567197bMHooI','object','Boolean','min','limit','isArray','max','RouteParamTypes','pprefix','summary','FILESTREAM','349780cmRZQw','file','number','allow','key','test','array','FILESSTREAM','join','flags.description'];a8_0x37dc=function(){return _0x104e00;};return a8_0x37dc();}exports[a8_0xf93653(0x163)]=getRoutes;function getJoiRequest(_0x21042c){const _0x5aa16d=a8_0xf93653,_0x3d8c27=[];for(let _0x50de0b in _0x21042c){const _0x4d8a33={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1be90b=typeof _0x21042c[_0x50de0b]['describe']==_0x5aa16d(0x161)?_0x21042c[_0x50de0b][_0x5aa16d(0x186)]():_0x21042c[_0x50de0b];_0x4d8a33[_0x5aa16d(0x159)]=_0x50de0b,_0x4d8a33[_0x5aa16d(0x149)]=_0x1be90b[_0x5aa16d(0x149)],_0x4d8a33[_0x5aa16d(0x15f)]=(0x0,lodash_1['get'])(_0x1be90b,'flags.label',_0x50de0b),_0x4d8a33[_0x5aa16d(0x13e)]=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x168),''),_0x4d8a33[_0x5aa16d(0x143)]=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x17e),'')==_0x5aa16d(0x143),_0x4d8a33['description']=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x15e),'');if(_0x1be90b[_0x5aa16d(0x149)]==_0x5aa16d(0x14b))_0x4d8a33[_0x5aa16d(0x13d)]=getJoiRequest(_0x1be90b[_0x5aa16d(0x192)]);else _0x1be90b['type']==_0x5aa16d(0x15b)&&_0x1be90b[_0x5aa16d(0x17a)]&&Array[_0x5aa16d(0x14f)](_0x1be90b[_0x5aa16d(0x17a)])&&_0x1be90b[_0x5aa16d(0x17a)][0x0]&&console['log'](_0x50de0b+_0x5aa16d(0x139),_0x1be90b);_0x1be90b[_0x5aa16d(0x158)]&&Array['isArray'](_0x1be90b[_0x5aa16d(0x158)])&&_0x1be90b[_0x5aa16d(0x158)][_0x5aa16d(0x13b)]>0x0&&(_0x4d8a33[_0x5aa16d(0x140)]=_0x5aa16d(0x17f)+_0x1be90b[_0x5aa16d(0x158)][_0x5aa16d(0x15d)](',')+'];'+_0x4d8a33[_0x5aa16d(0x140)]);if(_0x4d8a33[_0x5aa16d(0x159)]&&_0x4d8a33[_0x5aa16d(0x149)]){const _0x3a261a={};for(const _0xadb6fb of _0x1be90b['rules']||[]){if(_0xadb6fb['name']===_0x5aa16d(0x14d)&&_0xadb6fb['args'])_0x3a261a[_0x5aa16d(0x14d)]=_0xadb6fb['args'][_0x5aa16d(0x14e)];else _0xadb6fb[_0x5aa16d(0x171)]===_0x5aa16d(0x150)&&(_0x3a261a['max']=_0xadb6fb[_0x5aa16d(0x181)]['limit']);}_0x4d8a33['rules']=_0x3a261a;}_0x4d8a33['key']&&_0x4d8a33[_0x5aa16d(0x15f)]&&_0x3d8c27[_0x5aa16d(0x18d)](_0x4d8a33);}return _0x3d8c27;}function convertSchemaType(_0x5c5c82){const _0x57aceb=a8_0xf93653;switch(_0x5c5c82){case _0x57aceb(0x176):return _0x57aceb(0x14b);case _0x57aceb(0x14c):return _0x57aceb(0x17c);case'Number':return _0x57aceb(0x157);case'String':return _0x57aceb(0x166);case _0x57aceb(0x18b):return _0x57aceb(0x156);default:return _0x57aceb(0x166);}}function convertTypeToString(_0x4512d8){const _0x105e2b=a8_0xf93653;switch(_0x4512d8){case core_1[_0x105e2b(0x151)]['HEADERS']:return _0x105e2b(0x190);case core_1[_0x105e2b(0x151)][_0x105e2b(0x145)]:return _0x105e2b(0x18a);case core_1[_0x105e2b(0x151)][_0x105e2b(0x16c)]:return _0x105e2b(0x147);case core_1[_0x105e2b(0x151)]['BODY']:return _0x105e2b(0x185);case core_1[_0x105e2b(0x151)][_0x105e2b(0x164)]:case core_1[_0x105e2b(0x151)][_0x105e2b(0x15c)]:case core_1[_0x105e2b(0x151)][_0x105e2b(0x154)]:return'file';default:return'header';}}
|
|
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);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x152bab=a9_0x50d4;(function(_0x2a8a95,_0x24269e){var _0x4c536a=a9_0x50d4,_0x9d985f=_0x2a8a95();while(!![]){try{var _0x2b6bf6=parseInt(_0x4c536a(0x1e4))/0x1*(parseInt(_0x4c536a(0x1e8))/0x2)+-parseInt(_0x4c536a(0x1c2))/0x3*(-parseInt(_0x4c536a(0x1e7))/0x4)+parseInt(_0x4c536a(0x1d1))/0x5*(parseInt(_0x4c536a(0x1f6))/0x6)+-parseInt(_0x4c536a(0x1bd))/0x7*(-parseInt(_0x4c536a(0x1c9))/0x8)+-parseInt(_0x4c536a(0x1ca))/0x9*(parseInt(_0x4c536a(0x1f1))/0xa)+parseInt(_0x4c536a(0x1d0))/0xb*(parseInt(_0x4c536a(0x1cb))/0xc)+-parseInt(_0x4c536a(0x1c8))/0xd;if(_0x2b6bf6===_0x24269e)break;else _0x9d985f['push'](_0x9d985f['shift']());}catch(_0x5a30d9){_0x9d985f['push'](_0x9d985f['shift']());}}}(a9_0xc062,0x60f0c));var __createBinding=this&&this[a9_0x152bab(0x1c7)]||(Object[a9_0x152bab(0x1ef)]?function(_0x35c40e,_0x1ebee8,_0x503878,_0x18d05a){var _0x3c5c84=a9_0x152bab;if(_0x18d05a===undefined)_0x18d05a=_0x503878;var _0x706106=Object[_0x3c5c84(0x1d8)](_0x1ebee8,_0x503878);(!_0x706106||('get'in _0x706106?!_0x1ebee8[_0x3c5c84(0x1cd)]:_0x706106[_0x3c5c84(0x1e6)]||_0x706106[_0x3c5c84(0x1c6)]))&&(_0x706106={'enumerable':!![],'get':function(){return _0x1ebee8[_0x503878];}}),Object[_0x3c5c84(0x1dc)](_0x35c40e,_0x18d05a,_0x706106);}:function(_0x29e03f,_0x1f932e,_0x5295c6,_0x3b1e94){if(_0x3b1e94===undefined)_0x3b1e94=_0x5295c6;_0x29e03f[_0x3b1e94]=_0x1f932e[_0x5295c6];}),__exportStar=this&&this[a9_0x152bab(0x1ee)]||function(_0x5c2985,_0x9f8c47){var _0x42a027=a9_0x152bab;for(var _0x487f96 in _0x5c2985)if(_0x487f96!==_0x42a027(0x1c3)&&!Object[_0x42a027(0x1bf)][_0x42a027(0x1f0)][_0x42a027(0x1ea)](_0x9f8c47,_0x487f96))__createBinding(_0x9f8c47,_0x5c2985,_0x487f96);};Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1cd),{'value':!![]}),exports[a9_0x152bab(0x1f2)]=exports[a9_0x152bab(0x1d5)]=exports[a9_0x152bab(0x1e3)]=exports[a9_0x152bab(0x1dd)]=exports[a9_0x152bab(0x1f4)]=exports[a9_0x152bab(0x1db)]=exports[a9_0x152bab(0x1ec)]=exports[a9_0x152bab(0x1c1)]=exports[a9_0x152bab(0x1d4)]=exports[a9_0x152bab(0x1d2)]=exports['Query']=exports[a9_0x152bab(0x1e0)]=exports[a9_0x152bab(0x1cf)]=exports[a9_0x152bab(0x1e1)]=exports[a9_0x152bab(0x1ba)]=exports[a9_0x152bab(0x1c5)]=exports[a9_0x152bab(0x1cc)]=exports[a9_0x152bab(0x1be)]=exports[a9_0x152bab(0x1d6)]=exports['ExcelService']=exports['ApiService']=exports['EventService']=exports[a9_0x152bab(0x1df)]=exports[a9_0x152bab(0x1c0)]=exports[a9_0x152bab(0x1bc)]=exports[a9_0x152bab(0x1d9)]=exports['Action']=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0x152bab(0x1f2),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x152bab(0x1e5)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x152bab(0x1e2));Object[a9_0x152bab(0x1dc)](exports,'Api',{'enumerable':!![],'get':function(){var _0x42ae6c=a9_0x152bab;return ActionApi_1[_0x42ae6c(0x1da)];}});var Action_1=require(a9_0x152bab(0x1eb));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ed),{'enumerable':!![],'get':function(){var _0x2415c1=a9_0x152bab;return Action_1[_0x2415c1(0x1ed)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,a9_0x152bab(0x1d9),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x152bab(0x1b9));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1bc),{'enumerable':!![],'get':function(){var _0x12c924=a9_0x152bab;return getRoutes_1[_0x12c924(0x1bc)];}});var ApiError_1=require(a9_0x152bab(0x1d3));Object['defineProperty'](exports,a9_0x152bab(0x1c0),{'enumerable':!![],'get':function(){var _0x473827=a9_0x152bab;return ApiError_1[_0x473827(0x1c0)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1df),{'enumerable':!![],'get':function(){var _0x153ab7=a9_0x152bab;return cache_1[_0x153ab7(0x1df)];}});var event_1=require(a9_0x152bab(0x1ce));Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f3),{'enumerable':!![],'get':function(){var _0x12bc37=a9_0x152bab;return event_1[_0x12bc37(0x1f3)];}});var ApiService_1=require('./service/ApiService');function a9_0x50d4(_0x4ba297,_0x564136){var _0xc06278=a9_0xc062();return a9_0x50d4=function(_0x50d4be,_0x848d64){_0x50d4be=_0x50d4be-0x1b9;var _0x1fdad0=_0xc06278[_0x50d4be];return _0x1fdad0;},a9_0x50d4(_0x4ba297,_0x564136);}Object[a9_0x152bab(0x1dc)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x50eef3=a9_0x152bab;return ApiService_1[_0x50eef3(0x1f5)];}});var ExcelService_1=require(a9_0x152bab(0x1d7));function a9_0xc062(){var _0x5b9a4a=['7fdbcaP','ValidatorService','prototype','ApiError','App','42078iNoKhF','default','@midwayjs/core','File','configurable','__createBinding','15462616uHvihj','4153736JKIede','812367jEmzaE','5521092Todfzx','Configuration','__esModule','@anncic-api/event','Body','11zWjvDh','15aHJZgL','Headers','./exception/ApiError','Init','ScopeEnum','ValidatorError','./service/ExcelService','getOwnPropertyDescriptor','Apitest','Api','Logger','defineProperty','Inject','ExcelService','CacheService','Param','Fields','./decorator/ActionApi','Scope','1giJgag','./types/common','writable','72cRHJag','189386zSzdkr','./configuration','call','./decorator/Action','Config','Action','__exportStar','create','hasOwnProperty','30CwwoaG','getAppsConfig','EventService','Provide','ApiService','1061640AyNDsF','Query','./helper/getRoutes','Files','CustomConfiguration','getRoutes'];a9_0xc062=function(){return _0x5b9a4a;};return a9_0xc062();}Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1de),{'enumerable':!![],'get':function(){var _0x3ce380=a9_0x152bab;return ExcelService_1[_0x3ce380(0x1de)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x152bab(0x1dc)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x152bab(0x1dc)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x21a262=a9_0x152bab;return validator_1[_0x21a262(0x1be)];}});var configuration_1=require(a9_0x152bab(0x1e9));Object[a9_0x152bab(0x1dc)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3af68e=a9_0x152bab;return configuration_1[_0x3af68e(0x1bb)];}});var core_1=require('@midwayjs/core');Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1c5),{'enumerable':!![],'get':function(){var _0xd21c94=a9_0x152bab;return core_1[_0xd21c94(0x1c5)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ba),{'enumerable':!![],'get':function(){var _0x2252bc=a9_0x152bab;return core_1[_0x2252bc(0x1ba)];}}),Object[a9_0x152bab(0x1dc)](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a9_0x152bab(0x1cf),{'enumerable':!![],'get':function(){var _0x1708fa=a9_0x152bab;return core_1[_0x1708fa(0x1cf)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1e0),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f7),{'enumerable':!![],'get':function(){var _0x2419c7=a9_0x152bab;return core_1[_0x2419c7(0x1f7)];}}),Object[a9_0x152bab(0x1dc)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x3ff608=a9_0x152bab;return core_1[_0x3ff608(0x1d2)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1d4),{'enumerable':!![],'get':function(){var _0x6a4885=a9_0x152bab;return core_1[_0x6a4885(0x1d4)];}});var core_2=require(a9_0x152bab(0x1c4));Object['defineProperty'](exports,a9_0x152bab(0x1c1),{'enumerable':!![],'get':function(){var _0x59e915=a9_0x152bab;return core_2[_0x59e915(0x1c1)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1ec),{'enumerable':!![],'get':function(){var _0x33bf32=a9_0x152bab;return core_2[_0x33bf32(0x1ec)];}}),Object['defineProperty'](exports,a9_0x152bab(0x1db),{'enumerable':!![],'get':function(){var _0x3d8a31=a9_0x152bab;return core_2[_0x3d8a31(0x1db)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1f4),{'enumerable':!![],'get':function(){var _0x40250c=a9_0x152bab;return core_2[_0x40250c(0x1f4)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1dd),{'enumerable':!![],'get':function(){var _0x5c9948=a9_0x152bab;return core_2[_0x5c9948(0x1dd)];}}),Object['defineProperty'](exports,a9_0x152bab(0x1e3),{'enumerable':!![],'get':function(){var _0x2dfed2=a9_0x152bab;return core_2[_0x2dfed2(0x1e3)];}}),Object[a9_0x152bab(0x1dc)](exports,a9_0x152bab(0x1d5),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x152bab(0x1f2)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x1cd5d8=a10_0x14ae;(function(_0x2071ab,_0x439251){var _0x21452a=a10_0x14ae,_0x4c4261=_0x2071ab();while(!![]){try{var _0x2eb4b5=parseInt(_0x21452a(0xd9))/0x1*(-parseInt(_0x21452a(0xef))/0x2)+parseInt(_0x21452a(0xdd))/0x3+parseInt(_0x21452a(0xcd))/0x4*(parseInt(_0x21452a(0xcb))/0x5)+parseInt(_0x21452a(0xb9))/0x6+-parseInt(_0x21452a(0xd3))/0x7+parseInt(_0x21452a(0xd1))/0x8+-parseInt(_0x21452a(0xd5))/0x9;if(_0x2eb4b5===_0x439251)break;else _0x4c4261['push'](_0x4c4261['shift']());}catch(_0x1984d0){_0x4c4261['push'](_0x4c4261['shift']());}}}(a10_0x2ea2,0xb3b9f));function a10_0x2ea2(){var _0x3d444d=['logintimeout','design:type','anncicapi','join','devices','crypto-js','缺少头信息:signature','615HiUwav','entries','47036RUTGfA','prototype','function','__decorate','4243680DGSTfJ','ApiError','9463986wkyYqx','ScopeEnum','13239hoSRad','object','decorate','getsign','2ktuFfT','checkcode','map','toLowerCase','1335102swlKEk','sort','@midwayjs/core','TIMEOUT_LOGINTIME','now','logintime','checksign','signature','config','../exception/ApiError','token','secret','push','toString','fromEntries','Provide','Scope','__esModule','697134NyBPgN','TIMEOUT','Singleton','password','HEADERS_LACK','MD5','ApiService','2189466GeDDpc','device','abs','getcheck','Config','length','secret=','getOwnPropertyDescriptor','defineProperty','HEADERS_CHECKCODE','requesttime'];a10_0x2ea2=function(){return _0x3d444d;};return a10_0x2ea2();}var __decorate=this&&this[a10_0x1cd5d8(0xd0)]||function(_0x276ec3,_0x58b000,_0x31c8d8,_0xea0c07){var _0x1cd7ba=a10_0x1cd5d8,_0x1f7bfe=arguments[_0x1cd7ba(0xbe)],_0x35232a=_0x1f7bfe<0x3?_0x58b000:_0xea0c07===null?_0xea0c07=Object[_0x1cd7ba(0xc0)](_0x58b000,_0x31c8d8):_0xea0c07,_0x1673a3;if(typeof Reflect===_0x1cd7ba(0xd6)&&typeof Reflect[_0x1cd7ba(0xd7)]==='function')_0x35232a=Reflect[_0x1cd7ba(0xd7)](_0x276ec3,_0x58b000,_0x31c8d8,_0xea0c07);else{for(var _0x5c7641=_0x276ec3[_0x1cd7ba(0xbe)]-0x1;_0x5c7641>=0x0;_0x5c7641--)if(_0x1673a3=_0x276ec3[_0x5c7641])_0x35232a=(_0x1f7bfe<0x3?_0x1673a3(_0x35232a):_0x1f7bfe>0x3?_0x1673a3(_0x58b000,_0x31c8d8,_0x35232a):_0x1673a3(_0x58b000,_0x31c8d8))||_0x35232a;}return _0x1f7bfe>0x3&&_0x35232a&&Object[_0x1cd7ba(0xc1)](_0x58b000,_0x31c8d8,_0x35232a),_0x35232a;},__metadata=this&&this['__metadata']||function(_0x47e128,_0xd9fcac){var _0x1016d9=a10_0x1cd5d8;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x1016d9(0xcf))return Reflect['metadata'](_0x47e128,_0xd9fcac);};function a10_0x14ae(_0x470992,_0x29909b){var _0x2ea28c=a10_0x2ea2();return a10_0x14ae=function(_0x14ae31,_0x984222){_0x14ae31=_0x14ae31-0xb7;var _0x1945f7=_0x2ea28c[_0x14ae31];return _0x1945f7;},a10_0x14ae(_0x470992,_0x29909b);}Object[a10_0x1cd5d8(0xc1)](exports,a10_0x1cd5d8(0xee),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x1cd5d8(0xc9)),core_1=require(a10_0x1cd5d8(0xdf)),ApiError_1=require(a10_0x1cd5d8(0xe6));let ApiService=class ApiService{[a10_0x1cd5d8(0xf2)](_0x1bec03){var _0x112a44=a10_0x1cd5d8,_0x3b6ea3;return _0x1bec03?(0x0,crypto_js_1['MD5'])(_0x1bec03+(0x0,crypto_js_1[_0x112a44(0xb7)])((0x0,crypto_js_1[_0x112a44(0xb7)])(_0x1bec03)['toString']()+((_0x3b6ea3=this[_0x112a44(0xe5)])===null||_0x3b6ea3===void 0x0?void 0x0:_0x3b6ea3['password']))[_0x112a44(0xea)]())[_0x112a44(0xea)]():'';}[a10_0x1cd5d8(0xbc)](_0x4ac10f,_0x1d0d85,_0x20ed83=Date[a10_0x1cd5d8(0xe1)]()){return{'Token':_0x4ac10f,'Logintime':_0x20ed83,'Checkcode':this['checkcode'](_0x4ac10f,_0x1d0d85,_0x20ed83)};}['getsign'](_0x3b204b={}){var _0x2f6d72=a10_0x1cd5d8,_0x29879d;const _0x5e1749=[],_0x7c3cb4=Object['fromEntries'](Object[_0x2f6d72(0xcc)](_0x3b204b)[_0x2f6d72(0xdb)](_0x3e1ec0=>[_0x3e1ec0[0x0][_0x2f6d72(0xdc)](),_0x3e1ec0[0x1]]));for(let _0x2a7b44 of[_0x2f6d72(0xba),_0x2f6d72(0xc3),_0x2f6d72(0xe7),_0x2f6d72(0xe2),_0x2f6d72(0xda)]){if(typeof _0x7c3cb4[_0x2a7b44]=='undefined')throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xf3)],{'message':'缺少头信息:'+_0x2a7b44});_0x5e1749[_0x2f6d72(0xe9)](_0x2a7b44+'='+_0x7c3cb4[_0x2a7b44]);}if(Date[_0x2f6d72(0xe1)]()-Math[_0x2f6d72(0xbb)](_0x7c3cb4['requesttime'])>this[_0x2f6d72(0xe5)]['timeout'])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xf0)]);if((((_0x29879d=this[_0x2f6d72(0xe5)]['devices'][_0x7c3cb4['device']])===null||_0x29879d===void 0x0?void 0x0:_0x29879d['logintimeout'])||0x0)>0x0&&Date[_0x2f6d72(0xe1)]()-Math[_0x2f6d72(0xbb)](_0x7c3cb4[_0x2f6d72(0xe2)])>this['config'][_0x2f6d72(0xc8)][_0x7c3cb4['device']][_0x2f6d72(0xc4)])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)][_0x2f6d72(0xe0)]);if(!this[_0x2f6d72(0xe5)]['devices'][_0x7c3cb4[_0x2f6d72(0xba)]]||!this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xe8)]||!this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xda)])throw new AnnError(ApiError_1[_0x2f6d72(0xd2)]['HEADERS_DEVICE']);if(_0x7c3cb4['token']&&_0x7c3cb4[_0x2f6d72(0xda)]!=this[_0x2f6d72(0xda)](_0x7c3cb4[_0x2f6d72(0xe7)],_0x7c3cb4[_0x2f6d72(0xba)],_0x7c3cb4['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x2f6d72(0xc2)]);return _0x5e1749[_0x2f6d72(0xe9)](_0x2f6d72(0xbf)+this[_0x2f6d72(0xe5)][_0x2f6d72(0xc8)][_0x7c3cb4[_0x2f6d72(0xba)]][_0x2f6d72(0xe8)]),(0x0,crypto_js_1[_0x2f6d72(0xb7)])(_0x5e1749[_0x2f6d72(0xde)]()[_0x2f6d72(0xc7)](''))[_0x2f6d72(0xea)]();}[a10_0x1cd5d8(0xda)](_0x17c8ea,_0xd05e06,_0x564974=Date[a10_0x1cd5d8(0xe1)]()){var _0x4b1993=a10_0x1cd5d8,_0x9f19a1,_0x41d220,_0x5a1ac8;if(!((_0x9f19a1=this[_0x4b1993(0xe5)])===null||_0x9f19a1===void 0x0?void 0x0:_0x9f19a1[_0x4b1993(0xc8)][_0xd05e06])||!((_0x5a1ac8=(_0x41d220=this[_0x4b1993(0xe5)])===null||_0x41d220===void 0x0?void 0x0:_0x41d220[_0x4b1993(0xc8)][_0xd05e06])===null||_0x5a1ac8===void 0x0?void 0x0:_0x5a1ac8[_0x4b1993(0xda)]))throw new AnnError(ApiError_1[_0x4b1993(0xd2)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x4b1993(0xb7)])(_0x17c8ea+(0x0,crypto_js_1[_0x4b1993(0xb7)])(_0x564974+this['config'][_0x4b1993(0xc8)][_0xd05e06][_0x4b1993(0xda)])['toString']())['toString']();}[a10_0x1cd5d8(0xe3)](_0x1258d8={}){var _0x4e9ba7=a10_0x1cd5d8;const _0x451030=Object[_0x4e9ba7(0xeb)](Object[_0x4e9ba7(0xcc)](_0x1258d8)['map'](_0x472857=>[_0x472857[0x0][_0x4e9ba7(0xdc)](),_0x472857[0x1]]));if(!(_0x451030===null||_0x451030===void 0x0?void 0x0:_0x451030['signature']))throw new AnnError(ApiError_1['ApiError'][_0x4e9ba7(0xf3)],{'message':_0x4e9ba7(0xca)});if((_0x451030===null||_0x451030===void 0x0?void 0x0:_0x451030[_0x4e9ba7(0xe4)])!=this[_0x4e9ba7(0xd8)](_0x451030))throw new AnnError(ApiError_1[_0x4e9ba7(0xd2)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,core_1[a10_0x1cd5d8(0xbd)])(a10_0x1cd5d8(0xc6)),__metadata(a10_0x1cd5d8(0xc5),Object)],ApiService[a10_0x1cd5d8(0xce)],a10_0x1cd5d8(0xe5),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x1cd5d8(0xec)])(),(0x0,core_1[a10_0x1cd5d8(0xed)])(core_1[a10_0x1cd5d8(0xd4)][a10_0x1cd5d8(0xf1)])],ApiService),exports[a10_0x1cd5d8(0xb8)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x50dc54=a11_0x5813;(function(_0x1b9cca,_0x279910){const _0x14f00f=a11_0x5813,_0x2e8a1a=_0x1b9cca();while(!![]){try{const _0xc8a382=-parseInt(_0x14f00f(0x145))/0x1*(parseInt(_0x14f00f(0x12c))/0x2)+parseInt(_0x14f00f(0x11f))/0x3+parseInt(_0x14f00f(0x143))/0x4*(-parseInt(_0x14f00f(0x135))/0x5)+parseInt(_0x14f00f(0x127))/0x6+parseInt(_0x14f00f(0x154))/0x7+parseInt(_0x14f00f(0x14b))/0x8*(parseInt(_0x14f00f(0x13e))/0x9)+-parseInt(_0x14f00f(0x15e))/0xa;if(_0xc8a382===_0x279910)break;else _0x2e8a1a['push'](_0x2e8a1a['shift']());}catch(_0x3f0eca){_0x2e8a1a['push'](_0x2e8a1a['shift']());}}}(a11_0x3a32,0xa598b));function a11_0x3a32(){const _0x3e5460=['__esModule','design:returntype','ScopeEnum','3429235zmoSdd','../helper/getRoutes','summary','prefix','MidwayEnvironmentService','path','prototype','/apitest','description','933651aDCCRp','/apiteststatic/*','devices','routes','__devices__','4hCHIut','.js','1yyYrHn','apitestmodule','content-type','cache-control','set','Param','56qBZGxv','Controller','module','anncicapi','decorate','__param','utf-8','getRoutes','../../public/','2167067gDwZTo','filepath','join','Inject','length','existsSync','__decorate','../../public/index.html','Config','config','4558380XtYEsi','apidoc','metadata','Provide','substring','apitest','Environment','/apiteststatic/','stringify','ApitestStaticController','application/javascript;\x20charset=utf-8','design:type','public,\x20max-age=604800','replace','function','readFileSync','2045751WvKIKl','ApitestService','extname','url','defineProperty','getOwnPropertyDescriptor','design:paramtypes','object','5413452WCSHLi','apitesthtml','Singleton','isDevelopmentEnvironment','Get','1599890pTbWAF','request','route','ctx','Scope','@midwayjs/core'];a11_0x3a32=function(){return _0x3e5460;};return a11_0x3a32();}function a11_0x5813(_0x207314,_0x5202d0){const _0x3a3271=a11_0x3a32();return a11_0x5813=function(_0x581345,_0x31f647){_0x581345=_0x581345-0x111;let _0x5f4dc0=_0x3a3271[_0x581345];return _0x5f4dc0;},a11_0x5813(_0x207314,_0x5202d0);}var __decorate=this&&this[a11_0x50dc54(0x15a)]||function(_0x5abcb8,_0x491b2e,_0x220272,_0x4cd28c){const _0x545608=a11_0x50dc54;var _0x27a265=arguments['length'],_0x2ad709=_0x27a265<0x3?_0x491b2e:_0x4cd28c===null?_0x4cd28c=Object[_0x545608(0x124)](_0x491b2e,_0x220272):_0x4cd28c,_0x188ff7;if(typeof Reflect===_0x545608(0x126)&&typeof Reflect[_0x545608(0x14f)]===_0x545608(0x11d))_0x2ad709=Reflect[_0x545608(0x14f)](_0x5abcb8,_0x491b2e,_0x220272,_0x4cd28c);else{for(var _0xeb9038=_0x5abcb8[_0x545608(0x158)]-0x1;_0xeb9038>=0x0;_0xeb9038--)if(_0x188ff7=_0x5abcb8[_0xeb9038])_0x2ad709=(_0x27a265<0x3?_0x188ff7(_0x2ad709):_0x27a265>0x3?_0x188ff7(_0x491b2e,_0x220272,_0x2ad709):_0x188ff7(_0x491b2e,_0x220272))||_0x2ad709;}return _0x27a265>0x3&&_0x2ad709&&Object[_0x545608(0x123)](_0x491b2e,_0x220272,_0x2ad709),_0x2ad709;},__metadata=this&&this['__metadata']||function(_0x174de4,_0x2ac65c){const _0x48c36a=a11_0x50dc54;if(typeof Reflect===_0x48c36a(0x126)&&typeof Reflect[_0x48c36a(0x111)]===_0x48c36a(0x11d))return Reflect['metadata'](_0x174de4,_0x2ac65c);},__param=this&&this[a11_0x50dc54(0x150)]||function(_0x17a137,_0x589e30){return function(_0x1d9084,_0x1fa4d6){_0x589e30(_0x1d9084,_0x1fa4d6,_0x17a137);};};Object[a11_0x50dc54(0x123)](exports,a11_0x50dc54(0x132),{'value':!![]}),exports[a11_0x50dc54(0x118)]=exports[a11_0x50dc54(0x120)]=void 0x0;const path_1=require(a11_0x50dc54(0x13a)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x50dc54(0x131)),core_3=require('@midwayjs/core'),getRoutes_1=require(a11_0x50dc54(0x136));let ApitestService=class ApitestService{async[a11_0x50dc54(0x15f)](_0x951a2c){const _0x1cd8ac=a11_0x50dc54,_0x216260=(0x0,getRoutes_1[_0x1cd8ac(0x152)])(_0x951a2c),_0x558929=[];for(let _0x52fd29 in _0x216260){for(let _0x316de3 in _0x216260[_0x52fd29]['routes']){let _0xb71964=_0x216260[_0x52fd29][_0x1cd8ac(0x141)][_0x316de3],_0xee2181=[];for(let _0x9794a4 in _0xb71964[_0x1cd8ac(0x12d)]){_0xee2181['push'](_0xb71964['request'][_0x9794a4]);}_0x558929['push']({'title':_0x216260[_0x52fd29][_0x1cd8ac(0x137)]+':'+_0xb71964['summary'],'prefix':_0x216260[_0x52fd29][_0x1cd8ac(0x138)],'router':_0xb71964[_0x1cd8ac(0x12e)],'method':_0xb71964['method'],'describe':_0xb71964[_0x1cd8ac(0x13d)]||'','filepath':_0x216260[_0x52fd29]['filepath']||'','request':_0xee2181});}}const _0x51c794=(0x0,path_1['join'])(__dirname,_0x1cd8ac(0x15b));return(0x0,fs_1[_0x1cd8ac(0x11e)])(_0x51c794,{'encoding':_0x1cd8ac(0x151)})[_0x1cd8ac(0x11c)](/__res__/g,_0x1cd8ac(0x116))[_0x1cd8ac(0x11c)]('__apiList__',JSON[_0x1cd8ac(0x117)](_0x558929))['replace'](_0x1cd8ac(0x142),JSON[_0x1cd8ac(0x117)](this['config'][_0x1cd8ac(0x140)]));}};__decorate([(0x0,core_3[a11_0x50dc54(0x15c)])(a11_0x50dc54(0x14e)),__metadata('design:type',Object)],ApitestService[a11_0x50dc54(0x13b)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x50dc54(0x112)])(a11_0x50dc54(0x114)),(0x0,core_3[a11_0x50dc54(0x130)])(core_3[a11_0x50dc54(0x134)][a11_0x50dc54(0x129)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x50dc54(0x128)](){const _0x200772=a11_0x50dc54;if(this[_0x200772(0x114)]){const _0x1dfcae={'module':![]};return this[_0x200772(0x115)][_0x200772(0x12a)]()&&(_0x1dfcae[_0x200772(0x155)]=!![]),await this['ApitestService']['apidoc'](_0x1dfcae);}return'';}async['apitestmodule'](_0x421377){const _0x3947c8=a11_0x50dc54;if(this[_0x3947c8(0x114)]){const _0x304c90={'module':_0x421377};return this[_0x3947c8(0x115)]['isDevelopmentEnvironment']()&&(_0x304c90[_0x3947c8(0x155)]=!![]),await this[_0x3947c8(0x120)]['apidoc'](_0x304c90);}return'';}async['apiteststatic'](){const _0xb11ff9=a11_0x50dc54;if((0x0,path_1['extname'])(this[_0xb11ff9(0x12f)]['request'][_0xb11ff9(0x122)])){var _0xe8a3a9=(0x0,path_1[_0xb11ff9(0x156)])(__dirname,_0xb11ff9(0x153)+this[_0xb11ff9(0x12f)][_0xb11ff9(0x12d)][_0xb11ff9(0x122)][_0xb11ff9(0x11c)]('/apiteststatic/','/'));if(_0xe8a3a9[_0xb11ff9(0x113)](_0xe8a3a9[_0xb11ff9(0x158)]-0xb)!='/index.html'){this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)](_0xb11ff9(0x148),_0xb11ff9(0x11b));if((0x0,path_1[_0xb11ff9(0x121)])(this[_0xb11ff9(0x12f)][_0xb11ff9(0x12d)][_0xb11ff9(0x122)])==_0xb11ff9(0x144))this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)](_0xb11ff9(0x147),_0xb11ff9(0x119));else(0x0,path_1['extname'])(this[_0xb11ff9(0x12f)]['request'][_0xb11ff9(0x122)])=='.css'&&this[_0xb11ff9(0x12f)][_0xb11ff9(0x149)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0xb11ff9(0x159)])(_0xe8a3a9)&&(0x0,fs_1[_0xb11ff9(0x11e)])(_0xe8a3a9,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x50dc54(0x12f),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata(a11_0x50dc54(0x11a),core_1[a11_0x50dc54(0x139)])],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x115),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x157)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x120),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x50dc54(0x114)),__metadata(a11_0x50dc54(0x11a),Boolean)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x114),void 0x0),__decorate([(0x0,core_3[a11_0x50dc54(0x15c)])(a11_0x50dc54(0x14e)),__metadata(a11_0x50dc54(0x11a),Object)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x15d),void 0x0),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])(a11_0x50dc54(0x13c)),__metadata(a11_0x50dc54(0x11a),Function),__metadata(a11_0x50dc54(0x125),[]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController[a11_0x50dc54(0x13b)],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x50dc54(0x14a)])(a11_0x50dc54(0x14d))),__metadata(a11_0x50dc54(0x11a),Function),__metadata(a11_0x50dc54(0x125),[String]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController[a11_0x50dc54(0x13b)],a11_0x50dc54(0x146),null),__decorate([(0x0,core_2[a11_0x50dc54(0x12b)])(a11_0x50dc54(0x13f)),__metadata(a11_0x50dc54(0x11a),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x50dc54(0x133),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x50dc54(0x14c)])('/'),(0x0,core_3[a11_0x50dc54(0x130)])(core_3[a11_0x50dc54(0x134)]['Request'])],ApitestStaticController),exports[a11_0x50dc54(0x118)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x578478=a12_0x1047;(function(_0x89e837,_0x545817){const _0x86c1c6=a12_0x1047,_0x1fabc0=_0x89e837();while(!![]){try{const _0x171cc6=-parseInt(_0x86c1c6(0x1c7))/0x1*(parseInt(_0x86c1c6(0x1ba))/0x2)+-parseInt(_0x86c1c6(0x1d4))/0x3*(-parseInt(_0x86c1c6(0x1f2))/0x4)+parseInt(_0x86c1c6(0x1c2))/0x5+parseInt(_0x86c1c6(0x1d9))/0x6+-parseInt(_0x86c1c6(0x1e9))/0x7*(parseInt(_0x86c1c6(0x1cf))/0x8)+-parseInt(_0x86c1c6(0x1e3))/0x9+-parseInt(_0x86c1c6(0x1f1))/0xa*(-parseInt(_0x86c1c6(0x1e6))/0xb);if(_0x171cc6===_0x545817)break;else _0x1fabc0['push'](_0x1fabc0['shift']());}catch(_0x4833a5){_0x1fabc0['push'](_0x1fabc0['shift']());}}}(a12_0x1fbb,0x75e5f));var __decorate=this&&this[a12_0x578478(0x1ea)]||function(_0x54b636,_0x2dad45,_0x1eeaa4,_0xe482a){const _0xd29ce0=a12_0x578478;var _0x2b2501=arguments[_0xd29ce0(0x1d3)],_0x5a7ad7=_0x2b2501<0x3?_0x2dad45:_0xe482a===null?_0xe482a=Object[_0xd29ce0(0x1d5)](_0x2dad45,_0x1eeaa4):_0xe482a,_0x108b00;if(typeof Reflect==='object'&&typeof Reflect[_0xd29ce0(0x1bd)]===_0xd29ce0(0x1da))_0x5a7ad7=Reflect[_0xd29ce0(0x1bd)](_0x54b636,_0x2dad45,_0x1eeaa4,_0xe482a);else{for(var _0x4e1fef=_0x54b636[_0xd29ce0(0x1d3)]-0x1;_0x4e1fef>=0x0;_0x4e1fef--)if(_0x108b00=_0x54b636[_0x4e1fef])_0x5a7ad7=(_0x2b2501<0x3?_0x108b00(_0x5a7ad7):_0x2b2501>0x3?_0x108b00(_0x2dad45,_0x1eeaa4,_0x5a7ad7):_0x108b00(_0x2dad45,_0x1eeaa4))||_0x5a7ad7;}return _0x2b2501>0x3&&_0x5a7ad7&&Object[_0xd29ce0(0x1bf)](_0x2dad45,_0x1eeaa4,_0x5a7ad7),_0x5a7ad7;},__metadata=this&&this[a12_0x578478(0x1b8)]||function(_0x258eee,_0x5876fb){const _0x145512=a12_0x578478;if(typeof Reflect===_0x145512(0x1b9)&&typeof Reflect[_0x145512(0x1ac)]===_0x145512(0x1da))return Reflect[_0x145512(0x1ac)](_0x258eee,_0x5876fb);};Object[a12_0x578478(0x1bf)](exports,'__esModule',{'value':!![]}),exports[a12_0x578478(0x1ef)]=void 0x0;function a12_0x1047(_0x165ceb,_0x5c48fc){const _0x1fbbce=a12_0x1fbb();return a12_0x1047=function(_0x104749,_0x1882cb){_0x104749=_0x104749-0x1aa;let _0x20df50=_0x1fbbce[_0x104749];return _0x20df50;},a12_0x1047(_0x165ceb,_0x5c48fc);}const fs=require('fs'),exceljs=require(a12_0x578478(0x1b2)),koasend=require(a12_0x578478(0x1ad)),core_1=require(a12_0x578478(0x1be));let ExcelService=class ExcelService{async[a12_0x578478(0x1b7)](_0x436c21,_0x1b0fb3,_0x376c7b=[0x0]){const _0x33fe2d=a12_0x578478;var _0x320548,_0x301323;const _0xa69293=new exceljs['Workbook'](),_0x334695=[];let _0x581740=_0x436c21[_0x33fe2d(0x1d6)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x581740===null||_0x581740===void 0x0?void 0x0:_0x581740[_0x33fe2d(0x1b0)]('/'))&&(_0x581740=this[_0x33fe2d(0x1b5)]['getAppDir']()+'/'+_0x581740);try{await _0xa69293[_0x33fe2d(0x1d2)][_0x33fe2d(0x1e4)](_0x581740);}catch(_0x66e98){return console[_0x33fe2d(0x1b4)](_0x33fe2d(0x1af)+_0x581740+_0x33fe2d(0x1f0)),_0x334695;}for(const _0xdcd587 of _0x376c7b){const _0xd93284=lodash[_0x33fe2d(0x1e1)](_0xdcd587)?((_0x320548=_0xa69293[_0x33fe2d(0x1b3)])===null||_0x320548===void 0x0?void 0x0:_0x320548[_0xdcd587])||undefined:_0xa69293['getWorksheet'](_0xdcd587);if(_0xd93284){var _0x1c89cd=0x1;const _0x148419=_0xd93284[_0x33fe2d(0x1cb)](0x1),_0x5b98fe=await new Promise(_0x2dd27c=>{const _0x14e417=_0x33fe2d,_0x5ea00a={};_0x148419[_0x14e417(0x1b1)]((_0x305c8b,_0x263f91)=>{const _0x42566f=_0x14e417;for(const _0x1a4123 of _0x1b0fb3){if(_0x305c8b[_0x42566f(0x1c1)]==_0x1a4123[_0x42566f(0x1dc)])_0x1c89cd=0x2,_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]]={'header':_0x305c8b['col'],'handler':_0x1a4123[_0x42566f(0x1cc)]};else{if(!_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]])try{const _0x3ecdfa=_0x148419[_0x42566f(0x1bc)](_0x1a4123[_0x42566f(0x1dc)]);_0x3ecdfa&&(_0x5ea00a[_0x1a4123[_0x42566f(0x1e0)]]={'header':_0x3ecdfa[_0x42566f(0x1e8)],'handler':_0x1a4123[_0x42566f(0x1cc)]});}catch{}}}_0x148419[_0x42566f(0x1c6)]==_0x263f91&&_0x2dd27c(_0x5ea00a);});});for(const _0x31b4a8 of _0xd93284[_0x33fe2d(0x1c4)](_0x1c89cd,_0xd93284[_0x33fe2d(0x1d7)])){const _0x505b37={};for(const _0x4d24d3 in _0x5b98fe){if(_0x5b98fe[_0x4d24d3][_0x33fe2d(0x1dc)]){const _0x3b8119=_0x31b4a8[_0x33fe2d(0x1bc)](_0x5b98fe[_0x4d24d3][_0x33fe2d(0x1dc)]);typeof((_0x301323=_0x5b98fe[_0x4d24d3])===null||_0x301323===void 0x0?void 0x0:_0x301323[_0x33fe2d(0x1cc)])==_0x33fe2d(0x1da)?_0x505b37[_0x4d24d3]=await _0x5b98fe[_0x4d24d3][_0x33fe2d(0x1cc)]((_0x3b8119===null||_0x3b8119===void 0x0?void 0x0:_0x3b8119[_0x33fe2d(0x1c8)]())||'',_0x3b8119[_0x33fe2d(0x1ce)]):_0x505b37[_0x4d24d3]=(_0x3b8119===null||_0x3b8119===void 0x0?void 0x0:_0x3b8119[_0x33fe2d(0x1c8)]())||'';}}Object[_0x33fe2d(0x1db)](_0x505b37)[_0x33fe2d(0x1d3)]>0x0&&_0x334695[_0x33fe2d(0x1ab)](_0x505b37);}}}return _0x334695;}async[a12_0x578478(0x1d8)](_0x1ea8ef,_0x2d5fe4,_0x59bad9,_0x50951b='public/xlsx'){const _0x17f3e0=a12_0x578478;var _0x370544,_0x9a1411;const _0x1775f9=new exceljs[(_0x17f3e0(0x1b6))](),_0x232a03={},_0x52ec18=[],_0x4a5619=_0x1775f9[_0x17f3e0(0x1e5)](_0x17f3e0(0x1ec),{'views':[{'state':_0x17f3e0(0x1c5),'xSplit':0x1}]});for(const _0x1476cb in _0x2d5fe4){_0x232a03[_0x2d5fe4[_0x1476cb]['key']]=_0x2d5fe4[_0x1476cb][_0x17f3e0(0x1dc)],_0x52ec18[_0x17f3e0(0x1ab)]({'header':_0x2d5fe4[_0x1476cb][_0x17f3e0(0x1dc)],'key':(_0x370544=_0x2d5fe4[_0x1476cb])===null||_0x370544===void 0x0?void 0x0:_0x370544[_0x17f3e0(0x1e0)][_0x17f3e0(0x1d6)](/\./g,'_')});}_0x4a5619[_0x17f3e0(0x1df)]=_0x52ec18;for(const _0xc9c14e of _0x59bad9){const _0x55cdc5={};for(const _0x52bceb in _0x2d5fe4){typeof((_0x9a1411=_0x2d5fe4[_0x52bceb])===null||_0x9a1411===void 0x0?void 0x0:_0x9a1411['handler'])==_0x17f3e0(0x1da)?_0x55cdc5[_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)]['replace'](/\./g,'_')]=await _0x2d5fe4[_0x52bceb][_0x17f3e0(0x1cc)](_0xc9c14e):_0x55cdc5[_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)]['replace'](/\./g,'_')]=lodash[_0x17f3e0(0x1d0)](_0xc9c14e,_0x2d5fe4[_0x52bceb][_0x17f3e0(0x1e0)],'');}_0x4a5619[_0x17f3e0(0x1c9)](_0x55cdc5);}let _0x179312='';const _0xaebb08=_0x1ea8ef+'-'+lodash[_0x17f3e0(0x1e7)](0x2710,0x1869f)+_0x17f3e0(0x1ee);if(_0x50951b&&_0x50951b[_0x17f3e0(0x1b0)]('/'))_0x179312=''+_0x50951b;else _0x50951b&&!_0x50951b[_0x17f3e0(0x1b0)]('/')&&!_0x50951b[_0x17f3e0(0x1b0)]('\x5c')?_0x179312=this[_0x17f3e0(0x1b5)][_0x17f3e0(0x1eb)]()+'/'+_0x50951b:_0x179312=this[_0x17f3e0(0x1b5)][_0x17f3e0(0x1eb)]()+_0x17f3e0(0x1c3);return(_0x179312[_0x17f3e0(0x1e2)]('/')||_0x179312[_0x17f3e0(0x1e2)]('\x5c'))&&(_0x179312=_0x179312[_0x17f3e0(0x1ed)](0x0,_0x179312['length']-0x1)),_0x179312=_0x179312[_0x17f3e0(0x1d6)](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/'),!fs[_0x17f3e0(0x1aa)](_0x179312)&&fs[_0x17f3e0(0x1dd)](_0x179312,{'recursive':!![]}),await _0x1775f9['xlsx'][_0x17f3e0(0x1ca)]((_0x179312+'/'+_0xaebb08)['replace'](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/')),{'filename':_0xaebb08,'filepath':(_0x179312['substring']((''+this['app'][_0x17f3e0(0x1eb)]())[_0x17f3e0(0x1d3)])+'/'+_0xaebb08)[_0x17f3e0(0x1d6)](/(\\|\/)/g,'/')[_0x17f3e0(0x1d6)](/\/{2,}/g,'/')};}async[a12_0x578478(0x1d1)](_0x4fbbff,_0x63bfe7){return await koasend(_0x4fbbff,''+_0x63bfe7);}};__decorate([(0x0,core_1[a12_0x578478(0x1cd)])(),__metadata(a12_0x578478(0x1ae),Object)],ExcelService['prototype'],a12_0x578478(0x1b5),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x578478(0x1c0)])(),(0x0,core_1['Scope'])(core_1[a12_0x578478(0x1de)][a12_0x578478(0x1bb)])],ExcelService),exports[a12_0x578478(0x1ef)]=ExcelService;function a12_0x1fbb(){const _0x4de3f1=['length','1306194svFsJp','getOwnPropertyDescriptor','replace','rowCount','export','211212qSjtLY','function','keys','header','mkdirSync','ScopeEnum','columns','key','isNumber','endsWith','1028187RKhyYj','readFile','addWorksheet','2893XqbRWQ','random','col','7VNnUnb','__decorate','getAppDir','Sheet\x201','substring','.xlsx','ExcelService','\x20is\x20read\x20fail','17950iUcYTq','4tQcEVq','existsSync','push','metadata','koa-send','design:type','Api\x20Excel\x20Error:\x20','startsWith','eachCell','exceljs','worksheets','log','app','Workbook','parse','__metadata','object','50066cNehCO','Singleton','getCell','decorate','@midwayjs/core','defineProperty','Provide','value','2800045BlTLPC','/public/xlsx','findRows','frozen','cellCount','5uPVPki','toString','addRow','writeFile','getRow','handler','App','model','6243000hnQobb','get','download','xlsx'];a12_0x1fbb=function(){return _0x4de3f1;};return a12_0x1fbb();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a13_0x10b03e=a13_0x13eb;(function(_0x4bbc59,_0x1c8577){var _0x4448d7=a13_0x13eb,_0x48b364=_0x4bbc59();while(!![]){try{var _0x51d96f=parseInt(_0x4448d7(0xa1))/0x1+-parseInt(_0x4448d7(0xa7))/0x2*(-parseInt(_0x4448d7(0xa5))/0x3)+-parseInt(_0x4448d7(0xa2))/0x4+parseInt(_0x4448d7(0xad))/0x5+-parseInt(_0x4448d7(0xa3))/0x6+parseInt(_0x4448d7(0xa6))/0x7+-parseInt(_0x4448d7(0x9f))/0x8;if(_0x51d96f===_0x1c8577)break;else _0x48b364['push'](_0x48b364['shift']());}catch(_0x3d5f5d){_0x48b364['push'](_0x48b364['shift']());}}}(a13_0x5df6,0xca3ed));function a13_0x13eb(_0x3ecdce,_0x1ffa93){var _0x5df649=a13_0x5df6();return a13_0x13eb=function(_0x13eb39,_0x1b27af){_0x13eb39=_0x13eb39-0x9f;var _0x20a6dd=_0x5df649[_0x13eb39];return _0x20a6dd;},a13_0x13eb(_0x3ecdce,_0x1ffa93);}Object[a13_0x10b03e(0xa8)](exports,a13_0x10b03e(0xaa),{'value':!![]}),exports[a13_0x10b03e(0xae)]=exports['APPSCONFIG_KEY']=exports[a13_0x10b03e(0xaf)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x10b03e(0xa9)]=a13_0x10b03e(0xac),exports['ACTION_ROUTE_KEY']=a13_0x10b03e(0xa0),exports[a13_0x10b03e(0xa4)]=a13_0x10b03e(0xab);function a13_0x5df6(){var _0xb4cf7c=['ACTION_KEY','__esModule','anncic-api:apps:config','anncic-api:action','7700365ZQNscT','AppsConfigTmp','ACTION_ROUTE_KEY','18616928zciCbj','anncic-api:action:route','866767cgPxWg','1373188EFKoEZ','941622oYHUFm','APPSCONFIG_KEY','57ihnKcq','1731387rvQVlF','105428IQoiWM','defineProperty'];a13_0x5df6=function(){return _0xb4cf7c;};return a13_0x5df6();}class AppsConfigTmp{}exports[a13_0x10b03e(0xae)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0xc3a6b8=a14_0x16e7;function a14_0x16e7(_0x287474,_0x46ac59){var _0x1c22a5=a14_0x1c22();return a14_0x16e7=function(_0x16e7c6,_0x58d081){_0x16e7c6=_0x16e7c6-0x8f;var _0x2ef79e=_0x1c22a5[_0x16e7c6];return _0x2ef79e;},a14_0x16e7(_0x287474,_0x46ac59);}(function(_0x5c5d74,_0x3d95fd){var _0x3bb05e=a14_0x16e7,_0x356d38=_0x5c5d74();while(!![]){try{var _0x26b4a9=parseInt(_0x3bb05e(0xab))/0x1*(-parseInt(_0x3bb05e(0xb1))/0x2)+parseInt(_0x3bb05e(0xa3))/0x3+parseInt(_0x3bb05e(0xa4))/0x4*(parseInt(_0x3bb05e(0xaa))/0x5)+parseInt(_0x3bb05e(0xaf))/0x6*(-parseInt(_0x3bb05e(0x98))/0x7)+-parseInt(_0x3bb05e(0xb0))/0x8+parseInt(_0x3bb05e(0x8f))/0x9+parseInt(_0x3bb05e(0xa9))/0xa;if(_0x26b4a9===_0x3d95fd)break;else _0x356d38['push'](_0x356d38['shift']());}catch(_0x344836){_0x356d38['push'](_0x356d38['shift']());}}}(a14_0x1c22,0xb8f69));function a14_0x1c22(){var _0x43bbf4=['2162PIBFee','min','metadata','defineProperty','8777259jAFTby','__esModule','Rule','design:type','length','排序方式','_size','decorate','object','734447qhnrrB','trim','prototype','function','number','_isreverse','__decorate','__metadata','valid','integer','RuleType','2645844AapLoZ','757136ukjCOA','@anncic-api/validator','分页数量','PageDTO','1:是;0:否','10998630PdPPlP','20foTmbP','942noRQea','_page','_order','string','78JhwDvm','4594512tsagrI'];a14_0x1c22=function(){return _0x43bbf4;};return a14_0x1c22();}var __decorate=this&&this[a14_0xc3a6b8(0x9e)]||function(_0x20d077,_0x20eac9,_0x4beca2,_0x2f98e7){var _0x538840=a14_0xc3a6b8,_0x50c2d2=arguments['length'],_0x2718f7=_0x50c2d2<0x3?_0x20eac9:_0x2f98e7===null?_0x2f98e7=Object['getOwnPropertyDescriptor'](_0x20eac9,_0x4beca2):_0x2f98e7,_0x23b725;if(typeof Reflect===_0x538840(0x97)&&typeof Reflect[_0x538840(0x96)]===_0x538840(0x9b))_0x2718f7=Reflect[_0x538840(0x96)](_0x20d077,_0x20eac9,_0x4beca2,_0x2f98e7);else{for(var _0x430e98=_0x20d077[_0x538840(0x93)]-0x1;_0x430e98>=0x0;_0x430e98--)if(_0x23b725=_0x20d077[_0x430e98])_0x2718f7=(_0x50c2d2<0x3?_0x23b725(_0x2718f7):_0x50c2d2>0x3?_0x23b725(_0x20eac9,_0x4beca2,_0x2718f7):_0x23b725(_0x20eac9,_0x4beca2))||_0x2718f7;}return _0x50c2d2>0x3&&_0x2718f7&&Object[_0x538840(0xb4)](_0x20eac9,_0x4beca2,_0x2718f7),_0x2718f7;},__metadata=this&&this[a14_0xc3a6b8(0x9f)]||function(_0x58d8ff,_0x110771){var _0x1acd31=a14_0xc3a6b8;if(typeof Reflect===_0x1acd31(0x97)&&typeof Reflect[_0x1acd31(0xb3)]===_0x1acd31(0x9b))return Reflect['metadata'](_0x58d8ff,_0x110771);};Object[a14_0xc3a6b8(0xb4)](exports,a14_0xc3a6b8(0x90),{'value':!![]}),exports[a14_0xc3a6b8(0xa7)]=void 0x0;const validator_1=require(a14_0xc3a6b8(0xa5));class PageDTO{}__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])('分页',validator_1['RuleType'][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xb2)](0x1),'第一页为1,第二页为2'),__metadata(a14_0xc3a6b8(0x92),Number)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0xac),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])(a14_0xc3a6b8(0xa6),validator_1['RuleType'][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xb2)](0x1)),__metadata(a14_0xc3a6b8(0x92),Number)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0x95),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])(a14_0xc3a6b8(0x94),validator_1[a14_0xc3a6b8(0xa2)][a14_0xc3a6b8(0xae)]()[a14_0xc3a6b8(0x99)]()),__metadata('design:type',String)],PageDTO[a14_0xc3a6b8(0x9a)],a14_0xc3a6b8(0xad),void 0x0),__decorate([(0x0,validator_1[a14_0xc3a6b8(0x91)])('是否倒序',validator_1[a14_0xc3a6b8(0xa2)][a14_0xc3a6b8(0x9c)]()[a14_0xc3a6b8(0xa1)]()[a14_0xc3a6b8(0xa0)](0x0,0x1),a14_0xc3a6b8(0xa8)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0xc3a6b8(0x9d),void 0x0),exports[a14_0xc3a6b8(0xa7)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
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.18",
|
|
21
|
+
"@anncic-api/core": "^1.4.18",
|
|
22
|
+
"@anncic-api/event": "^1.4.18",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.18",
|
|
24
|
+
"@anncic-api/validator": "^1.4.18",
|
|
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.18",
|
|
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": "f9a781ab903291fd6c33e03f836445575024623b"
|
|
43
43
|
}
|