anncic-api 1.4.22 → 1.4.24
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/index.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x3328(){var _0x559336=['4tIAROm','__esModule','default','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','xml','json','16795593cCMVHN','592EMtqJZ','appDir','9525816ZxeTjI','name','1647fABFbx','7423896KbsmqA','20mb','7840455nWOPPH','2343675GJrCTM','text','form','2046185oFAlZL'];a0_0x3328=function(){return _0x559336;};return a0_0x3328();}var a0_0x4801f0=a0_0x520e;(function(_0x222e82,_0x2e1634){var _0x63a813=a0_0x520e,_0x9b43dd=_0x222e82();while(!![]){try{var _0x559b6e=-parseInt(_0x63a813(0x141))/0x1*(-parseInt(_0x63a813(0x13d))/0x2)+parseInt(_0x63a813(0x145))/0x3+-parseInt(_0x63a813(0x149))/0x4*(-parseInt(_0x63a813(0x148))/0x5)+-parseInt(_0x63a813(0x142))/0x6+parseInt(_0x63a813(0x144))/0x7+parseInt(_0x63a813(0x13f))/0x8+-parseInt(_0x63a813(0x13c))/0x9;if(_0x559b6e===_0x2e1634)break;else _0x9b43dd['push'](_0x9b43dd['shift']());}catch(_0x4fdaf0){_0x9b43dd['push'](_0x9b43dd['shift']());}}}(a0_0x3328,0xd8219));function a0_0x520e(_0x455d0a,_0x4548da){var _0x3328e2=a0_0x3328();return a0_0x520e=function(_0x520eba,_0x5c132f){_0x520eba=_0x520eba-0x136;var _0x22b056=_0x3328e2[_0x520eba];return _0x22b056;},a0_0x520e(_0x455d0a,_0x4548da);}Object['defineProperty'](exports,a0_0x4801f0(0x136),{'value':!![]}),exports[a0_0x4801f0(0x137)]=_0x4d939b=>{var _0xf001fa=a0_0x4801f0;return{'apitest':!![],'keys':_0x4d939b[_0xf001fa(0x140)],'anncicapi':{'timeout':0x1388,'password':_0xf001fa(0x138),'devices':{'DEFAULT':{'secret':_0xf001fa(0x139),'checkcode':_0xf001fa(0x139)}}},'bodyParser':{'enableTypes':[_0xf001fa(0x13b),_0xf001fa(0x147),_0xf001fa(0x146),_0xf001fa(0x13a)],'formLimit':_0xf001fa(0x143),'jsonLimit':'20mb','textLimit':'20mb','xmlLimit':'20mb'},'upload':{'tmpdir':_0x4d939b[_0xf001fa(0x13e)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x2a58ff=a1_0x563d;(function(_0x4f99bb,_0xa4abc8){var _0xacf0a4=a1_0x563d,_0x16bd72=_0x4f99bb();while(!![]){try{var _0x479fdb=parseInt(_0xacf0a4(0x196))/0x1+-parseInt(_0xacf0a4(0x194))/0x2+-parseInt(_0xacf0a4(0x197))/0x3*(-parseInt(_0xacf0a4(0x192))/0x4)+-parseInt(_0xacf0a4(0x18f))/0x5+parseInt(_0xacf0a4(0x18c))/0x6+parseInt(_0xacf0a4(0x18d))/0x7*(-parseInt(_0xacf0a4(0x18e))/0x8)+parseInt(_0xacf0a4(0x191))/0x9;if(_0x479fdb===_0xa4abc8)break;else _0x16bd72['push'](_0x16bd72['shift']());}catch(_0x3b74fd){_0x16bd72['push'](_0x16bd72['shift']());}}}(a1_0x26fa,0x86a82));function a1_0x26fa(){var _0x460db4=['2034628mVxpFS','defineProperty','902873ktSSfK','2934ONOBvW','4395834hnOeON','7VspYPx','4255352vDlrpo','5274245xwOjHh','__esModule','6305040StVojb','3352gbiVaj','default'];a1_0x26fa=function(){return _0x460db4;};return a1_0x26fa();}function a1_0x563d(_0x4d6dd1,_0x27b6a6){var _0x26fae3=a1_0x26fa();return a1_0x563d=function(_0x563d8c,_0x3b03d9){_0x563d8c=_0x563d8c-0x18c;var _0x2f554c=_0x26fae3[_0x563d8c];return _0x2f554c;},a1_0x563d(_0x4d6dd1,_0x27b6a6);}Object[a1_0x2a58ff(0x195)](exports,a1_0x2a58ff(0x190),{'value':!![]}),exports[a1_0x2a58ff(0x193)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x537052=a2_0xd545;function a2_0x1bec(){const _0x21a36e=['filterConfig','18529njocXa','getConfiguration','getBaseDir','-log','anncic-api','statSync','@anncic-api/cache','checksign','@midwayjs/i18n','defineProperty','./config/config.default','design:type','request','checkConfigKeys','Inject','headers','HEADERS_SIGNATURE','./config/config.production','isFunction','upload','866196xrjDzq','object','addObject','REQUEST_OBJ_CTX_KEY','toLowerCase','requestContext','@anncic-api/core','isString','/apps','1342888YZhdGi','MidwayConfigService','MidwayApplicationManager','_matchedRoute','loggerConfig','isDirectory','target','dirs','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','clients','1280035YFrJsv','environment','application','function','prototype','352ioLGXM','mkdirSync','文件不存在','readdirSync','.log','devices','anncicapi','apimit','query','log','string','@midwayjs/koa','handlerActionRoute','./types/action','koa-send','hanlderApplications','CustomConfiguration','body','length','676561lZSmkp','4579902egfgWD','tmpdir','1063912lHdQZa','getAppDir','/apps/','staticFile','decorate','@midwayjs/upload','onReady','ApiService','@midwayjs/cross-domain','get','defaultsDeep','method','defineProperties','/runtime','Anncic-api\x20static-file\x20:\x20mkdir\x20','koa','isClass','assign','__decorate','@anncic-api/typeorm','MidwayEnvironmentService','MidwayDecoratorService','app','keys','__esModule','args','dir','getAsync','Types','3RVbKBT','context','config','./service/ApiService','@midwayjs/core','@midwayjs/static-file','existsSync','isNull','ACTION_ROUTE_KEY','device','intercept','midwayLogger','default','getApplications','Configuration','decorator','metadata'];a2_0x1bec=function(){return _0x21a36e;};return a2_0x1bec();}(function(_0xccfbfb,_0x212696){const _0x588890=a2_0xd545,_0x23322d=_0xccfbfb();while(!![]){try{const _0x4fa234=parseInt(_0x588890(0x143))/0x1+parseInt(_0x588890(0x146))/0x2+-parseInt(_0x588890(0x163))/0x3*(parseInt(_0x588890(0x121))/0x4)+parseInt(_0x588890(0x12b))/0x5+-parseInt(_0x588890(0x118))/0x6+parseInt(_0x588890(0x175))/0x7*(-parseInt(_0x588890(0x130))/0x8)+-parseInt(_0x588890(0x144))/0x9;if(_0x4fa234===_0x212696)break;else _0x23322d['push'](_0x23322d['shift']());}catch(_0x1f30ee){_0x23322d['push'](_0x23322d['shift']());}}}(a2_0x1bec,0x57ab2));var __decorate=this&&this[a2_0x537052(0x158)]||function(_0x4fba17,_0x2501bd,_0x52df14,_0x22547e){const _0x3440e3=a2_0x537052;var _0x217002=arguments['length'],_0x47cd89=_0x217002<0x3?_0x2501bd:_0x22547e===null?_0x22547e=Object['getOwnPropertyDescriptor'](_0x2501bd,_0x52df14):_0x22547e,_0x164a5c;if(typeof Reflect===_0x3440e3(0x119)&&typeof Reflect[_0x3440e3(0x14a)]===_0x3440e3(0x12e))_0x47cd89=Reflect[_0x3440e3(0x14a)](_0x4fba17,_0x2501bd,_0x52df14,_0x22547e);else{for(var _0x1d9f05=_0x4fba17['length']-0x1;_0x1d9f05>=0x0;_0x1d9f05--)if(_0x164a5c=_0x4fba17[_0x1d9f05])_0x47cd89=(_0x217002<0x3?_0x164a5c(_0x47cd89):_0x217002>0x3?_0x164a5c(_0x2501bd,_0x52df14,_0x47cd89):_0x164a5c(_0x2501bd,_0x52df14))||_0x47cd89;}return _0x217002>0x3&&_0x47cd89&&Object[_0x3440e3(0x17e)](_0x2501bd,_0x52df14,_0x47cd89),_0x47cd89;},__metadata=this&&this['__metadata']||function(_0x42f2d7,_0xf9375d){const _0x23b86c=a2_0x537052;if(typeof Reflect===_0x23b86c(0x119)&&typeof Reflect[_0x23b86c(0x173)]===_0x23b86c(0x12e))return Reflect[_0x23b86c(0x173)](_0x42f2d7,_0xf9375d);};Object[a2_0x537052(0x17e)](exports,a2_0x537052(0x15e),{'value':!![]}),exports[a2_0x537052(0x140)]=void 0x0;const core_1=require(a2_0x537052(0x167)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x537052(0x166)),action_1=require(a2_0x537052(0x13d)),fs=require('fs'),koasend=require(a2_0x537052(0x13e)),koa=require(a2_0x537052(0x13b)),i18n=require(a2_0x537052(0x17d)),upload=require(a2_0x537052(0x14b)),staticFile=require(a2_0x537052(0x168)),crossDomain=require(a2_0x537052(0x14e)),ConfigDefault=require(a2_0x537052(0x17f)),ConfigProduction=require(a2_0x537052(0x186)),anncic=require(a2_0x537052(0x11e)),anncicCache=require(a2_0x537052(0x17b)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x537052(0x159)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x537052(0x14c)](){const _0x12972c=a2_0x537052;await this[_0x12972c(0x174)](),await this[_0x12972c(0x125)](),await this['checkConfigKeys'](),await this[_0x12972c(0x13c)](),await this[_0x12972c(0x13f)]();}async[a2_0x537052(0x182)](){}async[a2_0x537052(0x13c)](){const _0x432bdd=a2_0x537052,_0xedec0c=this[_0x432bdd(0x165)][_0x432bdd(0x176)]();this[_0x432bdd(0x172)]['registerMethodHandler'](action_1[_0x432bdd(0x16b)],_0x4ff92c=>{const _0x5a3e0d=_0x432bdd,_0x7efd3=_0x4ff92c[_0x5a3e0d(0x173)];return{'before':async _0xeb7f5d=>{const _0x180a25=_0x5a3e0d;var _0x657816,_0x422918;const _0x40fed2=(_0x657816=_0xeb7f5d===null||_0xeb7f5d===void 0x0?void 0x0:_0xeb7f5d[_0x180a25(0x127)])===null||_0x657816===void 0x0?void 0x0:_0x657816[core_2[_0x180a25(0x11b)]];if(_0x40fed2&&(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x180a25(0x137)])){if(!this['ApiService'][_0x180a25(0x17c)]((_0x422918=_0x40fed2===null||_0x40fed2===void 0x0?void 0x0:_0x40fed2[_0x180a25(0x181)])===null||_0x422918===void 0x0?void 0x0:_0x422918[_0x180a25(0x184)]))throw new AnnError(ApiError_1['ApiError'][_0x180a25(0x185)]);}},'around':async _0x234c72=>{const _0x424b4a=_0x5a3e0d;var _0x1d37ad,_0x4706ab,_0xdbafe4,_0x2c2d3,_0x553c26;const _0x105a00=(_0x1d37ad=_0x234c72===null||_0x234c72===void 0x0?void 0x0:_0x234c72[_0x424b4a(0x127)])===null||_0x1d37ad===void 0x0?void 0x0:_0x1d37ad[core_2[_0x424b4a(0x11b)]];if(_0x105a00&&(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x424b4a(0x137)])&&((_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3['intercept'])||typeof(_0x7efd3===null||_0x7efd3===void 0x0?void 0x0:_0x7efd3[_0x424b4a(0x16d)])=='undefined')){if(((_0x4706ab=_0x105a00[_0x424b4a(0x184)])===null||_0x4706ab===void 0x0?void 0x0:_0x4706ab['device'])&&((_0x553c26=(_0x2c2d3=(_0xdbafe4=_0xedec0c===null||_0xedec0c===void 0x0?void 0x0:_0xedec0c['anncicapi'])===null||_0xdbafe4===void 0x0?void 0x0:_0xdbafe4['devices'])===null||_0x2c2d3===void 0x0?void 0x0:_0x2c2d3[_0x105a00[_0x424b4a(0x184)][_0x424b4a(0x16c)]])===null||_0x553c26===void 0x0?void 0x0:_0x553c26[_0x424b4a(0x16d)])){const _0x407a38=Array['isArray'](_0xedec0c[_0x424b4a(0x136)][_0x424b4a(0x135)][_0x105a00['headers']['device']]['intercept'])?_0xedec0c[_0x424b4a(0x136)][_0x424b4a(0x135)][_0x105a00[_0x424b4a(0x184)][_0x424b4a(0x16c)]]['intercept']:[_0xedec0c['anncicapi'][_0x424b4a(0x135)][_0x105a00['headers'][_0x424b4a(0x16c)]][_0x424b4a(0x16d)]];for(const _0x383156 of _0x407a38){if(core_1[_0x424b4a(0x162)][_0x424b4a(0x156)](_0x383156)||typeof _0x383156==_0x424b4a(0x13a)){const _0x36faee=await _0x105a00[_0x424b4a(0x11d)][_0x424b4a(0x161)](_0x383156);typeof(_0x36faee===null||_0x36faee===void 0x0?void 0x0:_0x36faee['handler'])=='function'&&await _0x36faee['handler'](typeof(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x151)])==_0x424b4a(0x13a)&&(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)])?_0x105a00[_0x424b4a(0x151)][_0x424b4a(0x11c)]()+'@'+(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)]):undefined,_0x105a00,_0x7efd3);}else core_1[_0x424b4a(0x162)][_0x424b4a(0x187)](_0x383156)&&await _0x383156(typeof(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x151)])==_0x424b4a(0x13a)&&(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00['_matchedRoute'])?_0x105a00['method'][_0x424b4a(0x11c)]()+'@'+(_0x105a00===null||_0x105a00===void 0x0?void 0x0:_0x105a00[_0x424b4a(0x124)]):undefined,_0x105a00,_0x7efd3);}}}return await _0x234c72['proceed'](..._0x234c72[_0x424b4a(0x15f)]);},'afterThrow':(_0x4e3568,_0x1a98ea)=>{throw _0x1a98ea;}};});}async[a2_0x537052(0x13f)](){const _0xb80dba=a2_0x537052;this[_0xb80dba(0x12d)][_0xb80dba(0x170)]([_0xb80dba(0x155)])['forEach'](_0x2f0acc=>{const _0x1daa35=_0xb80dba;(_0x2f0acc===null||_0x2f0acc===void 0x0?void 0x0:_0x2f0acc[_0x1daa35(0x164)])&&Object[_0x1daa35(0x152)](_0x2f0acc[_0x1daa35(0x164)],{'ok':{'value':function(_0x5a104c,_0xe83637,_0xb16c2f=0x0){return{'code':_0xb16c2f,'data':_0x5a104c,'extra':_0xe83637};}},'input':{'value':function(_0x141dee,_0x303001){const _0x159a26=_0x1daa35;var _0x2c400d;const _0x1f1c07=lodash[_0x159a26(0x150)]({},this[_0x159a26(0x181)]['body']||this[_0x159a26(0x181)][((_0x2c400d=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x2c400d===void 0x0?void 0x0:_0x2c400d['key'])||_0x159a26(0x141)]||{},this[_0x159a26(0x181)][_0x159a26(0x138)]||{});return _0x141dee?lodash[_0x159a26(0x14f)](_0x1f1c07,_0x141dee,_0x303001):_0x1f1c07;}},'when':{'value':async function(_0x48c13b,_0x32b91b){const _0xf436f0=_0x1daa35,_0x3659aa=this['input'](_0x48c13b,null);if(!lodash[_0xf436f0(0x16a)](_0x3659aa))return await _0x32b91b(_0x3659aa);}},'only':{'value':function(_0x33b231){const _0x2e298e=_0x1daa35,_0x3c7192={};for(let _0x51029c=0x0;_0x51029c<_0x33b231[_0x2e298e(0x142)];_0x51029c++){lodash['isArray'](_0x33b231[_0x51029c])&&_0x33b231[_0x51029c][_0x2e298e(0x142)]>0x0&&lodash[_0x2e298e(0x11f)](_0x33b231[_0x51029c][0x0])&&(_0x3c7192[_0x33b231[_0x51029c][0x0]]=this['input'](_0x33b231[_0x51029c][0x0],_0x33b231[_0x51029c]['length']>0x1?_0x33b231[_0x51029c][0x1]:null));}return _0x3c7192;}},'koasend':{'value':function(_0x20c30c){const _0xc0fdfe=_0x1daa35;if(!fs['existsSync'](this[_0xc0fdfe(0x15c)]['getAppDir']()+'/'+_0x20c30c))return _0xc0fdfe(0x132);return koasend(this,_0x20c30c);}}});});}async[a2_0x537052(0x125)](){const _0x34dbdc=a2_0x537052;var _0x41a011,_0x33f03a;if(fs[_0x34dbdc(0x169)](this[_0x34dbdc(0x15c)][_0x34dbdc(0x177)]()+'/apps')&&fs[_0x34dbdc(0x17a)](this[_0x34dbdc(0x15c)][_0x34dbdc(0x177)]()+_0x34dbdc(0x120))[_0x34dbdc(0x126)]()){const _0x317ef2=this[_0x34dbdc(0x165)][_0x34dbdc(0x176)](),_0x473880=((_0x41a011=_0x317ef2===null||_0x317ef2===void 0x0?void 0x0:_0x317ef2[_0x34dbdc(0x16e)])===null||_0x41a011===void 0x0?void 0x0:_0x41a011[_0x34dbdc(0x12a)])||{};for(const _0x5cb7f0 of fs[_0x34dbdc(0x133)](this['app'][_0x34dbdc(0x177)]()+_0x34dbdc(0x120))){if(!fs[_0x34dbdc(0x17a)](this[_0x34dbdc(0x15c)]['getBaseDir']()+_0x34dbdc(0x148)+_0x5cb7f0)[_0x34dbdc(0x126)]())continue;if(_0x473880===null||_0x473880===void 0x0?void 0x0:_0x473880[_0x5cb7f0])continue;_0x473880[_0x5cb7f0]=Object[_0x34dbdc(0x157)]({},((_0x33f03a=_0x317ef2===null||_0x317ef2===void 0x0?void 0x0:_0x317ef2[_0x34dbdc(0x16e)])===null||_0x33f03a===void 0x0?void 0x0:_0x33f03a[_0x34dbdc(0x16f)])||{'maxSize':'1m','dir':this['app'][_0x34dbdc(0x147)]()+_0x34dbdc(0x153)},{'enableJSON':!![],'enableConsole':this[_0x34dbdc(0x12c)]['isDevelopmentEnvironment'](),'fileLogName':_0x5cb7f0+_0x34dbdc(0x134),'dir':this[_0x34dbdc(0x15c)]['getAppDir']()+'/runtime/apps-'+_0x5cb7f0+_0x34dbdc(0x178)});}Object[_0x34dbdc(0x15d)](_0x473880)[_0x34dbdc(0x142)]>0x0&&(!_0x317ef2[_0x34dbdc(0x16e)]&&(_0x317ef2[_0x34dbdc(0x16e)]={'default':{'maxSize':'1m','dir':this[_0x34dbdc(0x15c)][_0x34dbdc(0x147)]()+_0x34dbdc(0x153)}}),_0x317ef2[_0x34dbdc(0x16e)][_0x34dbdc(0x12a)]=_0x473880),this['config'][_0x34dbdc(0x11a)](_0x317ef2);}}async['filterConfig'](){const _0x2b6533=a2_0x537052;var _0x255083,_0xc606e0,_0x17780a,_0x3578b6,_0x2f3eaf,_0x33457b;const _0x4acc72=this['config'][_0x2b6533(0x176)]();((_0xc606e0=(_0x255083=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72['anncicapi'])===null||_0x255083===void 0x0?void 0x0:_0x255083[_0x2b6533(0x135)])===null||_0xc606e0===void 0x0?void 0x0:_0xc606e0['DEFAULT'])&&Object[_0x2b6533(0x15d)](_0x4acc72['anncicapi']['devices'])[_0x2b6533(0x142)]>0x1&&delete _0x4acc72[_0x2b6533(0x136)][_0x2b6533(0x135)]['DEFAULT'];if((_0x17780a=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72[_0x2b6533(0x149)])===null||_0x17780a===void 0x0?void 0x0:_0x17780a[_0x2b6533(0x128)])for(const _0x460e1d in _0x4acc72['staticFile'][_0x2b6533(0x128)]){((_0x3578b6=_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d])===null||_0x3578b6===void 0x0?void 0x0:_0x3578b6[_0x2b6533(0x160)])&&typeof((_0x2f3eaf=_0x4acc72['staticFile'][_0x2b6533(0x128)][_0x460e1d])===null||_0x2f3eaf===void 0x0?void 0x0:_0x2f3eaf[_0x2b6533(0x160)])==_0x2b6533(0x13a)&&!fs['existsSync'](_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d]['dir'])&&(fs['mkdirSync'](_0x4acc72[_0x2b6533(0x149)]['dirs'][_0x460e1d][_0x2b6533(0x160)],{'recursive':!![]}),console[_0x2b6533(0x139)](_0x2b6533(0x154)+_0x4acc72[_0x2b6533(0x149)][_0x2b6533(0x128)][_0x460e1d]['dir']));}((_0x33457b=_0x4acc72===null||_0x4acc72===void 0x0?void 0x0:_0x4acc72[_0x2b6533(0x117)])===null||_0x33457b===void 0x0?void 0x0:_0x33457b[_0x2b6533(0x145)])&&!fs[_0x2b6533(0x169)](_0x4acc72[_0x2b6533(0x117)][_0x2b6533(0x145)])&&(fs[_0x2b6533(0x131)](_0x4acc72['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x2b6533(0x129)+_0x4acc72[_0x2b6533(0x117)]['tmpdir'])),this['config'][_0x2b6533(0x11a)](_0x4acc72);}};function a2_0xd545(_0x4c6d4e,_0xa6211e){const _0x1beca2=a2_0x1bec();return a2_0xd545=function(_0xd54526,_0x385495){_0xd54526=_0xd54526-0x117;let _0x2ed515=_0x1beca2[_0xd54526];return _0x2ed515;},a2_0xd545(_0x4c6d4e,_0xa6211e);}__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x15c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x537052(0x180),core_2[a2_0x537052(0x122)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x165),void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata('design:type',core_2[a2_0x537052(0x15b)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x172),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x537052(0x180),core_2[a2_0x537052(0x123)])],CustomConfiguration[a2_0x537052(0x12f)],a2_0x537052(0x12d),void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata('design:type',core_2[a2_0x537052(0x15a)])],CustomConfiguration[a2_0x537052(0x12f)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x537052(0x183)])(),__metadata(a2_0x537052(0x180),ApiService_1[a2_0x537052(0x14d)])],CustomConfiguration[a2_0x537052(0x12f)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x537052(0x171)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x537052(0x179),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0xf9a6b8=a2_0x4a49;(function(_0x53cbc0,_0x5d3f71){const _0x459c95=a2_0x4a49,_0xe669d8=_0x53cbc0();while(!![]){try{const _0x2ee117=-parseInt(_0x459c95(0xea))/0x1+-parseInt(_0x459c95(0xde))/0x2*(parseInt(_0x459c95(0xeb))/0x3)+-parseInt(_0x459c95(0xe3))/0x4+-parseInt(_0x459c95(0xba))/0x5+-parseInt(_0x459c95(0xce))/0x6*(-parseInt(_0x459c95(0xc6))/0x7)+-parseInt(_0x459c95(0x101))/0x8*(parseInt(_0x459c95(0xdc))/0x9)+parseInt(_0x459c95(0xb1))/0xa*(parseInt(_0x459c95(0xc1))/0xb);if(_0x2ee117===_0x5d3f71)break;else _0xe669d8['push'](_0xe669d8['shift']());}catch(_0xa477bf){_0xe669d8['push'](_0xe669d8['shift']());}}}(a2_0x4e05,0x44d67));var __decorate=this&&this['__decorate']||function(_0x73747f,_0x3bb783,_0x4b5530,_0x464203){const _0x168bff=a2_0x4a49;var _0x2d2dff=arguments[_0x168bff(0xbd)],_0x391daf=_0x2d2dff<0x3?_0x3bb783:_0x464203===null?_0x464203=Object[_0x168bff(0xd7)](_0x3bb783,_0x4b5530):_0x464203,_0x48b92f;if(typeof Reflect===_0x168bff(0xcd)&&typeof Reflect[_0x168bff(0xcb)]==='function')_0x391daf=Reflect[_0x168bff(0xcb)](_0x73747f,_0x3bb783,_0x4b5530,_0x464203);else{for(var _0x39ac73=_0x73747f[_0x168bff(0xbd)]-0x1;_0x39ac73>=0x0;_0x39ac73--)if(_0x48b92f=_0x73747f[_0x39ac73])_0x391daf=(_0x2d2dff<0x3?_0x48b92f(_0x391daf):_0x2d2dff>0x3?_0x48b92f(_0x3bb783,_0x4b5530,_0x391daf):_0x48b92f(_0x3bb783,_0x4b5530))||_0x391daf;}return _0x2d2dff>0x3&&_0x391daf&&Object[_0x168bff(0xe4)](_0x3bb783,_0x4b5530,_0x391daf),_0x391daf;},__metadata=this&&this['__metadata']||function(_0x26ed7c,_0x1d9019){const _0x400a5d=a2_0x4a49;if(typeof Reflect===_0x400a5d(0xcd)&&typeof Reflect[_0x400a5d(0xfe)]===_0x400a5d(0x116))return Reflect['metadata'](_0x26ed7c,_0x1d9019);};function a2_0x4a49(_0x4d45fe,_0x54fd4d){const _0x4e0523=a2_0x4e05();return a2_0x4a49=function(_0x4a4975,_0x9926ac){_0x4a4975=_0x4a4975-0xac;let _0x380e5a=_0x4e0523[_0x4a4975];return _0x380e5a;},a2_0x4a49(_0x4d45fe,_0x54fd4d);}Object[a2_0xf9a6b8(0xe4)](exports,a2_0xf9a6b8(0xca),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0xf9a6b8(0xe9)),core_2=require(a2_0xf9a6b8(0xe9)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0xf9a6b8(0xb8)),action_1=require('./types/action'),fs=require('fs'),koasend=require(a2_0xf9a6b8(0xb2)),koa=require(a2_0xf9a6b8(0xef)),i18n=require(a2_0xf9a6b8(0xe0)),upload=require(a2_0xf9a6b8(0xf2)),staticFile=require(a2_0xf9a6b8(0xf1)),crossDomain=require(a2_0xf9a6b8(0xcc)),ConfigDefault=require(a2_0xf9a6b8(0x119)),ConfigProduction=require(a2_0xf9a6b8(0xc5)),anncic=require(a2_0xf9a6b8(0xfa)),anncicCache=require(a2_0xf9a6b8(0xe1)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0xf9a6b8(0x108)),anncicValidator=require(a2_0xf9a6b8(0x110)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0xf9a6b8(0x10b)](){const _0x41cd08=a2_0xf9a6b8;await this[_0x41cd08(0xd1)](),await this[_0x41cd08(0xb3)](),await this[_0x41cd08(0xf0)](),await this[_0x41cd08(0x112)](),await this[_0x41cd08(0xec)]();}async[a2_0xf9a6b8(0xf0)](){}async['handlerActionRoute'](){const _0x13ee8b=a2_0xf9a6b8,_0x4edb3d=this[_0x13ee8b(0xbc)][_0x13ee8b(0xe8)]();this[_0x13ee8b(0x11a)][_0x13ee8b(0xc9)](action_1[_0x13ee8b(0x11b)],_0x575c0e=>{const _0x26e672=_0x575c0e['metadata'];return{'before':async _0x258365=>{const _0x522546=a2_0x4a49;var _0x3bc6c0,_0x3f7f83;const _0x44198f=(_0x3bc6c0=_0x258365===null||_0x258365===void 0x0?void 0x0:_0x258365['target'])===null||_0x3bc6c0===void 0x0?void 0x0:_0x3bc6c0[core_2[_0x522546(0xb4)]];if(_0x44198f&&(_0x26e672===null||_0x26e672===void 0x0?void 0x0:_0x26e672[_0x522546(0x11d)])){if(!this['ApiService'][_0x522546(0xd6)]((_0x3f7f83=_0x44198f===null||_0x44198f===void 0x0?void 0x0:_0x44198f[_0x522546(0xae)])===null||_0x3f7f83===void 0x0?void 0x0:_0x3f7f83['headers']))throw new AnnError(ApiError_1[_0x522546(0x102)][_0x522546(0xd5)]);}},'around':async _0x57dd74=>{const _0x5a956b=a2_0x4a49;var _0x191063,_0x57e37b,_0x8ba156,_0x2069be,_0x4972a0;const _0xfde5e9=(_0x191063=_0x57dd74===null||_0x57dd74===void 0x0?void 0x0:_0x57dd74[_0x5a956b(0xdb)])===null||_0x191063===void 0x0?void 0x0:_0x191063[core_2[_0x5a956b(0xb4)]];if(_0xfde5e9&&(_0x26e672===null||_0x26e672===void 0x0?void 0x0:_0x26e672[_0x5a956b(0x11d)])&&((_0x26e672===null||_0x26e672===void 0x0?void 0x0:_0x26e672[_0x5a956b(0xac)])||typeof(_0x26e672===null||_0x26e672===void 0x0?void 0x0:_0x26e672[_0x5a956b(0xac)])==_0x5a956b(0xc3))){if(((_0x57e37b=_0xfde5e9[_0x5a956b(0x100)])===null||_0x57e37b===void 0x0?void 0x0:_0x57e37b[_0x5a956b(0xb0)])&&((_0x4972a0=(_0x2069be=(_0x8ba156=_0x4edb3d===null||_0x4edb3d===void 0x0?void 0x0:_0x4edb3d[_0x5a956b(0xf3)])===null||_0x8ba156===void 0x0?void 0x0:_0x8ba156[_0x5a956b(0x111)])===null||_0x2069be===void 0x0?void 0x0:_0x2069be[_0xfde5e9['headers'][_0x5a956b(0xb0)]])===null||_0x4972a0===void 0x0?void 0x0:_0x4972a0[_0x5a956b(0xac)])){const _0x4db1cb=Array[_0x5a956b(0xfb)](_0x4edb3d[_0x5a956b(0xf3)][_0x5a956b(0x111)][_0xfde5e9[_0x5a956b(0x100)][_0x5a956b(0xb0)]][_0x5a956b(0xac)])?_0x4edb3d['anncicapi'][_0x5a956b(0x111)][_0xfde5e9[_0x5a956b(0x100)][_0x5a956b(0xb0)]]['intercept']:[_0x4edb3d[_0x5a956b(0xf3)][_0x5a956b(0x111)][_0xfde5e9[_0x5a956b(0x100)]['device']][_0x5a956b(0xac)]];for(const _0x5d06dc of _0x4db1cb){if(core_1[_0x5a956b(0xdd)]['isClass'](_0x5d06dc)||typeof _0x5d06dc==_0x5a956b(0xcf)){const _0x2fcf19=await _0xfde5e9['requestContext'][_0x5a956b(0xe6)](_0x5d06dc);typeof(_0x2fcf19===null||_0x2fcf19===void 0x0?void 0x0:_0x2fcf19[_0x5a956b(0xc2)])==_0x5a956b(0x116)&&await _0x2fcf19[_0x5a956b(0xc2)](typeof(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9[_0x5a956b(0x11e)])==_0x5a956b(0xcf)&&(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9[_0x5a956b(0xee)])?_0xfde5e9[_0x5a956b(0x11e)]['toLowerCase']()+'@'+(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9['_matchedRoute']):undefined,_0xfde5e9,_0x26e672);}else core_1[_0x5a956b(0xdd)][_0x5a956b(0xe7)](_0x5d06dc)&&await _0x5d06dc(typeof(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9[_0x5a956b(0x11e)])==_0x5a956b(0xcf)&&(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9[_0x5a956b(0xee)])?_0xfde5e9[_0x5a956b(0x11e)]['toLowerCase']()+'@'+(_0xfde5e9===null||_0xfde5e9===void 0x0?void 0x0:_0xfde5e9[_0x5a956b(0xee)]):undefined,_0xfde5e9,_0x26e672);}}}return await _0x57dd74[_0x5a956b(0xf7)](..._0x57dd74['args']);},'afterThrow':(_0x2eb74f,_0x19ee45)=>{throw _0x19ee45;}};});}async[a2_0xf9a6b8(0xec)](){const _0x5cafb0=a2_0xf9a6b8;this[_0x5cafb0(0xad)]['getApplications']([_0x5cafb0(0x11c)])[_0x5cafb0(0xd2)](_0x30ea1a=>{const _0x40bf3a=_0x5cafb0;(_0x30ea1a===null||_0x30ea1a===void 0x0?void 0x0:_0x30ea1a['context'])&&Object['defineProperties'](_0x30ea1a[_0x40bf3a(0xc0)],{'ok':{'value':function(_0x4c5321,_0x195ce1,_0x1fe60b=0x0){return{'code':_0x1fe60b,'data':_0x4c5321,'extra':_0x195ce1};}},'input':{'value':function(_0x58411a,_0x33a95f){const _0x421d5d=_0x40bf3a;var _0xdb8596;const _0x54b6d1=lodash[_0x421d5d(0x10c)]({},this[_0x421d5d(0xae)]['body']||this[_0x421d5d(0xae)][((_0xdb8596=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0xdb8596===void 0x0?void 0x0:_0xdb8596['key'])||_0x421d5d(0xff)]||{},this['request'][_0x421d5d(0xf5)]||{});return _0x58411a?lodash[_0x421d5d(0x103)](_0x54b6d1,_0x58411a,_0x33a95f):_0x54b6d1;}},'when':{'value':async function(_0x588351,_0x537da3){const _0x2451e3=_0x40bf3a,_0x4535c2=this[_0x2451e3(0xf9)](_0x588351,null);if(!lodash['isNull'](_0x4535c2))return await _0x537da3(_0x4535c2);}},'only':{'value':function(_0xb7ddc2){const _0x5b0bde=_0x40bf3a,_0x33d20c={};for(let _0x58925d=0x0;_0x58925d<_0xb7ddc2[_0x5b0bde(0xbd)];_0x58925d++){lodash[_0x5b0bde(0xfb)](_0xb7ddc2[_0x58925d])&&_0xb7ddc2[_0x58925d][_0x5b0bde(0xbd)]>0x0&&lodash[_0x5b0bde(0x118)](_0xb7ddc2[_0x58925d][0x0])&&(_0x33d20c[_0xb7ddc2[_0x58925d][0x0]]=this[_0x5b0bde(0xf9)](_0xb7ddc2[_0x58925d][0x0],_0xb7ddc2[_0x58925d]['length']>0x1?_0xb7ddc2[_0x58925d][0x1]:null));}return _0x33d20c;}},'koasend':{'value':function(_0x3d256c,_0x220c0f){const _0x24f061=_0x40bf3a;if(!fs['existsSync'](this[_0x24f061(0x10f)]['getAppDir']()+'/'+_0x3d256c))return _0x24f061(0xf6);return this[_0x24f061(0xb6)](_0x220c0f||_0x3d256c),koasend(this,_0x3d256c);}}});});}async[a2_0xf9a6b8(0xb3)](){const _0x3d0d9a=a2_0xf9a6b8;var _0x3f74bd,_0x3a2640;if(fs[_0x3d0d9a(0xaf)](this[_0x3d0d9a(0x10f)][_0x3d0d9a(0xbf)]()+_0x3d0d9a(0x117))&&fs['statSync'](this[_0x3d0d9a(0x10f)][_0x3d0d9a(0xbf)]()+_0x3d0d9a(0x117))[_0x3d0d9a(0xdf)]()){const _0x559c7a=this[_0x3d0d9a(0xbc)][_0x3d0d9a(0xe8)](),_0x20763f=((_0x3f74bd=_0x559c7a===null||_0x559c7a===void 0x0?void 0x0:_0x559c7a[_0x3d0d9a(0x10a)])===null||_0x3f74bd===void 0x0?void 0x0:_0x3f74bd['clients'])||{};for(const _0x39ba0b of fs[_0x3d0d9a(0xf4)](this[_0x3d0d9a(0x10f)][_0x3d0d9a(0xbf)]()+_0x3d0d9a(0x117))){if(!fs['statSync'](this['app'][_0x3d0d9a(0xbf)]()+'/apps/'+_0x39ba0b)['isDirectory']())continue;if(_0x20763f===null||_0x20763f===void 0x0?void 0x0:_0x20763f[_0x39ba0b])continue;_0x20763f[_0x39ba0b]=Object[_0x3d0d9a(0xd3)]({},((_0x3a2640=_0x559c7a===null||_0x559c7a===void 0x0?void 0x0:_0x559c7a['midwayLogger'])===null||_0x3a2640===void 0x0?void 0x0:_0x3a2640[_0x3d0d9a(0x10d)])||{'maxSize':'1m','dir':this[_0x3d0d9a(0x10f)][_0x3d0d9a(0x107)]()+_0x3d0d9a(0x106)},{'enableJSON':!![],'enableConsole':this['environment'][_0x3d0d9a(0xbe)](),'fileLogName':_0x39ba0b+_0x3d0d9a(0xe2),'dir':this[_0x3d0d9a(0x10f)][_0x3d0d9a(0x107)]()+_0x3d0d9a(0xd9)+_0x39ba0b+'-log'});}Object[_0x3d0d9a(0xc8)](_0x20763f)[_0x3d0d9a(0xbd)]>0x0&&(!_0x559c7a[_0x3d0d9a(0x10a)]&&(_0x559c7a[_0x3d0d9a(0x10a)]={'default':{'maxSize':'1m','dir':this[_0x3d0d9a(0x10f)]['getAppDir']()+_0x3d0d9a(0x106)}}),_0x559c7a[_0x3d0d9a(0x10a)][_0x3d0d9a(0xb9)]=_0x20763f),this[_0x3d0d9a(0xbc)][_0x3d0d9a(0xfd)](_0x559c7a);}}async[a2_0xf9a6b8(0xd1)](){const _0x4dd861=a2_0xf9a6b8;var _0x332854,_0x35308a,_0x221581,_0x5e02db,_0x191c5e,_0xabf418;const _0x42aa9a=this['config'][_0x4dd861(0xe8)]();((_0x35308a=(_0x332854=_0x42aa9a===null||_0x42aa9a===void 0x0?void 0x0:_0x42aa9a[_0x4dd861(0xf3)])===null||_0x332854===void 0x0?void 0x0:_0x332854['devices'])===null||_0x35308a===void 0x0?void 0x0:_0x35308a[_0x4dd861(0x104)])&&Object['keys'](_0x42aa9a[_0x4dd861(0xf3)][_0x4dd861(0x111)])[_0x4dd861(0xbd)]>0x1&&delete _0x42aa9a[_0x4dd861(0xf3)]['devices']['DEFAULT'];if((_0x221581=_0x42aa9a===null||_0x42aa9a===void 0x0?void 0x0:_0x42aa9a['staticFile'])===null||_0x221581===void 0x0?void 0x0:_0x221581[_0x4dd861(0xc7)])for(const _0x2eac2b in _0x42aa9a[_0x4dd861(0x114)][_0x4dd861(0xc7)]){((_0x5e02db=_0x42aa9a[_0x4dd861(0x114)][_0x4dd861(0xc7)][_0x2eac2b])===null||_0x5e02db===void 0x0?void 0x0:_0x5e02db[_0x4dd861(0x109)])&&typeof((_0x191c5e=_0x42aa9a['staticFile']['dirs'][_0x2eac2b])===null||_0x191c5e===void 0x0?void 0x0:_0x191c5e[_0x4dd861(0x109)])==_0x4dd861(0xcf)&&!fs[_0x4dd861(0xaf)](_0x42aa9a['staticFile']['dirs'][_0x2eac2b][_0x4dd861(0x109)])&&(fs[_0x4dd861(0xe5)](_0x42aa9a['staticFile'][_0x4dd861(0xc7)][_0x2eac2b][_0x4dd861(0x109)],{'recursive':!![]}),console[_0x4dd861(0x10e)](_0x4dd861(0x115)+_0x42aa9a[_0x4dd861(0x114)]['dirs'][_0x2eac2b][_0x4dd861(0x109)]));}((_0xabf418=_0x42aa9a===null||_0x42aa9a===void 0x0?void 0x0:_0x42aa9a['upload'])===null||_0xabf418===void 0x0?void 0x0:_0xabf418[_0x4dd861(0xda)])&&!fs[_0x4dd861(0xaf)](_0x42aa9a[_0x4dd861(0xd8)][_0x4dd861(0xda)])&&(fs['mkdirSync'](_0x42aa9a[_0x4dd861(0xd8)][_0x4dd861(0xda)],{'recursive':!![]}),console['log'](_0x4dd861(0xb7)+_0x42aa9a['upload'][_0x4dd861(0xda)])),this[_0x4dd861(0xbc)][_0x4dd861(0xfd)](_0x42aa9a);}};function a2_0x4e05(){const _0x2a2334=['getConfiguration','@midwayjs/core','522175hZPPip','57kKtaWD','hanlderApplications','prototype','_matchedRoute','@midwayjs/koa','checkConfigKeys','@midwayjs/static-file','@midwayjs/upload','anncicapi','readdirSync','query','文件不存在','proceed','MidwayApplicationManager','input','@anncic-api/core','isArray','anncic-api','addObject','metadata','body','headers','24wdFhcP','ApiError','get','DEFAULT','Configuration','/runtime','getAppDir','@anncic-api/typeorm','dir','midwayLogger','onReady','defaultsDeep','default','log','app','@anncic-api/validator','devices','handlerActionRoute','ApiService','staticFile','Anncic-api\x20static-file\x20:\x20mkdir\x20','function','/apps','isString','./config/config.default','decorator','ACTION_ROUTE_KEY','koa','apimit','method','intercept','application','request','existsSync','device','180pswmDG','koa-send','loggerConfig','REQUEST_OBJ_CTX_KEY','environment','attachment','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./service/ApiService','clients','1876775WCnzIa','Inject','config','length','isDevelopmentEnvironment','getBaseDir','context','978241RDXyDe','handler','undefined','design:type','./config/config.production','1085samUHa','dirs','keys','registerMethodHandler','__esModule','decorate','@midwayjs/cross-domain','object','4626MOmzkj','string','App','filterConfig','forEach','assign','CustomConfiguration','HEADERS_SIGNATURE','checksign','getOwnPropertyDescriptor','upload','/runtime/apps-','tmpdir','target','353610hiLuFl','Types','25968OphajU','isDirectory','@midwayjs/i18n','@anncic-api/cache','.log','704832erUnHW','defineProperty','mkdirSync','getAsync','isFunction'];a2_0x4e05=function(){return _0x2a2334;};return a2_0x4e05();}__decorate([(0x0,core_1[a2_0xf9a6b8(0xd0)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0xf9a6b8(0xed)],'app',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a2_0xf9a6b8(0xed)],a2_0xf9a6b8(0xbc),void 0x0),__decorate([(0x0,core_1[a2_0xf9a6b8(0xbb)])(),__metadata(a2_0xf9a6b8(0xc4),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0xf9a6b8(0xed)],a2_0xf9a6b8(0x11a),void 0x0),__decorate([(0x0,core_1[a2_0xf9a6b8(0xbb)])(),__metadata(a2_0xf9a6b8(0xc4),core_2[a2_0xf9a6b8(0xf8)])],CustomConfiguration['prototype'],a2_0xf9a6b8(0xad),void 0x0),__decorate([(0x0,core_1[a2_0xf9a6b8(0xbb)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0xf9a6b8(0xed)],a2_0xf9a6b8(0xb5),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0xf9a6b8(0xc4),ApiService_1['ApiService'])],CustomConfiguration[a2_0xf9a6b8(0xed)],a2_0xf9a6b8(0x113),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0xf9a6b8(0x105)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0xf9a6b8(0xfc),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xf9a6b8(0xd4)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x5d4081=a3_0xc1e9;(function(_0x22af1f,_0x4a80f0){const _0x47f825=a3_0xc1e9,_0x15fafa=_0x22af1f();while(!![]){try{const _0x125a60=-parseInt(_0x47f825(0x1e8))/0x1+-parseInt(_0x47f825(0x1c0))/0x2*(parseInt(_0x47f825(0x1ee))/0x3)+-parseInt(_0x47f825(0x1c4))/0x4+-parseInt(_0x47f825(0x1e7))/0x5+-parseInt(_0x47f825(0x1d9))/0x6+parseInt(_0x47f825(0x1cb))/0x7*(-parseInt(_0x47f825(0x1bf))/0x8)+parseInt(_0x47f825(0x1c5))/0x9;if(_0x125a60===_0x4a80f0)break;else _0x15fafa['push'](_0x15fafa['shift']());}catch(_0x3539f7){_0x15fafa['push'](_0x15fafa['shift']());}}}(a3_0x5e46,0xa261e));Object[a3_0x5d4081(0x1d6)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports['Action']=void 0x0;function a3_0xc1e9(_0x28c3bb,_0x468889){const _0x5e4606=a3_0x5e46();return a3_0xc1e9=function(_0xc1e95a,_0x23ee86){_0xc1e95a=_0xc1e95a-0x1bf;let _0x23c1ba=_0x5e4606[_0xc1e95a];return _0x23c1ba;},a3_0xc1e9(_0x28c3bb,_0x468889);}const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require(a3_0x5d4081(0x1eb));function a3_0x5e46(){const _0x375cff=['\x20文件请放在apps/','middlewareIgnore','63IvRqYO','/controller/文件下','tagName','splice','Controller','rootpath','push','Action','trim','\x20文件请放在app/controller/文件下','match','defineProperty','filepath','indexOf','4731768DicFxH','-controller','prefix','app/controller/','/controller/','toLowerCase','join','replace','cwd','ACTION_KEY','route','saveClassMetadata','filter','startsWith','5279860kTtyoi','435968euIXon','split','AppsConfigTmp','../types/action','length','module','3ovSeFi','/apps/','APPSCONFIG_KEY','saveModule','-action','874128NpfaNj','2077694GdgJez','middleware','endsWith','substring','5041100hddrfR','56053818yyYCKo','basic/controller/','/config.','apps/'];a3_0x5e46=function(){return _0x375cff;};return a3_0x5e46();}function Action(_0x487387,_0xf34715,_0x341817={'middleware':[],'sensitive':!![]}){return _0x303e12=>{const _0xd46098=a3_0xc1e9;var _0x4ba1bb;_0x341817[_0xd46098(0x1cd)]=_0xf34715;const _0x42f74c=parseRoute(_0x487387);if(_0x42f74c[_0xd46098(0x1ed)]){_0x341817[_0xd46098(0x1db)]=_0x341817[_0xd46098(0x1db)]?'/'+_0x42f74c[_0xd46098(0x1ed)]+'/'+_0x341817[_0xd46098(0x1db)]:'/'+_0x42f74c['route'];_0x42f74c[_0xd46098(0x1db)]&&(_0x341817[_0xd46098(0x1db)]='/'+_0x42f74c[_0xd46098(0x1db)]+'/'+_0x341817[_0xd46098(0x1db)]);if(fs['existsSync'](_0x42f74c['rootpath']+_0xd46098(0x1ef)+_0x42f74c['module']+_0xd46098(0x1c7)+(lodash['endsWith'](_0x42f74c[_0xd46098(0x1d7)],'ts')?'ts':'js'))){const _0x2a0618=include(_0x42f74c[_0xd46098(0x1d0)]+'/apps/'+_0x42f74c[_0xd46098(0x1ed)]+'/config.'+(lodash[_0xd46098(0x1c2)](_0x42f74c[_0xd46098(0x1d7)],'ts')?'ts':'js'));if(_0x2a0618[_0xd46098(0x1c1)]&&lodash['isArray'](_0x2a0618[_0xd46098(0x1c1)])&&_0x2a0618[_0xd46098(0x1c1)]['length']>0x0)for(let _0x558803 in _0x2a0618[_0xd46098(0x1c1)]){if(((_0x4ba1bb=_0x2a0618===null||_0x2a0618===void 0x0?void 0x0:_0x2a0618[_0xd46098(0x1ca)])===null||_0x4ba1bb===void 0x0?void 0x0:_0x4ba1bb[_0xd46098(0x1ec)])>0x0&&_0x2a0618[_0xd46098(0x1ca)][_0xd46098(0x1d8)](_0x2a0618[_0xd46098(0x1c1)][_0x558803])!=-0x1)continue;_0x341817[_0xd46098(0x1c1)][_0xd46098(0x1d1)](_0x2a0618[_0xd46098(0x1c1)][_0x558803]);}const _0x64b708=(0x0,core_1['getClassMetadata'])(action_1[_0xd46098(0x1f0)],action_1[_0xd46098(0x1ea)])||{};_0x64b708[''+_0x42f74c[_0xd46098(0x1ed)]]=_0x2a0618,(0x0,core_1[_0xd46098(0x1e4)])(action_1[_0xd46098(0x1f0)],_0x64b708,action_1[_0xd46098(0x1ea)]);}_0x341817[_0xd46098(0x1db)]=_0x341817[_0xd46098(0x1db)][_0xd46098(0x1de)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0xd46098(0x1f1)])(action_1[_0xd46098(0x1e2)],_0x303e12),(0x0,core_1[_0xd46098(0x1cf)])(_0x341817[_0xd46098(0x1db)],_0x341817)(_0x303e12),(0x0,core_1[_0xd46098(0x1e4)])(action_1[_0xd46098(0x1e2)],{'prefix':_0x341817[_0xd46098(0x1db)],'pprefix':_0x42f74c['prefix'],'module':_0x42f74c[_0xd46098(0x1ed)],'filepath':_0x42f74c[_0xd46098(0x1d7)],'routerOptions':_0x341817},_0x303e12);}else _0x341817['prefix']=_0x341817[_0xd46098(0x1db)]?'/'+_0x341817[_0xd46098(0x1db)]:'/'+_0x42f74c[_0xd46098(0x1e3)],_0x42f74c['prefix']&&(_0x341817[_0xd46098(0x1db)]='/'+_0x42f74c['prefix']+'/'+_0x341817['prefix']),_0x341817['prefix']=_0x341817['prefix'][_0xd46098(0x1de)]()[_0xd46098(0x1e0)](/\/{2,}/g,'/'),(0x0,core_1[_0xd46098(0x1f1)])(action_1['ACTION_KEY'],_0x303e12),(0x0,core_1[_0xd46098(0x1cf)])(_0x341817[_0xd46098(0x1db)],_0x341817)(_0x303e12),(0x0,core_1[_0xd46098(0x1e4)])(action_1[_0xd46098(0x1e2)],{'prefix':_0x341817['prefix'],'module':_0x42f74c[_0xd46098(0x1ed)],'pprefix':_0x42f74c[_0xd46098(0x1db)],'filepath':_0x42f74c[_0xd46098(0x1d7)],'routerOptions':_0x341817},_0x303e12);};}exports[a3_0x5d4081(0x1d2)]=Action;function parseRoute(_0x3a8ce3){const _0x54af86=a3_0x5d4081;_0x3a8ce3=_0x3a8ce3[_0x54af86(0x1e0)](/(\\|\/)/g,'/');const _0x45afee=process[_0x54af86(0x1e1)]()['replace'](/(\\|\/)/g,'/'),_0xac30bc=_0x3a8ce3[_0x54af86(0x1c3)](0x0,_0x45afee[_0x54af86(0x1ec)]+_0x3a8ce3[_0x54af86(0x1c3)](_0x45afee['length']+0x1)[_0x54af86(0x1d8)]('/')+0x1),_0x176dbb=_0x3a8ce3[_0x54af86(0x1c3)](_0xac30bc[_0x54af86(0x1ec)]+0x1)[_0x54af86(0x1e0)](/(\\|\/)/g,'/'),_0x5d1296={'route':'','prefix':![],'module':![],'rootpath':_0xac30bc,'filepath':_0x176dbb};if(_0x176dbb['startsWith'](_0x54af86(0x1dc))||_0x176dbb[_0x54af86(0x1e6)](_0x54af86(0x1c6))){const _0x145773=_0x176dbb['substring']((_0x176dbb[_0x54af86(0x1e6)](_0x54af86(0x1dc))?_0x54af86(0x1dc):_0x54af86(0x1c6))[_0x54af86(0x1ec)])[_0x54af86(0x1e9)]('/')['filter'](_0x5710c0=>_0x5710c0&&_0x5710c0[_0x54af86(0x1d3)]());return _0x145773[_0x54af86(0x1ec)]>0x1&&(_0x5d1296[_0x54af86(0x1db)]=_0x145773[0x0][_0x54af86(0x1de)](),_0x145773[_0x54af86(0x1ce)](0x0,0x1)),_0x5d1296[_0x54af86(0x1e3)]=('/'+_0x145773['join']('/'))[_0x54af86(0x1e0)](/(\.ts|\.js)$/,'')[_0x54af86(0x1e0)](/\/{2,}/g,'/')[_0x54af86(0x1d5)](/[\/|A-Z]*[^A-Z]+/g)[_0x54af86(0x1df)]('-')[_0x54af86(0x1de)]()['replace'](/\/\-/g,'/'),_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1c2)](_0x54af86(0x1f2))&&(_0x5d1296[_0x54af86(0x1e3)]=_0x5d1296['route'][_0x54af86(0x1c3)](0x0,_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1ec)]-0x7)),_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1c2)](_0x54af86(0x1da))&&(_0x5d1296['route']=_0x5d1296[_0x54af86(0x1e3)]['substring'](0x0,_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1ec)]-0xb)),_0x5d1296;}else{if(_0x176dbb[_0x54af86(0x1e6)](_0x54af86(0x1c8))){const _0x5247e1=_0x176dbb['substring'](0x0,_0x176dbb[_0x54af86(0x1d8)](_0x54af86(0x1ef))+0x5),_0x4751ea=_0x176dbb[_0x54af86(0x1c3)](_0x5247e1[_0x54af86(0x1ec)]+0x1)[_0x54af86(0x1e0)](/(\\|\/)/g,'/')[_0x54af86(0x1e9)]('/')[0x0];if(_0x176dbb[_0x54af86(0x1e6)](_0x54af86(0x1c8)+_0x4751ea+_0x54af86(0x1dd))){const _0x445ccf=_0x176dbb['substring']((_0x5247e1+'/'+_0x4751ea+'/controller/')[_0x54af86(0x1ec)])[_0x54af86(0x1e9)]('/')[_0x54af86(0x1e5)](_0x45de8a=>_0x45de8a&&_0x45de8a[_0x54af86(0x1d3)]());return _0x445ccf[_0x54af86(0x1ec)]>0x1&&(_0x5d1296[_0x54af86(0x1db)]=_0x445ccf[0x0][_0x54af86(0x1de)](),_0x445ccf[_0x54af86(0x1ce)](0x0,0x1)),_0x5d1296[_0x54af86(0x1ed)]=_0x4751ea,_0x5d1296['route']=('/'+_0x4751ea+'/'+_0x445ccf[_0x54af86(0x1df)]('/'))[_0x54af86(0x1e0)](/(\.ts|\.js)$/,'')[_0x54af86(0x1e0)](/\/{2,}/,'/')[_0x54af86(0x1d5)](/[\/|A-Z]*[^A-Z]+/g)[_0x54af86(0x1df)]('-')[_0x54af86(0x1de)]()[_0x54af86(0x1e0)](/\/\-/g,'/'),_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1c2)](_0x54af86(0x1f2))&&(_0x5d1296[_0x54af86(0x1e3)]=_0x5d1296['route']['substring'](0x0,_0x5d1296['route'][_0x54af86(0x1ec)]-0x7)),_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1c2)]('-controller')&&(_0x5d1296[_0x54af86(0x1e3)]=_0x5d1296['route']['substring'](0x0,_0x5d1296[_0x54af86(0x1e3)][_0x54af86(0x1ec)]-0xb)),_0x5d1296;}throw new Error(_0x176dbb+_0x54af86(0x1c9)+_0x4751ea+_0x54af86(0x1cc));}}throw new Error(_0x176dbb+_0x54af86(0x1d4));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0x49e4(_0x3d1349,_0x4da8f9){const _0x3a9d5a=a4_0x3a9d();return a4_0x49e4=function(_0x49e4bc,_0x2767da){_0x49e4bc=_0x49e4bc-0x7e;let _0x22f29d=_0x3a9d5a[_0x49e4bc];return _0x22f29d;},a4_0x49e4(_0x3d1349,_0x4da8f9);}const a4_0x5d9014=a4_0x49e4;(function(_0x20d750,_0x2ebae1){const _0x1710c5=a4_0x49e4,_0x8bae17=_0x20d750();while(!![]){try{const _0x2c3c78=parseInt(_0x1710c5(0x87))/0x1+-parseInt(_0x1710c5(0x94))/0x2*(parseInt(_0x1710c5(0x7e))/0x3)+parseInt(_0x1710c5(0x8d))/0x4*(parseInt(_0x1710c5(0x8e))/0x5)+-parseInt(_0x1710c5(0x89))/0x6+-parseInt(_0x1710c5(0x9d))/0x7*(-parseInt(_0x1710c5(0x81))/0x8)+-parseInt(_0x1710c5(0x83))/0x9+parseInt(_0x1710c5(0x80))/0xa;if(_0x2c3c78===_0x2ebae1)break;else _0x8bae17['push'](_0x8bae17['shift']());}catch(_0x27a1c2){_0x8bae17['push'](_0x8bae17['shift']());}}}(a4_0x3a9d,0xd09de));function a4_0x3a9d(){const _0x34bc86=['get','apimit','@anncic-api/validator','description','../types/action','28637TObvRZ','__esModule','1087848EuVINg','filter','15619250rcRCKB','1528RpclEl','delete','14979519LXCpoX','createCustomMethodDecorator','assign','attachClassMetadata','1280949zFRIWb','RequestMapping','460158DjPFbz','intercept','validate','Api','2308hMxJnN','3655TpLZph','validationOptions','del','ACTION_ROUTE_KEY','routerName','length','8WSlKLT','toLowerCase','middleware','middlewareIgnore'];a4_0x3a9d=function(){return _0x34bc86;};return a4_0x3a9d();}Object['defineProperty'](exports,a4_0x5d9014(0x9e),{'value':!![]}),exports[a4_0x5d9014(0x8c)]=void 0x0;const validator_1=require(a4_0x5d9014(0x9a)),core_1=require('@midwayjs/core'),action_1=require(a4_0x5d9014(0x9c));function Api(_0x207ff0,_0x51edb9=a4_0x5d9014(0x98),_0x3de674='/',_0x970987={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5623c5,_0x40feca,_0x9b3de)=>{const _0x1bca82=a4_0x49e4;var _0x4e8644,_0x4b614c,_0x8e5788;!_0x970987[_0x1bca82(0x96)]&&(_0x970987[_0x1bca82(0x96)]=[]);!((_0x4e8644=_0x970987===null||_0x970987===void 0x0?void 0x0:_0x970987[_0x1bca82(0x8b)])===null||_0x4e8644===void 0x0?void 0x0:_0x4e8644[_0x1bca82(0x8f)])&&(_0x970987['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x4b614c=_0x970987===null||_0x970987===void 0x0?void 0x0:_0x970987[_0x1bca82(0x96)])===null||_0x4b614c===void 0x0?void 0x0:_0x4b614c['length'])>0x0&&((_0x8e5788=_0x970987===null||_0x970987===void 0x0?void 0x0:_0x970987[_0x1bca82(0x97)])===null||_0x8e5788===void 0x0?void 0x0:_0x8e5788[_0x1bca82(0x93)])>0x0)for(let _0x5250da in _0x970987[_0x1bca82(0x96)]){_0x970987[_0x1bca82(0x97)]['indexOf'](_0x970987['middleware'][_0x5250da])!==-0x1&&(_0x970987[_0x1bca82(0x96)][_0x5250da]=null);}_0x970987[_0x1bca82(0x92)]=_0x207ff0,(0x0,validator_1['Validator'])(_0x970987[_0x1bca82(0x8b)])(_0x5623c5,_0x40feca,_0x9b3de),(0x0,core_1[_0x1bca82(0x88)])(Object[_0x1bca82(0x85)](_0x970987,{'path':_0x3de674,'requestMethod':(_0x51edb9==_0x1bca82(0x90)?_0x1bca82(0x82):_0x51edb9)[_0x1bca82(0x95)]()}))(_0x5623c5,_0x40feca,_0x9b3de),(0x0,core_1[_0x1bca82(0x86)])(action_1[_0x1bca82(0x91)],{'path':_0x3de674,'method':_0x40feca,'apimit':_0x970987[_0x1bca82(0x99)],'intercept':_0x970987[_0x1bca82(0x8a)],'routerName':_0x970987[_0x1bca82(0x92)],'description':_0x970987['description'],'middleware':(_0x970987[_0x1bca82(0x96)]||[])['filter'](_0x1cee25=>!!_0x1cee25),'requestMethod':(_0x51edb9==_0x1bca82(0x90)?_0x1bca82(0x82):_0x51edb9)[_0x1bca82(0x95)]()},_0x5623c5),(0x0,core_1[_0x1bca82(0x84)])(action_1[_0x1bca82(0x91)],{'path':_0x3de674,'method':_0x40feca,'apimit':_0x970987[_0x1bca82(0x99)],'intercept':_0x970987[_0x1bca82(0x8a)],'routerName':_0x970987[_0x1bca82(0x92)],'description':_0x970987[_0x1bca82(0x9b)],'middleware':(_0x970987['middleware']||[])[_0x1bca82(0x7f)](_0x413d7d=>!!_0x413d7d),'requestMethod':(_0x51edb9==_0x1bca82(0x90)?'delete':_0x51edb9)[_0x1bca82(0x95)]()})(_0x5623c5,_0x40feca,_0x9b3de);};}exports[a4_0x5d9014(0x8c)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x4c02(_0x4a9f49,_0x52d870){const _0x447f1a=a5_0x447f();return a5_0x4c02=function(_0x4c02a9,_0x5d9fb6){_0x4c02a9=_0x4c02a9-0x7c;let _0x526d67=_0x447f1a[_0x4c02a9];return _0x526d67;},a5_0x4c02(_0x4a9f49,_0x52d870);}const a5_0x24f776=a5_0x4c02;(function(_0x52ff9e,_0x33c824){const _0xadee35=a5_0x4c02,_0x3ffd6b=_0x52ff9e();while(!![]){try{const _0x98f6f7=-parseInt(_0xadee35(0x7f))/0x1+-parseInt(_0xadee35(0x82))/0x2*(-parseInt(_0xadee35(0x90))/0x3)+-parseInt(_0xadee35(0x8a))/0x4+parseInt(_0xadee35(0x84))/0x5+parseInt(_0xadee35(0x86))/0x6*(parseInt(_0xadee35(0x87))/0x7)+parseInt(_0xadee35(0x8e))/0x8*(parseInt(_0xadee35(0x8f))/0x9)+parseInt(_0xadee35(0x81))/0xa;if(_0x98f6f7===_0x33c824)break;else _0x3ffd6b['push'](_0x3ffd6b['shift']());}catch(_0x11faa1){_0x3ffd6b['push'](_0x3ffd6b['shift']());}}}(a5_0x447f,0xd1fa2));Object[a5_0x24f776(0x7d)](exports,a5_0x24f776(0x8c),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require('../service/ApitestService');function Apitest(_0x3788ed='/apitest',_0x2a9c37){return(_0x33d784,_0x68509a,_0x1eb081)=>{const _0x19667f=a5_0x4c02;return(0x0,core_1[_0x19667f(0x89)])({'path':_0x3788ed,'requestMethod':'get'})(_0x33d784,_0x68509a,_0x1eb081),_0x1eb081[_0x19667f(0x8d)]=async function(..._0x2eea70){const _0x31b0e4=_0x19667f;var _0x502dbc;const _0x211500=(_0x502dbc=this[core_1[_0x31b0e4(0x7c)]])===null||_0x502dbc===void 0x0?void 0x0:_0x502dbc['app'];if(_0x211500&&_0x211500[_0x31b0e4(0x85)](_0x31b0e4(0x88))){const _0x16d629=await _0x211500[_0x31b0e4(0x92)]()[_0x31b0e4(0x7e)](ApitestService_1[_0x31b0e4(0x83)]),_0x17a151=await _0x211500[_0x31b0e4(0x92)]()[_0x31b0e4(0x7e)](core_1[_0x31b0e4(0x80)]);return _0x17a151['isDevelopmentEnvironment']()&&(_0x2a9c37['filepath']=!![]),await _0x16d629[_0x31b0e4(0x8b)](_0x2a9c37);}return'';},_0x1eb081;};}function a5_0x447f(){const _0x6b7e11=['3caBdBP','Apitest','getApplicationContext','REQUEST_OBJ_CTX_KEY','defineProperty','getAsync','1668704LZNwwv','MidwayEnvironmentService','12439890PBtDOE','885962LDvADN','ApitestService','1865555gVcLAb','getConfig','834cwbleO','6013xkFsGO','apitest','RequestMapping','2894860PNZJaa','apidoc','__esModule','value','8mpTKXt','9657027NiOjIe'];a5_0x447f=function(){return _0x6b7e11;};return a5_0x447f();}exports[a5_0x24f776(0x91)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a6_0x170db2=a6_0x23bf;function a6_0x23bf(_0x214ec9,_0x4cea8d){var _0x4fdf6f=a6_0x4fdf();return a6_0x23bf=function(_0x23bfea,_0x2a15f7){_0x23bfea=_0x23bfea-0x161;var _0x5c496e=_0x4fdf6f[_0x23bfea];return _0x5c496e;},a6_0x23bf(_0x214ec9,_0x4cea8d);}(function(_0x463d3e,_0x3acb73){var _0x461ac9=a6_0x23bf,_0x2fcfee=_0x463d3e();while(!![]){try{var _0x1df134=-parseInt(_0x461ac9(0x163))/0x1+-parseInt(_0x461ac9(0x165))/0x2+parseInt(_0x461ac9(0x16d))/0x3*(-parseInt(_0x461ac9(0x16f))/0x4)+-parseInt(_0x461ac9(0x175))/0x5+parseInt(_0x461ac9(0x168))/0x6+parseInt(_0x461ac9(0x17c))/0x7+-parseInt(_0x461ac9(0x17b))/0x8*(-parseInt(_0x461ac9(0x16a))/0x9);if(_0x1df134===_0x3acb73)break;else _0x2fcfee['push'](_0x2fcfee['shift']());}catch(_0x19bb92){_0x2fcfee['push'](_0x2fcfee['shift']());}}}(a6_0x4fdf,0x249aa));var __decorate=this&&this['__decorate']||function(_0x5270c3,_0x220904,_0x5dbdfc,_0x568d7b){var _0x16bbf0=a6_0x23bf,_0x8079d2=arguments[_0x16bbf0(0x16e)],_0x1e6523=_0x8079d2<0x3?_0x220904:_0x568d7b===null?_0x568d7b=Object[_0x16bbf0(0x16c)](_0x220904,_0x5dbdfc):_0x568d7b,_0x45ddaf;if(typeof Reflect===_0x16bbf0(0x171)&&typeof Reflect['decorate']===_0x16bbf0(0x17d))_0x1e6523=Reflect[_0x16bbf0(0x164)](_0x5270c3,_0x220904,_0x5dbdfc,_0x568d7b);else{for(var _0xc01a42=_0x5270c3[_0x16bbf0(0x16e)]-0x1;_0xc01a42>=0x0;_0xc01a42--)if(_0x45ddaf=_0x5270c3[_0xc01a42])_0x1e6523=(_0x8079d2<0x3?_0x45ddaf(_0x1e6523):_0x8079d2>0x3?_0x45ddaf(_0x220904,_0x5dbdfc,_0x1e6523):_0x45ddaf(_0x220904,_0x5dbdfc))||_0x1e6523;}return _0x8079d2>0x3&&_0x1e6523&&Object['defineProperty'](_0x220904,_0x5dbdfc,_0x1e6523),_0x1e6523;},__metadata=this&&this['__metadata']||function(_0x56aff7,_0x156f39){var _0x25e321=a6_0x23bf;if(typeof Reflect===_0x25e321(0x171)&&typeof Reflect[_0x25e321(0x172)]==='function')return Reflect[_0x25e321(0x172)](_0x56aff7,_0x156f39);};Object[a6_0x170db2(0x176)](exports,a6_0x170db2(0x173),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}function a6_0x4fdf(){var _0x30fc47=['length','215836PpDYTd','验证失败,请重新登录','object','metadata','__esModule','TIMEOUT','1446415JvFQhs','defineProperty','TIMEOUT_LOGINTIME','HEADERS_CHECKCODE','HEADERS_SIGNATURE','登录超时,请重新登录','88phSeEr','1411438KeYnnW','function','HEADERS_DEVICE','请求超时,请重试','design:type','95313GaBrkc','decorate','413840XNxlQe','ApiError','signature验证失败','1642158KmHYoX','请使用正确的设备','261882MgFDag','HEADERS_LACK','getOwnPropertyDescriptor','3nfcFCO'];a6_0x4fdf=function(){return _0x30fc47;};return a6_0x4fdf();}ApiError[a6_0x170db2(0x174)]=0x3d7e31,ApiError[a6_0x170db2(0x16b)]=0x3d7e32,ApiError[a6_0x170db2(0x17e)]=0x3d7e33,ApiError[a6_0x170db2(0x179)]=0x3d7e34,ApiError[a6_0x170db2(0x178)]=0x3d7e35,ApiError[a6_0x170db2(0x177)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x170db2(0x161)),__metadata(a6_0x170db2(0x162),Object)],ApiError,a6_0x170db2(0x174),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x170db2(0x169)),__metadata('design:type',Object)],ApiError,a6_0x170db2(0x17e),void 0x0),__decorate([AnnErrorMsg(a6_0x170db2(0x167)),__metadata(a6_0x170db2(0x162),Object)],ApiError,a6_0x170db2(0x179),void 0x0),__decorate([AnnErrorMsg(a6_0x170db2(0x170)),__metadata(a6_0x170db2(0x162),Object)],ApiError,a6_0x170db2(0x178),void 0x0),__decorate([AnnErrorMsg(a6_0x170db2(0x17a)),__metadata('design:type',Object)],ApiError,a6_0x170db2(0x177),void 0x0),exports[a6_0x170db2(0x166)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x581a26=a7_0xa9fe;(function(_0x4db9a6,_0x3be246){const _0xd93416=a7_0xa9fe,_0x22578a=_0x4db9a6();while(!![]){try{const _0x36780f=parseInt(_0xd93416(0x17d))/0x1+-parseInt(_0xd93416(0x179))/0x2+-parseInt(_0xd93416(0x177))/0x3+parseInt(_0xd93416(0x185))/0x4+parseInt(_0xd93416(0x17b))/0x5*(parseInt(_0xd93416(0x17e))/0x6)+parseInt(_0xd93416(0x183))/0x7*(-parseInt(_0xd93416(0x181))/0x8)+parseInt(_0xd93416(0x184))/0x9;if(_0x36780f===_0x3be246)break;else _0x22578a['push'](_0x22578a['shift']());}catch(_0x39ade5){_0x22578a['push'](_0x22578a['shift']());}}}(a7_0x135d,0x726b0));function a7_0xa9fe(_0x2b954c,_0x25c323){const _0x135df3=a7_0x135d();return a7_0xa9fe=function(_0xa9fedc,_0x48e1a3){_0xa9fedc=_0xa9fedc-0x177;let _0x56915f=_0x135df3[_0xa9fedc];return _0x56915f;},a7_0xa9fe(_0x2b954c,_0x25c323);}Object[a7_0x581a26(0x182)](exports,'__esModule',{'value':!![]}),exports[a7_0x581a26(0x17c)]=void 0x0;function a7_0x135d(){const _0x26a0fd=['64XiSXad','defineProperty','186718mkXjWN','14223726MoEQvZ','1010064SaTXEx','1797291WLqYYg','get','1565556FnNshS','@midwayjs/core','20lCvLHL','getAppsConfig','122269MJLDeB','163086IiSQgY','APPSCONFIG_KEY','AppsConfigTmp'];a7_0x135d=function(){return _0x26a0fd;};return a7_0x135d();}const core_1=require(a7_0x581a26(0x17a)),action_1=require('../types/action');function getAppsConfig(_0x452e94){const _0x5b7077=a7_0x581a26,_0x47f27c=(0x0,core_1['getClassMetadata'])(action_1[_0x5b7077(0x17f)],action_1[_0x5b7077(0x180)])||{};return _0x452e94?lodash[_0x5b7077(0x178)](_0x47f27c,_0x452e94):_0x47f27c;}exports[a7_0x581a26(0x17c)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0xe61618=a8_0x2aac;(function(_0x2e6cac,_0x36aa76){const _0x19a94a=a8_0x2aac,_0x3e5173=_0x2e6cac();while(!![]){try{const _0x21bd97=parseInt(_0x19a94a(0x140))/0x1*(-parseInt(_0x19a94a(0x139))/0x2)+-parseInt(_0x19a94a(0x11f))/0x3*(parseInt(_0x19a94a(0x128))/0x4)+-parseInt(_0x19a94a(0x14b))/0x5+parseInt(_0x19a94a(0x137))/0x6*(-parseInt(_0x19a94a(0x121))/0x7)+-parseInt(_0x19a94a(0x10f))/0x8+-parseInt(_0x19a94a(0x13c))/0x9*(-parseInt(_0x19a94a(0x133))/0xa)+-parseInt(_0x19a94a(0x104))/0xb*(-parseInt(_0x19a94a(0x149))/0xc);if(_0x21bd97===_0x36aa76)break;else _0x3e5173['push'](_0x3e5173['shift']());}catch(_0x42871b){_0x3e5173['push'](_0x3e5173['shift']());}}}(a8_0x5db3,0x9f8b2));function a8_0x5db3(){const _0x430ca5=['type','File','log','ACTION_ROUTE_KEY','filter','propertyData','ACTION_KEY','prefix','String','WEB_ROUTER_PARAM_KEY','1820QQiUBs','getMethodParamTypes','isArray','summary','215178cDExEI','title','6946ShJmYn','@anncic-api/validator','routerOptions','17235UXbCRc','required','keys','route','89WmourC','request','body','limit','file','min','RouteParamTypes','describe','filepath','372uJCqlm','只允许:[','1107660bXiUnv','flags.default','query','array','number','get','startsWith','PARAM','name','replace','object','BODY','string','description','children','文件上传-','default','concat','boolean','allow','getRoutes','flags.presence','metadata','flags.description','requestMethod','942062nrctTG','args','parameterIndex','FIELDS','getClassMetadata','push','QUERY','rules','@midwayjs/core','items','iterator','1924624ebdSCZ','intercept','routes','FILESTREAM','lodash','FILESSTREAM','path','function','Object','routerName','tagName','test','RULES_KEY','header','module','pprefix','12FJbYWQ','method','91YpcwQf','indexOf','/static/apitest','key','listModule','length','max','1112516IdlVtD'];a8_0x5db3=function(){return _0x430ca5;};return a8_0x5db3();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0xe61618(0x113)),validator_1=require(a8_0xe61618(0x13a)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a8_0xe61618(0x10c)),action_1=require('../types/action');function a8_0x2aac(_0x2e42b7,_0x117036){const _0x5db321=a8_0x5db3();return a8_0x2aac=function(_0x2aacba,_0x3978b2){_0x2aacba=_0x2aacba-0x102;let _0x53ddd4=_0x5db321[_0x2aacba];return _0x53ddd4;},a8_0x2aac(_0x2e42b7,_0x117036);}function getRoutes(_0x1c1a4f={'prefix':'/','module':![]}){const _0x3bfc7c=a8_0xe61618;var _0x3283be,_0x461eb2;const _0x29c131=(0x0,core_3[_0x3bfc7c(0x125)])(action_1['ACTION_KEY']),_0x39441d={},_0x1d01e3=Array[_0x3bfc7c(0x135)](_0x1c1a4f['filter']||[])?_0x1c1a4f[_0x3bfc7c(0x12d)]||[]:[_0x1c1a4f[_0x3bfc7c(0x12d)]];_0x21ef35:for(const _0x2a61a0 of _0x29c131){let _0x230061=(0x0,core_3[_0x3bfc7c(0x108)])(action_1[_0x3bfc7c(0x12f)],_0x2a61a0),_0x256cf5=(0x0,core_3[_0x3bfc7c(0x108)])(action_1[_0x3bfc7c(0x12c)],_0x2a61a0);if(_0x230061&&_0x256cf5){let _0x40f564=_0x230061['prefix'],_0x1a27f2={};if(_0x1c1a4f[_0x3bfc7c(0x11d)]&&(0x0,lodash_1[_0x3bfc7c(0x150)])(_0x230061,_0x3bfc7c(0x11d),![])!=_0x1c1a4f[_0x3bfc7c(0x11d)])continue _0x21ef35;else{if(_0x1c1a4f[_0x3bfc7c(0x11d)]===![]&&!!(0x0,lodash_1['get'])(_0x230061,'module',null))continue _0x21ef35;}if(_0x1c1a4f[_0x3bfc7c(0x130)]&&!_0x40f564[_0x3bfc7c(0x151)](_0x1c1a4f[_0x3bfc7c(0x130)]))continue _0x21ef35;_0x40f564!=='/'?(_0x1a27f2[_0x3bfc7c(0x136)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x119)])||(/^\//[_0x3bfc7c(0x11a)](_0x40f564)?_0x40f564['split']('/')[0x1]:_0x40f564),_0x1a27f2['description']=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x158)])||_0x1a27f2[_0x3bfc7c(0x136)],_0x1a27f2[_0x3bfc7c(0x111)]=[]):(_0x1a27f2[_0x3bfc7c(0x136)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)]['tagName'])||_0x3bfc7c(0x15b),_0x1a27f2[_0x3bfc7c(0x158)]=(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x13b)][_0x3bfc7c(0x158)])||'',_0x1a27f2[_0x3bfc7c(0x111)]=[]);_0x1c1a4f[_0x3bfc7c(0x148)]&&(_0x1a27f2[_0x3bfc7c(0x148)]=_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x148)]);(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061['pprefix'])&&(_0x1a27f2['prefix']=_0x230061[_0x3bfc7c(0x11e)]);(_0x230061===null||_0x230061===void 0x0?void 0x0:_0x230061[_0x3bfc7c(0x11d)])&&(_0x1a27f2[_0x3bfc7c(0x11d)]=_0x230061['module']);let _0x2b592b=(0x0,core_3[_0x3bfc7c(0x108)])(core_2['INJECT_CUSTOM_PARAM'],_0x2a61a0)||{};if(typeof _0x256cf5[Symbol[_0x3bfc7c(0x10e)]]===_0x3bfc7c(0x116))for(let _0x2b06b6 of _0x256cf5){if((_0x1c1a4f===null||_0x1c1a4f===void 0x0?void 0x0:_0x1c1a4f[_0x3bfc7c(0x110)])&&!(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x110)]))continue;let _0x45f484={};_0x45f484[_0x3bfc7c(0x120)]=_0x2b06b6[_0x3bfc7c(0x103)],_0x45f484[_0x3bfc7c(0x13f)]=(_0x40f564+_0x2b06b6['path'])[_0x3bfc7c(0x154)](/\/{1,}/,'/'),_0x45f484['summary']=(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x118)])||_0x1a27f2['summary']||'default',_0x45f484[_0x3bfc7c(0x158)]=(_0x2b06b6===null||_0x2b06b6===void 0x0?void 0x0:_0x2b06b6[_0x3bfc7c(0x158)])||'',_0x45f484[_0x3bfc7c(0x141)]=[];if(!(0x0,lodash_1[_0x3bfc7c(0x151)])(_0x45f484[_0x3bfc7c(0x13f)],'static/apitest')&&!(0x0,lodash_1[_0x3bfc7c(0x151)])(_0x45f484['route'],_0x3bfc7c(0x123))&&_0x1d01e3[_0x3bfc7c(0x122)](_0x45f484[_0x3bfc7c(0x13f)])===-0x1){if(!(_0x1c1a4f===null||_0x1c1a4f===void 0x0?void 0x0:_0x1c1a4f['noreq'])){let _0x5d3b50=(0x0,core_3[_0x3bfc7c(0x134)])(new _0x2a61a0(),_0x2b06b6['method']);for(const _0x3fd54d in _0x5d3b50){let _0x48a50c=(_0x3283be=_0x2b592b[_0x2b06b6[_0x3bfc7c(0x120)]])===null||_0x3283be===void 0x0?void 0x0:_0x3283be['find'](_0x2ee907=>_0x2ee907['parameterIndex']==_0x3fd54d&&_0x2ee907['key']===core_2[_0x3bfc7c(0x132)]&&(_0x2ee907===null||_0x2ee907===void 0x0?void 0x0:_0x2ee907[_0x3bfc7c(0x161)]));if(_0x48a50c===null||_0x48a50c===void 0x0?void 0x0:_0x48a50c['metadata']){let _0x3fb75a=convertTypeToString(_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x129)]||0x0);if([_0x3bfc7c(0x14d),'body']['indexOf'](_0x3fb75a)!=-0x1&&_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)][_0x3bfc7c(0x122)](':')==-0x1&&!_0x45f484[_0x3bfc7c(0x141)]['find'](_0x4e8e28=>_0x4e8e28[_0x3bfc7c(0x124)]==_0x48a50c['metadata'][_0x3bfc7c(0x12e)]))_0x45f484['request'][_0x3bfc7c(0x109)]({'key':_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)],'title':_0x48a50c[_0x3bfc7c(0x161)][_0x3bfc7c(0x12e)],'type':convertSchemaType(_0x5d3b50[_0x48a50c[_0x3bfc7c(0x106)]][_0x3bfc7c(0x153)]),'required':![],'default':'','desc':''});else{if(_0x3fb75a==_0x3bfc7c(0x144)){let _0x5d0946=((_0x461eb2=_0x48a50c===null||_0x48a50c===void 0x0?void 0x0:_0x48a50c[_0x3bfc7c(0x161)])===null||_0x461eb2===void 0x0?void 0x0:_0x461eb2[_0x3bfc7c(0x12e)])||_0x3bfc7c(0x144);_0x5d0946[_0x3bfc7c(0x122)](':')==-0x1&&!_0x45f484[_0x3bfc7c(0x141)]['find'](_0x4b45ca=>_0x4b45ca[_0x3bfc7c(0x124)]==_0x5d0946&&_0x4b45ca[_0x3bfc7c(0x129)]=='file')&&_0x45f484[_0x3bfc7c(0x141)][_0x3bfc7c(0x109)]({'key':_0x5d0946,'title':_0x3bfc7c(0x15a)+_0x5d0946,'type':_0x3bfc7c(0x144),'required':!![],'default':'','desc':''});}}}else{const _0x33b0df=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3bfc7c(0x11b)],_0x5d3b50[_0x3fd54d]);_0x33b0df&&_0x45f484[_0x3bfc7c(0x141)][_0x3bfc7c(0x109)](...getJoiRequest(_0x33b0df));}}}_0x1a27f2['routes'][_0x3bfc7c(0x109)](_0x45f484);}}if(_0x1a27f2[_0x3bfc7c(0x111)][_0x3bfc7c(0x126)]>0x0){let _0x277ea1=_0x39441d[_0x40f564];_0x277ea1?(_0x277ea1['summary']!=_0x1a27f2['summary']&&(_0x277ea1[_0x3bfc7c(0x136)]=_0x277ea1[_0x3bfc7c(0x136)]+','+_0x1a27f2[_0x3bfc7c(0x136)]),_0x277ea1[_0x3bfc7c(0x158)]!=_0x1a27f2[_0x3bfc7c(0x158)]&&(_0x277ea1['description']=_0x277ea1['description']+','+_0x1a27f2[_0x3bfc7c(0x158)]),_0x277ea1[_0x3bfc7c(0x111)]=_0x277ea1[_0x3bfc7c(0x111)][_0x3bfc7c(0x15c)](_0x1a27f2[_0x3bfc7c(0x111)]),_0x39441d[_0x40f564]=_0x277ea1):_0x39441d[_0x40f564]=_0x1a27f2;}}}return _0x39441d;}exports[a8_0xe61618(0x15f)]=getRoutes;function getJoiRequest(_0x27e89a){const _0x51cfad=a8_0xe61618,_0x376508=[];for(let _0x217606 in _0x27e89a){const _0x32000a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x9a7534=typeof _0x27e89a[_0x217606][_0x51cfad(0x147)]==_0x51cfad(0x116)?_0x27e89a[_0x217606][_0x51cfad(0x147)]():_0x27e89a[_0x217606];_0x32000a[_0x51cfad(0x124)]=_0x217606,_0x32000a[_0x51cfad(0x129)]=_0x9a7534[_0x51cfad(0x129)],_0x32000a['title']=(0x0,lodash_1[_0x51cfad(0x150)])(_0x9a7534,'flags.label',_0x217606),_0x32000a[_0x51cfad(0x15b)]=(0x0,lodash_1['get'])(_0x9a7534,_0x51cfad(0x14c),''),_0x32000a[_0x51cfad(0x13d)]=(0x0,lodash_1[_0x51cfad(0x150)])(_0x9a7534,_0x51cfad(0x160),'')==_0x51cfad(0x13d),_0x32000a[_0x51cfad(0x158)]=(0x0,lodash_1['get'])(_0x9a7534,_0x51cfad(0x102),'');if(_0x9a7534[_0x51cfad(0x129)]==_0x51cfad(0x155))_0x32000a[_0x51cfad(0x159)]=getJoiRequest(_0x9a7534[_0x51cfad(0x13e)]);else _0x9a7534[_0x51cfad(0x129)]==_0x51cfad(0x14e)&&_0x9a7534[_0x51cfad(0x10d)]&&Array['isArray'](_0x9a7534[_0x51cfad(0x10d)])&&_0x9a7534[_0x51cfad(0x10d)][0x0]&&console[_0x51cfad(0x12b)](_0x217606+'-array',_0x9a7534);_0x9a7534[_0x51cfad(0x15e)]&&Array['isArray'](_0x9a7534[_0x51cfad(0x15e)])&&_0x9a7534[_0x51cfad(0x15e)][_0x51cfad(0x126)]>0x0&&(_0x32000a[_0x51cfad(0x158)]=_0x51cfad(0x14a)+_0x9a7534[_0x51cfad(0x15e)]['join'](',')+'];'+_0x32000a['description']);if(_0x32000a[_0x51cfad(0x124)]&&_0x32000a[_0x51cfad(0x129)]){const _0x5eb015={};for(const _0x1f4397 of _0x9a7534[_0x51cfad(0x10b)]||[]){if(_0x1f4397['name']===_0x51cfad(0x145)&&_0x1f4397[_0x51cfad(0x105)])_0x5eb015['min']=_0x1f4397[_0x51cfad(0x105)][_0x51cfad(0x143)];else _0x1f4397[_0x51cfad(0x153)]===_0x51cfad(0x127)&&(_0x5eb015[_0x51cfad(0x127)]=_0x1f4397[_0x51cfad(0x105)][_0x51cfad(0x143)]);}_0x32000a[_0x51cfad(0x10b)]=_0x5eb015;}_0x32000a[_0x51cfad(0x124)]&&_0x32000a[_0x51cfad(0x138)]&&_0x376508['push'](_0x32000a);}return _0x376508;}function convertSchemaType(_0xb2f770){const _0x2fa010=a8_0xe61618;switch(_0xb2f770){case _0x2fa010(0x117):return'object';case'Boolean':return _0x2fa010(0x15d);case'Number':return _0x2fa010(0x14f);case _0x2fa010(0x131):return _0x2fa010(0x157);case _0x2fa010(0x12a):return _0x2fa010(0x144);default:return _0x2fa010(0x157);}}function convertTypeToString(_0x1ea1ef){const _0x4c6d69=a8_0xe61618;switch(_0x1ea1ef){case core_1['RouteParamTypes']['HEADERS']:return'header';case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x10a)]:return'query';case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x152)]:return _0x4c6d69(0x115);case core_1['RouteParamTypes'][_0x4c6d69(0x156)]:return _0x4c6d69(0x142);case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x107)]:case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x114)]:case core_1[_0x4c6d69(0x146)][_0x4c6d69(0x112)]:return _0x4c6d69(0x144);default:return _0x4c6d69(0x11c);}}
|
|
1
|
+
'use strict';const a8_0x154108=a8_0x41a6;(function(_0x16fa84,_0xae00d5){const _0x4764e2=a8_0x41a6,_0x23d7f7=_0x16fa84();while(!![]){try{const _0x4c6765=parseInt(_0x4764e2(0xac))/0x1*(-parseInt(_0x4764e2(0x8d))/0x2)+parseInt(_0x4764e2(0xc4))/0x3*(-parseInt(_0x4764e2(0xc2))/0x4)+parseInt(_0x4764e2(0xb6))/0x5*(-parseInt(_0x4764e2(0x92))/0x6)+-parseInt(_0x4764e2(0x80))/0x7+-parseInt(_0x4764e2(0x8c))/0x8+parseInt(_0x4764e2(0xa6))/0x9+parseInt(_0x4764e2(0xb3))/0xa;if(_0x4c6765===_0xae00d5)break;else _0x23d7f7['push'](_0x23d7f7['shift']());}catch(_0x4d4f92){_0x23d7f7['push'](_0x23d7f7['shift']());}}}(a8_0x1814,0xa44c4));function a8_0x41a6(_0x2d3ac0,_0x1aa23f){const _0x181429=a8_0x1814();return a8_0x41a6=function(_0x41a6ff,_0x5e7eb4){_0x41a6ff=_0x41a6ff-0x6e;let _0x1db488=_0x181429[_0x41a6ff];return _0x1db488;},a8_0x41a6(_0x2d3ac0,_0x1aa23f);}Object['defineProperty'](exports,a8_0x154108(0x89),{'value':!![]}),exports[a8_0x154108(0x9e)]=void 0x0;const lodash_1=require(a8_0x154108(0xa7)),validator_1=require(a8_0x154108(0x78)),core_1=require('@midwayjs/core'),core_2=require(a8_0x154108(0x8e)),core_3=require(a8_0x154108(0x8e)),action_1=require('../types/action');function getRoutes(_0x1cee78={'prefix':'/','module':![]}){const _0x5ec00a=a8_0x154108;var _0x49b858,_0x33917b;const _0x27ac41=(0x0,core_3['listModule'])(action_1[_0x5ec00a(0x73)]),_0x1d7d2e={},_0x5b10da=Array[_0x5ec00a(0x8b)](_0x1cee78[_0x5ec00a(0x9d)]||[])?_0x1cee78[_0x5ec00a(0x9d)]||[]:[_0x1cee78[_0x5ec00a(0x9d)]];_0x1e2472:for(const _0x380a9b of _0x27ac41){let _0x53f5fa=(0x0,core_3[_0x5ec00a(0xab)])(action_1['ACTION_KEY'],_0x380a9b),_0x11e92c=(0x0,core_3[_0x5ec00a(0xab)])(action_1[_0x5ec00a(0x7d)],_0x380a9b);if(_0x53f5fa&&_0x11e92c){let _0x4af6d2=_0x53f5fa[_0x5ec00a(0xb8)],_0x51d4e6={};if(_0x1cee78[_0x5ec00a(0xc7)]&&(0x0,lodash_1[_0x5ec00a(0xc8)])(_0x53f5fa,_0x5ec00a(0xc7),![])!=_0x1cee78[_0x5ec00a(0xc7)])continue _0x1e2472;else{if(_0x1cee78['module']===![]&&!!(0x0,lodash_1[_0x5ec00a(0xc8)])(_0x53f5fa,'module',null))continue _0x1e2472;}if(_0x1cee78[_0x5ec00a(0xb8)]&&!_0x4af6d2[_0x5ec00a(0x7a)](_0x1cee78[_0x5ec00a(0xb8)]))continue _0x1e2472;_0x4af6d2!=='/'?(_0x51d4e6[_0x5ec00a(0x9b)]=(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa[_0x5ec00a(0x70)][_0x5ec00a(0xc0)])||(/^\//[_0x5ec00a(0x83)](_0x4af6d2)?_0x4af6d2[_0x5ec00a(0x6e)]('/')[0x1]:_0x4af6d2),_0x51d4e6[_0x5ec00a(0xa1)]=(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa['routerOptions']['description'])||_0x51d4e6[_0x5ec00a(0x9b)],_0x51d4e6['routes']=[]):(_0x51d4e6[_0x5ec00a(0x9b)]=(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa['routerOptions'][_0x5ec00a(0xc0)])||_0x5ec00a(0x93),_0x51d4e6[_0x5ec00a(0xa1)]=(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa[_0x5ec00a(0x70)]['description'])||'',_0x51d4e6[_0x5ec00a(0x7c)]=[]);_0x1cee78['filepath']&&(_0x51d4e6['filepath']=_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa['filepath']);(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa[_0x5ec00a(0xc6)])&&(_0x51d4e6['prefix']=_0x53f5fa[_0x5ec00a(0xc6)]);(_0x53f5fa===null||_0x53f5fa===void 0x0?void 0x0:_0x53f5fa['module'])&&(_0x51d4e6[_0x5ec00a(0xc7)]=_0x53f5fa['module']);let _0x86303d=(0x0,core_3[_0x5ec00a(0xab)])(core_2['INJECT_CUSTOM_PARAM'],_0x380a9b)||{};if(typeof _0x11e92c[Symbol[_0x5ec00a(0xa4)]]===_0x5ec00a(0x7b))for(let _0x120111 of _0x11e92c){if((_0x1cee78===null||_0x1cee78===void 0x0?void 0x0:_0x1cee78[_0x5ec00a(0xad)])&&!(_0x120111===null||_0x120111===void 0x0?void 0x0:_0x120111[_0x5ec00a(0xad)]))continue;let _0x94bb8c={};_0x94bb8c[_0x5ec00a(0x90)]=_0x120111[_0x5ec00a(0x94)],_0x94bb8c['route']=(_0x4af6d2+_0x120111[_0x5ec00a(0xb9)])[_0x5ec00a(0x98)](/\/{1,}/,'/'),_0x94bb8c[_0x5ec00a(0x9b)]=(_0x120111===null||_0x120111===void 0x0?void 0x0:_0x120111[_0x5ec00a(0x9a)])||_0x51d4e6[_0x5ec00a(0x9b)]||_0x5ec00a(0x93),_0x94bb8c[_0x5ec00a(0xa1)]=(_0x120111===null||_0x120111===void 0x0?void 0x0:_0x120111['description'])||'',_0x94bb8c['request']=[];if(!(0x0,lodash_1['startsWith'])(_0x94bb8c[_0x5ec00a(0x96)],_0x5ec00a(0xbe))&&!(0x0,lodash_1[_0x5ec00a(0x7a)])(_0x94bb8c[_0x5ec00a(0x96)],_0x5ec00a(0xa2))&&_0x5b10da[_0x5ec00a(0xa0)](_0x94bb8c['route'])===-0x1){if(!(_0x1cee78===null||_0x1cee78===void 0x0?void 0x0:_0x1cee78['noreq'])){let _0x86cb0c=(0x0,core_3[_0x5ec00a(0xbd)])(new _0x380a9b(),_0x120111[_0x5ec00a(0x90)]);for(const _0x4747d7 in _0x86cb0c){let _0x48f0f9=(_0x49b858=_0x86303d[_0x120111[_0x5ec00a(0x90)]])===null||_0x49b858===void 0x0?void 0x0:_0x49b858['find'](_0x36a29e=>_0x36a29e[_0x5ec00a(0xb4)]==_0x4747d7&&_0x36a29e[_0x5ec00a(0xa5)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x36a29e===null||_0x36a29e===void 0x0?void 0x0:_0x36a29e[_0x5ec00a(0x74)]));if(_0x48f0f9===null||_0x48f0f9===void 0x0?void 0x0:_0x48f0f9[_0x5ec00a(0x74)]){let _0x506823=convertTypeToString(_0x48f0f9[_0x5ec00a(0x74)][_0x5ec00a(0xcb)]||0x0);if([_0x5ec00a(0x71),'body'][_0x5ec00a(0xa0)](_0x506823)!=-0x1&&_0x48f0f9[_0x5ec00a(0x74)][_0x5ec00a(0xca)][_0x5ec00a(0xa0)](':')==-0x1&&!_0x94bb8c['request'][_0x5ec00a(0x76)](_0x1deed0=>_0x1deed0[_0x5ec00a(0xa5)]==_0x48f0f9['metadata'][_0x5ec00a(0xca)]))_0x94bb8c[_0x5ec00a(0x8f)][_0x5ec00a(0xb2)]({'key':_0x48f0f9['metadata'][_0x5ec00a(0xca)],'title':_0x48f0f9[_0x5ec00a(0x74)]['propertyData'],'type':convertSchemaType(_0x86cb0c[_0x48f0f9[_0x5ec00a(0xb4)]][_0x5ec00a(0xaf)]),'required':![],'default':'','desc':''});else{if(_0x506823=='file'){let _0x3873e5=((_0x33917b=_0x48f0f9===null||_0x48f0f9===void 0x0?void 0x0:_0x48f0f9['metadata'])===null||_0x33917b===void 0x0?void 0x0:_0x33917b['propertyData'])||_0x5ec00a(0x82);_0x3873e5[_0x5ec00a(0xa0)](':')==-0x1&&!_0x94bb8c[_0x5ec00a(0x8f)]['find'](_0x832be9=>_0x832be9[_0x5ec00a(0xa5)]==_0x3873e5&&_0x832be9[_0x5ec00a(0xcb)]==_0x5ec00a(0x82))&&_0x94bb8c[_0x5ec00a(0x8f)]['push']({'key':_0x3873e5,'title':_0x5ec00a(0x99)+_0x3873e5,'type':_0x5ec00a(0x82),'required':!![],'default':'','desc':''});}}}else{const _0x230334=(0x0,core_3[_0x5ec00a(0xc5)])(validator_1[_0x5ec00a(0x84)],_0x86cb0c[_0x4747d7]);_0x230334&&_0x94bb8c[_0x5ec00a(0x8f)][_0x5ec00a(0xb2)](...getJoiRequest(_0x230334));}}}_0x51d4e6[_0x5ec00a(0x7c)]['push'](_0x94bb8c);}}if(_0x51d4e6['routes']['length']>0x0){let _0x4daa31=_0x1d7d2e[_0x4af6d2];_0x4daa31?(_0x4daa31['summary']!=_0x51d4e6[_0x5ec00a(0x9b)]&&(_0x4daa31['summary']=_0x4daa31[_0x5ec00a(0x9b)]+','+_0x51d4e6[_0x5ec00a(0x9b)]),_0x4daa31[_0x5ec00a(0xa1)]!=_0x51d4e6[_0x5ec00a(0xa1)]&&(_0x4daa31['description']=_0x4daa31[_0x5ec00a(0xa1)]+','+_0x51d4e6[_0x5ec00a(0xa1)]),_0x4daa31[_0x5ec00a(0x7c)]=_0x4daa31[_0x5ec00a(0x7c)]['concat'](_0x51d4e6[_0x5ec00a(0x7c)]),_0x1d7d2e[_0x4af6d2]=_0x4daa31):_0x1d7d2e[_0x4af6d2]=_0x51d4e6;}}}return _0x1d7d2e;}function a8_0x1814(){const _0x7ff511=['48MYkIaX','default','requestMethod','Boolean','route','RouteParamTypes','replace','文件上传-','routerName','summary','HEADERS','filter','getRoutes','args','indexOf','description','/static/apitest','flags.label','iterator','key','1478718mgEvgJ','lodash','rules','-array','header','getClassMetadata','122618vsMusN','intercept','flags.description','name','String','children','push','25735720QhizLr','parameterIndex','log','147185oRVnxq','max','prefix','path','body','flags.default','title','getMethodParamTypes','static/apitest','required','tagName','Number','284mUPTVE','QUERY','16419uRaRpE','getClassExtendedMetadata','pprefix','module','get','number','propertyData','type','split','join','routerOptions','query','boolean','ACTION_KEY','metadata','keys','find','flags.presence','@anncic-api/validator','Object','startsWith','function','routes','ACTION_ROUTE_KEY','FILESTREAM','limit','7074102SGAkhQ','string','file','test','RULES_KEY','min','describe','FILESSTREAM','allow','__esModule','只允许:[','isArray','1480072XRcZlB','4dfXtgM','@midwayjs/core','request','method','items'];a8_0x1814=function(){return _0x7ff511;};return a8_0x1814();}exports[a8_0x154108(0x9e)]=getRoutes;function getJoiRequest(_0x3ddbe7){const _0x7774ca=a8_0x154108,_0x397471=[];for(let _0x3e21ba in _0x3ddbe7){const _0x17a85c={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x27545a=typeof _0x3ddbe7[_0x3e21ba][_0x7774ca(0x86)]==_0x7774ca(0x7b)?_0x3ddbe7[_0x3e21ba]['describe']():_0x3ddbe7[_0x3e21ba];_0x17a85c['key']=_0x3e21ba,_0x17a85c[_0x7774ca(0xcb)]=_0x27545a['type'],_0x17a85c[_0x7774ca(0xbc)]=(0x0,lodash_1[_0x7774ca(0xc8)])(_0x27545a,_0x7774ca(0xa3),_0x3e21ba),_0x17a85c[_0x7774ca(0x93)]=(0x0,lodash_1['get'])(_0x27545a,_0x7774ca(0xbb),''),_0x17a85c[_0x7774ca(0xbf)]=(0x0,lodash_1[_0x7774ca(0xc8)])(_0x27545a,_0x7774ca(0x77),'')==_0x7774ca(0xbf),_0x17a85c[_0x7774ca(0xa1)]=(0x0,lodash_1['get'])(_0x27545a,_0x7774ca(0xae),'');if(_0x27545a['type']=='object')_0x17a85c[_0x7774ca(0xb1)]=getJoiRequest(_0x27545a[_0x7774ca(0x75)]);else _0x27545a[_0x7774ca(0xcb)]=='array'&&_0x27545a[_0x7774ca(0x91)]&&Array['isArray'](_0x27545a[_0x7774ca(0x91)])&&_0x27545a[_0x7774ca(0x91)][0x0]&&console[_0x7774ca(0xb5)](_0x3e21ba+_0x7774ca(0xa9),_0x27545a);_0x27545a[_0x7774ca(0x88)]&&Array[_0x7774ca(0x8b)](_0x27545a[_0x7774ca(0x88)])&&_0x27545a[_0x7774ca(0x88)]['length']>0x0&&(_0x17a85c['description']=_0x7774ca(0x8a)+_0x27545a['allow'][_0x7774ca(0x6f)](',')+'];'+_0x17a85c[_0x7774ca(0xa1)]);if(_0x17a85c['key']&&_0x17a85c[_0x7774ca(0xcb)]){const _0x3a80ee={};for(const _0x57eff2 of _0x27545a[_0x7774ca(0xa8)]||[]){if(_0x57eff2[_0x7774ca(0xaf)]===_0x7774ca(0x85)&&_0x57eff2[_0x7774ca(0x9f)])_0x3a80ee[_0x7774ca(0x85)]=_0x57eff2['args'][_0x7774ca(0x7f)];else _0x57eff2['name']===_0x7774ca(0xb7)&&(_0x3a80ee[_0x7774ca(0xb7)]=_0x57eff2[_0x7774ca(0x9f)][_0x7774ca(0x7f)]);}_0x17a85c[_0x7774ca(0xa8)]=_0x3a80ee;}_0x17a85c[_0x7774ca(0xa5)]&&_0x17a85c[_0x7774ca(0xbc)]&&_0x397471[_0x7774ca(0xb2)](_0x17a85c);}return _0x397471;}function convertSchemaType(_0x21fc4f){const _0xed65dd=a8_0x154108;switch(_0x21fc4f){case _0xed65dd(0x79):return'object';case _0xed65dd(0x95):return _0xed65dd(0x72);case _0xed65dd(0xc1):return _0xed65dd(0xc9);case _0xed65dd(0xb0):return'string';case'File':return'file';default:return _0xed65dd(0x81);}}function convertTypeToString(_0x307020){const _0x46c9f0=a8_0x154108;switch(_0x307020){case core_1['RouteParamTypes'][_0x46c9f0(0x9c)]:return'header';case core_1[_0x46c9f0(0x97)][_0x46c9f0(0xc3)]:return _0x46c9f0(0x71);case core_1['RouteParamTypes']['PARAM']:return _0x46c9f0(0xb9);case core_1[_0x46c9f0(0x97)]['BODY']:return _0x46c9f0(0xba);case core_1[_0x46c9f0(0x97)]['FIELDS']:case core_1[_0x46c9f0(0x97)][_0x46c9f0(0x87)]:case core_1[_0x46c9f0(0x97)][_0x46c9f0(0x7e)]:return _0x46c9f0(0x82);default:return _0x46c9f0(0xaa);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x51cbbc=a9_0x175c;(function(_0x41280e,_0x2a95d9){var _0x3ca81e=a9_0x175c,_0x571025=_0x41280e();while(!![]){try{var _0xc850e4=-parseInt(_0x3ca81e(0x107))/0x1*(parseInt(_0x3ca81e(0xf9))/0x2)+-parseInt(_0x3ca81e(0xe4))/0x3*(parseInt(_0x3ca81e(0x101))/0x4)+-parseInt(_0x3ca81e(0xfc))/0x5+-parseInt(_0x3ca81e(0xea))/0x6*(parseInt(_0x3ca81e(0x103))/0x7)+-parseInt(_0x3ca81e(0xe8))/0x8*(parseInt(_0x3ca81e(0x109))/0x9)+parseInt(_0x3ca81e(0xe2))/0xa*(parseInt(_0x3ca81e(0xf5))/0xb)+parseInt(_0x3ca81e(0x100))/0xc;if(_0xc850e4===_0x2a95d9)break;else _0x571025['push'](_0x571025['shift']());}catch(_0x59c794){_0x571025['push'](_0x571025['shift']());}}}(a9_0x3933,0xe6d29));var __createBinding=this&&this[a9_0x51cbbc(0xe5)]||(Object[a9_0x51cbbc(0xe3)]?function(_0x31002c,_0x2e8937,_0x2f9a7a,_0xc8088f){var _0x1409f9=a9_0x51cbbc;if(_0xc8088f===undefined)_0xc8088f=_0x2f9a7a;var _0x468b96=Object[_0x1409f9(0x11f)](_0x2e8937,_0x2f9a7a);(!_0x468b96||(_0x1409f9(0x10c)in _0x468b96?!_0x2e8937[_0x1409f9(0xe0)]:_0x468b96[_0x1409f9(0xee)]||_0x468b96['configurable']))&&(_0x468b96={'enumerable':!![],'get':function(){return _0x2e8937[_0x2f9a7a];}}),Object[_0x1409f9(0xf7)](_0x31002c,_0xc8088f,_0x468b96);}:function(_0x231092,_0x1ef0d0,_0x4b26aa,_0x21e6ac){if(_0x21e6ac===undefined)_0x21e6ac=_0x4b26aa;_0x231092[_0x21e6ac]=_0x1ef0d0[_0x4b26aa];}),__exportStar=this&&this[a9_0x51cbbc(0xf6)]||function(_0x26aadd,_0x72ecd4){var _0x3df56c=a9_0x51cbbc;for(var _0x3c0b81 in _0x26aadd)if(_0x3c0b81!==_0x3df56c(0x112)&&!Object[_0x3df56c(0xfb)][_0x3df56c(0xf2)]['call'](_0x72ecd4,_0x3c0b81))__createBinding(_0x72ecd4,_0x26aadd,_0x3c0b81);};Object['defineProperty'](exports,a9_0x51cbbc(0xe0),{'value':!![]}),exports[a9_0x51cbbc(0x119)]=exports['ScopeEnum']=exports[a9_0x51cbbc(0x108)]=exports[a9_0x51cbbc(0xe6)]=exports[a9_0x51cbbc(0x116)]=exports[a9_0x51cbbc(0xe9)]=exports['Config']=exports[a9_0x51cbbc(0x114)]=exports['Init']=exports['Headers']=exports[a9_0x51cbbc(0x104)]=exports[a9_0x51cbbc(0x10e)]=exports[a9_0x51cbbc(0x11a)]=exports[a9_0x51cbbc(0x10a)]=exports['Files']=exports[a9_0x51cbbc(0x105)]=exports[a9_0x51cbbc(0x10b)]=exports[a9_0x51cbbc(0x118)]=exports[a9_0x51cbbc(0xe7)]=exports['ExcelService']=exports['ApiService']=exports['EventService']=exports[a9_0x51cbbc(0x11e)]=exports[a9_0x51cbbc(0x10f)]=exports[a9_0x51cbbc(0xe1)]=exports[a9_0x51cbbc(0x102)]=exports[a9_0x51cbbc(0x11b)]=exports[a9_0x51cbbc(0x11c)]=void 0x0;const getAppsConfig_1=require(a9_0x51cbbc(0xf3));Object['defineProperty'](exports,a9_0x51cbbc(0x119),{'enumerable':!![],'get':function(){var _0x518b00=a9_0x51cbbc;return getAppsConfig_1[_0x518b00(0x119)];}}),__exportStar(require(a9_0x51cbbc(0xfe)),exports),__exportStar(require(a9_0x51cbbc(0x110)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x11c),{'enumerable':!![],'get':function(){var _0x3d7527=a9_0x51cbbc;return ActionApi_1[_0x3d7527(0x11c)];}});var Action_1=require(a9_0x51cbbc(0xf8));function a9_0x175c(_0x4a369f,_0x49b01a){var _0x393383=a9_0x3933();return a9_0x175c=function(_0x175cb4,_0x4d0057){_0x175cb4=_0x175cb4-0xe0;var _0x5f269a=_0x393383[_0x175cb4];return _0x5f269a;},a9_0x175c(_0x4a369f,_0x49b01a);}Object[a9_0x51cbbc(0xf7)](exports,'Action',{'enumerable':!![],'get':function(){var _0x125b66=a9_0x51cbbc;return Action_1[_0x125b66(0x11b)];}});var ActionApitest_1=require(a9_0x51cbbc(0xef));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x102),{'enumerable':!![],'get':function(){var _0x348871=a9_0x51cbbc;return ActionApitest_1[_0x348871(0x102)];}});var getRoutes_1=require(a9_0x51cbbc(0xeb));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0xe1),{'enumerable':!![],'get':function(){var _0x505952=a9_0x51cbbc;return getRoutes_1[_0x505952(0xe1)];}});function a9_0x3933(){var _0x434e04=['CacheService','getOwnPropertyDescriptor','__esModule','getRoutes','12626340KwCpnq','create','294459fMHUtN','__createBinding','Inject','ValidatorError','12944brqHqr','Logger','6apogJr','./helper/getRoutes','ExcelService','EventService','writable','./decorator/ActionApitest','Headers','ScopeEnum','hasOwnProperty','./helper/getAppsConfig','./service/ExcelService','11zUTeJo','__exportStar','defineProperty','./decorator/Action','744572RPjJfj','Files','prototype','4790280nmdFHM','./service/ApiService','./types/common','@anncic-api/validator','68393940jgdMyQ','76sclIij','Apitest','6599509fJitPU','Query','File','CustomConfiguration','2QRfmLg','Scope','8379zaaqFp','Fields','Configuration','get','Config','Param','ApiError','./service/ApitestService','Init','default','./configuration','App','@anncic-api/event','Provide','./exception/ApiError','ValidatorService','getAppsConfig','Body','Action','Api','@anncic-api/cache'];a9_0x3933=function(){return _0x434e04;};return a9_0x3933();}var ApiError_1=require(a9_0x51cbbc(0x117));Object['defineProperty'](exports,a9_0x51cbbc(0x10f),{'enumerable':!![],'get':function(){var _0x57c279=a9_0x51cbbc;return ApiError_1[_0x57c279(0x10f)];}});var cache_1=require(a9_0x51cbbc(0x11d));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x11e),{'enumerable':!![],'get':function(){var _0x5937f8=a9_0x51cbbc;return cache_1[_0x5937f8(0x11e)];}});var event_1=require(a9_0x51cbbc(0x115));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0xed),{'enumerable':!![],'get':function(){var _0x510c9a=a9_0x51cbbc;return event_1[_0x510c9a(0xed)];}});var ApiService_1=require(a9_0x51cbbc(0xfd));Object[a9_0x51cbbc(0xf7)](exports,'ApiService',{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x51cbbc(0xf4));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0xec),{'enumerable':!![],'get':function(){var _0x321fdc=a9_0x51cbbc;return ExcelService_1[_0x321fdc(0xec)];}});var validator_1=require(a9_0x51cbbc(0xff));Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0xe7),{'enumerable':!![],'get':function(){var _0x2f746b=a9_0x51cbbc;return validator_1[_0x2f746b(0xe7)];}}),Object[a9_0x51cbbc(0xf7)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x3bc757=a9_0x51cbbc;return validator_1[_0x3bc757(0x118)];}});var configuration_1=require(a9_0x51cbbc(0x113));Object['defineProperty'](exports,a9_0x51cbbc(0x10b),{'enumerable':!![],'get':function(){var _0x52cff4=a9_0x51cbbc;return configuration_1[_0x52cff4(0x106)];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x509f21=a9_0x51cbbc;return core_1[_0x509f21(0x105)];}}),Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0xfa),{'enumerable':!![],'get':function(){var _0x1706e0=a9_0x51cbbc;return core_1[_0x1706e0(0xfa)];}}),Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x10a),{'enumerable':!![],'get':function(){var _0x5df954=a9_0x51cbbc;return core_1[_0x5df954(0x10a)];}}),Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x11a),{'enumerable':!![],'get':function(){var _0x2bea64=a9_0x51cbbc;return core_1[_0x2bea64(0x11a)];}}),Object['defineProperty'](exports,a9_0x51cbbc(0x10e),{'enumerable':!![],'get':function(){var _0x2da9e1=a9_0x51cbbc;return core_1[_0x2da9e1(0x10e)];}}),Object[a9_0x51cbbc(0xf7)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object['defineProperty'](exports,'Headers',{'enumerable':!![],'get':function(){var _0x5cb198=a9_0x51cbbc;return core_1[_0x5cb198(0xf0)];}}),Object['defineProperty'](exports,a9_0x51cbbc(0x111),{'enumerable':!![],'get':function(){var _0x9a7a13=a9_0x51cbbc;return core_1[_0x9a7a13(0x111)];}});var core_2=require('@midwayjs/core');Object[a9_0x51cbbc(0xf7)](exports,'App',{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x10d),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x51cbbc(0xf7)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x126191=a9_0x51cbbc;return core_2[_0x126191(0xe9)];}}),Object[a9_0x51cbbc(0xf7)](exports,a9_0x51cbbc(0x116),{'enumerable':!![],'get':function(){var _0x3ff2ad=a9_0x51cbbc;return core_2[_0x3ff2ad(0x116)];}}),Object['defineProperty'](exports,a9_0x51cbbc(0xe6),{'enumerable':!![],'get':function(){var _0x3c9206=a9_0x51cbbc;return core_2[_0x3c9206(0xe6)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x16ef61=a9_0x51cbbc;return core_2[_0x16ef61(0x108)];}}),Object[a9_0x51cbbc(0xf7)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4982a1=a9_0x51cbbc;return core_2[_0x4982a1(0xf1)];}}),global[a9_0x51cbbc(0x119)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x2d06f0=a10_0x26a3;(function(_0x144933,_0x2248eb){var _0x246e71=a10_0x26a3,_0x4d81d2=_0x144933();while(!![]){try{var _0x11e489=-parseInt(_0x246e71(0x1c0))/0x1*(-parseInt(_0x246e71(0x1e8))/0x2)+-parseInt(_0x246e71(0x1f3))/0x3+parseInt(_0x246e71(0x1d9))/0x4+-parseInt(_0x246e71(0x1ef))/0x5*(parseInt(_0x246e71(0x1bc))/0x6)+-parseInt(_0x246e71(0x1e3))/0x7*(-parseInt(_0x246e71(0x1d6))/0x8)+-parseInt(_0x246e71(0x1d3))/0x9*(parseInt(_0x246e71(0x1be))/0xa)+parseInt(_0x246e71(0x1c4))/0xb;if(_0x11e489===_0x2248eb)break;else _0x4d81d2['push'](_0x4d81d2['shift']());}catch(_0x4cd81c){_0x4d81d2['push'](_0x4d81d2['shift']());}}}(a10_0x387e,0x96463));function a10_0x387e(){var _0x5a6d89=['缺少头信息:signature','function','2150994tZgJYC','defineProperty','HEADERS_LACK','design:type','crypto-js','entries','__decorate','7818nRAHQO','prototype','438230zJdYDo','checksign','35983raAeSQ','../exception/ApiError','anncicapi','now','10066540yNDSjZ','device','signature','MD5','toString','HEADERS_CHECKCODE','TIMEOUT_LOGINTIME','length','getOwnPropertyDescriptor','HEADERS_DEVICE','checkcode','缺少头信息:','TIMEOUT','push','undefined','180abCmkp','Singleton','join','7960hpAUUu','devices','ApiError','1233072BJhVMW','Config','token','logintime','timeout','password','object','abs','__metadata','secret','7007QJgBwr','decorate','getsign','logintimeout','ScopeEnum','26gIprte','config','requesttime','metadata','@midwayjs/core','map','toLowerCase','1835mvVelA','fromEntries'];a10_0x387e=function(){return _0x5a6d89;};return a10_0x387e();}var __decorate=this&&this[a10_0x2d06f0(0x1f9)]||function(_0xbd4f17,_0x585ff1,_0x138fef,_0x54df48){var _0x598b92=a10_0x2d06f0,_0x4f2c00=arguments['length'],_0x4da71a=_0x4f2c00<0x3?_0x585ff1:_0x54df48===null?_0x54df48=Object[_0x598b92(0x1cc)](_0x585ff1,_0x138fef):_0x54df48,_0x36fae9;if(typeof Reflect===_0x598b92(0x1df)&&typeof Reflect[_0x598b92(0x1e4)]===_0x598b92(0x1f2))_0x4da71a=Reflect[_0x598b92(0x1e4)](_0xbd4f17,_0x585ff1,_0x138fef,_0x54df48);else{for(var _0x2077ee=_0xbd4f17[_0x598b92(0x1cb)]-0x1;_0x2077ee>=0x0;_0x2077ee--)if(_0x36fae9=_0xbd4f17[_0x2077ee])_0x4da71a=(_0x4f2c00<0x3?_0x36fae9(_0x4da71a):_0x4f2c00>0x3?_0x36fae9(_0x585ff1,_0x138fef,_0x4da71a):_0x36fae9(_0x585ff1,_0x138fef))||_0x4da71a;}return _0x4f2c00>0x3&&_0x4da71a&&Object[_0x598b92(0x1f4)](_0x585ff1,_0x138fef,_0x4da71a),_0x4da71a;},__metadata=this&&this[a10_0x2d06f0(0x1e1)]||function(_0x495884,_0x5784e1){var _0x5b1330=a10_0x2d06f0;if(typeof Reflect==='object'&&typeof Reflect[_0x5b1330(0x1eb)]===_0x5b1330(0x1f2))return Reflect[_0x5b1330(0x1eb)](_0x495884,_0x5784e1);};Object[a10_0x2d06f0(0x1f4)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x2d06f0(0x1f7)),core_1=require(a10_0x2d06f0(0x1ec)),ApiError_1=require(a10_0x2d06f0(0x1c1));function a10_0x26a3(_0x407107,_0x1efbdf){var _0x387e24=a10_0x387e();return a10_0x26a3=function(_0x26a39f,_0x214e9c){_0x26a39f=_0x26a39f-0x1bc;var _0x50dc0c=_0x387e24[_0x26a39f];return _0x50dc0c;},a10_0x26a3(_0x407107,_0x1efbdf);}let ApiService=class ApiService{['password'](_0x3c4211){var _0x51f65a=a10_0x2d06f0,_0x3676b7;return _0x3c4211?(0x0,crypto_js_1[_0x51f65a(0x1c7)])(_0x3c4211+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x51f65a(0x1c7)])(_0x3c4211)['toString']()+((_0x3676b7=this['config'])===null||_0x3676b7===void 0x0?void 0x0:_0x3676b7[_0x51f65a(0x1de)]))[_0x51f65a(0x1c8)]())[_0x51f65a(0x1c8)]():'';}['getcheck'](_0x1c7dd3,_0x1a9e3e,_0x8c87c1=Date[a10_0x2d06f0(0x1c3)]()){var _0x129fd0=a10_0x2d06f0;return{'Token':_0x1c7dd3,'Logintime':_0x8c87c1,'Checkcode':this[_0x129fd0(0x1ce)](_0x1c7dd3,_0x1a9e3e,_0x8c87c1)};}[a10_0x2d06f0(0x1e5)](_0xb3ccf9={}){var _0x4879dc=a10_0x2d06f0,_0x90010d;const _0x34ae65=[],_0x914680=Object[_0x4879dc(0x1f0)](Object[_0x4879dc(0x1f8)](_0xb3ccf9)[_0x4879dc(0x1ed)](_0x203f53=>[_0x203f53[0x0][_0x4879dc(0x1ee)](),_0x203f53[0x1]]));for(let _0xd7013e of['device','requesttime',_0x4879dc(0x1db),_0x4879dc(0x1dc),_0x4879dc(0x1ce)]){if(typeof _0x914680[_0xd7013e]==_0x4879dc(0x1d2))throw new AnnError(ApiError_1[_0x4879dc(0x1d8)][_0x4879dc(0x1f5)],{'message':_0x4879dc(0x1cf)+_0xd7013e});_0x34ae65['push'](_0xd7013e+'='+_0x914680[_0xd7013e]);}if(Date['now']()-Math[_0x4879dc(0x1e0)](_0x914680[_0x4879dc(0x1ea)])>this[_0x4879dc(0x1e9)][_0x4879dc(0x1dd)])throw new AnnError(ApiError_1[_0x4879dc(0x1d8)][_0x4879dc(0x1d0)]);if((((_0x90010d=this[_0x4879dc(0x1e9)][_0x4879dc(0x1d7)][_0x914680[_0x4879dc(0x1c5)]])===null||_0x90010d===void 0x0?void 0x0:_0x90010d[_0x4879dc(0x1e6)])||0x0)>0x0&&Date['now']()-Math['abs'](_0x914680[_0x4879dc(0x1dc)])>this[_0x4879dc(0x1e9)][_0x4879dc(0x1d7)][_0x914680[_0x4879dc(0x1c5)]]['logintimeout'])throw new AnnError(ApiError_1[_0x4879dc(0x1d8)][_0x4879dc(0x1ca)]);if(!this[_0x4879dc(0x1e9)][_0x4879dc(0x1d7)][_0x914680[_0x4879dc(0x1c5)]]||!this[_0x4879dc(0x1e9)]['devices'][_0x914680['device']][_0x4879dc(0x1e2)]||!this[_0x4879dc(0x1e9)][_0x4879dc(0x1d7)][_0x914680['device']]['checkcode'])throw new AnnError(ApiError_1[_0x4879dc(0x1d8)][_0x4879dc(0x1cd)]);if(_0x914680[_0x4879dc(0x1db)]&&_0x914680[_0x4879dc(0x1ce)]!=this['checkcode'](_0x914680['token'],_0x914680['device'],_0x914680['logintime']))throw new AnnError(ApiError_1[_0x4879dc(0x1d8)][_0x4879dc(0x1c9)]);return _0x34ae65[_0x4879dc(0x1d1)]('secret='+this[_0x4879dc(0x1e9)][_0x4879dc(0x1d7)][_0x914680[_0x4879dc(0x1c5)]]['secret']),(0x0,crypto_js_1[_0x4879dc(0x1c7)])(_0x34ae65['sort']()[_0x4879dc(0x1d5)](''))[_0x4879dc(0x1c8)]();}[a10_0x2d06f0(0x1ce)](_0x11262d,_0x174176,_0x54be06=Date[a10_0x2d06f0(0x1c3)]()){var _0x15420c=a10_0x2d06f0,_0x348cbc,_0xceb8dd,_0x179a51;if(!((_0x348cbc=this[_0x15420c(0x1e9)])===null||_0x348cbc===void 0x0?void 0x0:_0x348cbc[_0x15420c(0x1d7)][_0x174176])||!((_0x179a51=(_0xceb8dd=this[_0x15420c(0x1e9)])===null||_0xceb8dd===void 0x0?void 0x0:_0xceb8dd[_0x15420c(0x1d7)][_0x174176])===null||_0x179a51===void 0x0?void 0x0:_0x179a51[_0x15420c(0x1ce)]))throw new AnnError(ApiError_1[_0x15420c(0x1d8)][_0x15420c(0x1cd)]);return(0x0,crypto_js_1[_0x15420c(0x1c7)])(_0x11262d+(0x0,crypto_js_1[_0x15420c(0x1c7)])(_0x54be06+this[_0x15420c(0x1e9)][_0x15420c(0x1d7)][_0x174176][_0x15420c(0x1ce)])[_0x15420c(0x1c8)]())[_0x15420c(0x1c8)]();}[a10_0x2d06f0(0x1bf)](_0x660cb4={}){var _0x439c60=a10_0x2d06f0;const _0x29d4be=Object[_0x439c60(0x1f0)](Object['entries'](_0x660cb4)[_0x439c60(0x1ed)](_0x5c1c57=>[_0x5c1c57[0x0][_0x439c60(0x1ee)](),_0x5c1c57[0x1]]));if(!(_0x29d4be===null||_0x29d4be===void 0x0?void 0x0:_0x29d4be[_0x439c60(0x1c6)]))throw new AnnError(ApiError_1[_0x439c60(0x1d8)]['HEADERS_LACK'],{'message':_0x439c60(0x1f1)});if((_0x29d4be===null||_0x29d4be===void 0x0?void 0x0:_0x29d4be[_0x439c60(0x1c6)])!=this['getsign'](_0x29d4be))throw new AnnError(ApiError_1[_0x439c60(0x1d8)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,core_1[a10_0x2d06f0(0x1da)])(a10_0x2d06f0(0x1c2)),__metadata(a10_0x2d06f0(0x1f6),Object)],ApiService[a10_0x2d06f0(0x1bd)],a10_0x2d06f0(0x1e9),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a10_0x2d06f0(0x1e7)][a10_0x2d06f0(0x1d4)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x16bd88=a11_0x871d;(function(_0x4ffa0c,_0x401779){const _0x3b2cd6=a11_0x871d,_0x42c01c=_0x4ffa0c();while(!![]){try{const _0x1e0a2e=parseInt(_0x3b2cd6(0x1df))/0x1+parseInt(_0x3b2cd6(0x1e1))/0x2+parseInt(_0x3b2cd6(0x1a3))/0x3+-parseInt(_0x3b2cd6(0x1d4))/0x4+parseInt(_0x3b2cd6(0x1bc))/0x5+-parseInt(_0x3b2cd6(0x1a6))/0x6+-parseInt(_0x3b2cd6(0x1bf))/0x7*(parseInt(_0x3b2cd6(0x1a5))/0x8);if(_0x1e0a2e===_0x401779)break;else _0x42c01c['push'](_0x42c01c['shift']());}catch(_0x2d536b){_0x42c01c['push'](_0x42c01c['shift']());}}}(a11_0x1e52,0xf2711));var __decorate=this&&this[a11_0x16bd88(0x1cd)]||function(_0x47bd34,_0x2277d6,_0x2504f6,_0x447646){const _0x4e9a06=a11_0x16bd88;var _0x4bedc7=arguments[_0x4e9a06(0x1b7)],_0x85a9d7=_0x4bedc7<0x3?_0x2277d6:_0x447646===null?_0x447646=Object['getOwnPropertyDescriptor'](_0x2277d6,_0x2504f6):_0x447646,_0x186213;if(typeof Reflect===_0x4e9a06(0x1e8)&&typeof Reflect['decorate']==='function')_0x85a9d7=Reflect[_0x4e9a06(0x1b4)](_0x47bd34,_0x2277d6,_0x2504f6,_0x447646);else{for(var _0x5f468a=_0x47bd34[_0x4e9a06(0x1b7)]-0x1;_0x5f468a>=0x0;_0x5f468a--)if(_0x186213=_0x47bd34[_0x5f468a])_0x85a9d7=(_0x4bedc7<0x3?_0x186213(_0x85a9d7):_0x4bedc7>0x3?_0x186213(_0x2277d6,_0x2504f6,_0x85a9d7):_0x186213(_0x2277d6,_0x2504f6))||_0x85a9d7;}return _0x4bedc7>0x3&&_0x85a9d7&&Object['defineProperty'](_0x2277d6,_0x2504f6,_0x85a9d7),_0x85a9d7;},__metadata=this&&this[a11_0x16bd88(0x1c2)]||function(_0x49d4aa,_0x27dc09){const _0x1b171d=a11_0x16bd88;if(typeof Reflect===_0x1b171d(0x1e8)&&typeof Reflect[_0x1b171d(0x1c9)]===_0x1b171d(0x1b1))return Reflect['metadata'](_0x49d4aa,_0x27dc09);},__param=this&&this[a11_0x16bd88(0x1c7)]||function(_0x4623d6,_0x21c36c){return function(_0x56068b,_0xa0a645){_0x21c36c(_0x56068b,_0xa0a645,_0x4623d6);};};function a11_0x871d(_0x114853,_0x27d0ad){const _0x1e522f=a11_0x1e52();return a11_0x871d=function(_0x871dc8,_0x48be3a){_0x871dc8=_0x871dc8-0x19e;let _0x426146=_0x1e522f[_0x871dc8];return _0x426146;},a11_0x871d(_0x114853,_0x27d0ad);}Object['defineProperty'](exports,a11_0x16bd88(0x1dd),{'value':!![]}),exports[a11_0x16bd88(0x1a1)]=exports[a11_0x16bd88(0x1ba)]=void 0x0;const path_1=require(a11_0x16bd88(0x1c3)),fs_1=require('fs'),core_1=require(a11_0x16bd88(0x1d9)),core_2=require(a11_0x16bd88(0x1d9)),core_3=require(a11_0x16bd88(0x1d9)),getRoutes_1=require(a11_0x16bd88(0x1b9));let ApitestService=class ApitestService{async[a11_0x16bd88(0x1aa)](_0x64baf7){const _0x1986dc=a11_0x16bd88,_0x40758c=(0x0,getRoutes_1['getRoutes'])(_0x64baf7),_0x59b944=[];for(let _0x46770d in _0x40758c){for(let _0x2371b5 in _0x40758c[_0x46770d]['routes']){let _0x3e8b1e=_0x40758c[_0x46770d][_0x1986dc(0x1da)][_0x2371b5],_0x137c47=[];for(let _0xc4a488 in _0x3e8b1e[_0x1986dc(0x1ce)]){_0x137c47[_0x1986dc(0x1af)](_0x3e8b1e['request'][_0xc4a488]);}_0x59b944[_0x1986dc(0x1af)]({'title':_0x40758c[_0x46770d][_0x1986dc(0x1cc)]+':'+_0x3e8b1e[_0x1986dc(0x1cc)],'prefix':_0x40758c[_0x46770d][_0x1986dc(0x1a9)],'router':_0x3e8b1e[_0x1986dc(0x1d0)],'method':_0x3e8b1e[_0x1986dc(0x1c5)],'describe':_0x3e8b1e['description']||'','filepath':_0x40758c[_0x46770d]['filepath']||'','request':_0x137c47});}}const _0x2cf4e8=(0x0,path_1[_0x1986dc(0x1a7)])(__dirname,_0x1986dc(0x1c4));return(0x0,fs_1[_0x1986dc(0x19f)])(_0x2cf4e8,{'encoding':_0x1986dc(0x1e0)})['replace'](/__res__/g,_0x1986dc(0x1bd))['replace'](_0x1986dc(0x1a0),JSON[_0x1986dc(0x1cb)](_0x59b944))[_0x1986dc(0x1e6)](_0x1986dc(0x1a8),JSON[_0x1986dc(0x1cb)](this[_0x1986dc(0x1be)]['devices']));}};function a11_0x1e52(){const _0x167111=['Config','readFileSync','__apiList__','ApitestStaticController','Singleton','3716373HqQlWw','ctx','1704wZBOCv','3657228QpLdia','join','__devices__','prefix','apidoc','Param','design:type','design:returntype','/apitest-:module','push','Scope','function','public,\x20max-age=604800','../../public/','decorate','extname','apiteststatic','length','content-type','../helper/getRoutes','ApitestService','Get','1533770pesdlU','/apiteststatic/','config','63931irVwIL','Controller','.css','__metadata','path','../../public/index.html','method','apitest','__param','design:paramtypes','metadata','application/javascript;\x20charset=utf-8','stringify','summary','__decorate','request','anncicapi','route','cache-control','Inject','isDevelopmentEnvironment','5898384UBNzha','/index.html','set','ScopeEnum','prototype','@midwayjs/core','routes','filepath','existsSync','__esModule','/apiteststatic/*','1500181ZdQuLH','utf-8','3953556IDrlRU','Request','Environment','apitestmodule','module','replace','apitesthtml','object','.js','url'];a11_0x1e52=function(){return _0x167111;};return a11_0x1e52();}__decorate([(0x0,core_3[a11_0x16bd88(0x19e)])(a11_0x16bd88(0x1cf)),__metadata(a11_0x16bd88(0x1ac),Object)],ApitestService['prototype'],a11_0x16bd88(0x1be),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x16bd88(0x1c6)),(0x0,core_3[a11_0x16bd88(0x1b0)])(core_3[a11_0x16bd88(0x1d7)][a11_0x16bd88(0x1a2)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x16bd88(0x1e7)](){const _0x1fa79a=a11_0x16bd88;if(this[_0x1fa79a(0x1c6)]){const _0x3f9242={'module':![]};return this['Environment'][_0x1fa79a(0x1d3)]()&&(_0x3f9242[_0x1fa79a(0x1db)]=!![]),await this[_0x1fa79a(0x1ba)][_0x1fa79a(0x1aa)](_0x3f9242);}return'';}async[a11_0x16bd88(0x1e4)](_0xcbdd3a){const _0x58fcf6=a11_0x16bd88;if(this['apitest']){const _0x42b7cc={'module':_0xcbdd3a};return this[_0x58fcf6(0x1e3)][_0x58fcf6(0x1d3)]()&&(_0x42b7cc[_0x58fcf6(0x1db)]=!![]),await this[_0x58fcf6(0x1ba)][_0x58fcf6(0x1aa)](_0x42b7cc);}return'';}async[a11_0x16bd88(0x1b6)](){const _0xf5f551=a11_0x16bd88;if((0x0,path_1[_0xf5f551(0x1b5)])(this[_0xf5f551(0x1a4)][_0xf5f551(0x1ce)][_0xf5f551(0x1ea)])){var _0x575233=(0x0,path_1[_0xf5f551(0x1a7)])(__dirname,_0xf5f551(0x1b3)+this[_0xf5f551(0x1a4)][_0xf5f551(0x1ce)][_0xf5f551(0x1ea)][_0xf5f551(0x1e6)]('/apiteststatic/','/'));if(_0x575233['substring'](_0x575233[_0xf5f551(0x1b7)]-0xb)!=_0xf5f551(0x1d5)){this['ctx']['set'](_0xf5f551(0x1d1),_0xf5f551(0x1b2));if((0x0,path_1['extname'])(this['ctx'][_0xf5f551(0x1ce)][_0xf5f551(0x1ea)])==_0xf5f551(0x1e9))this[_0xf5f551(0x1a4)][_0xf5f551(0x1d6)](_0xf5f551(0x1b8),_0xf5f551(0x1ca));else(0x0,path_1[_0xf5f551(0x1b5)])(this[_0xf5f551(0x1a4)][_0xf5f551(0x1ce)]['url'])==_0xf5f551(0x1c1)&&this['ctx'][_0xf5f551(0x1d6)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0xf5f551(0x1dc)])(_0x575233)&&(0x0,fs_1[_0xf5f551(0x19f)])(_0x575233,{'encoding':_0xf5f551(0x1e0)});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x16bd88(0x1d8)],'ctx',void 0x0),__decorate([(0x0,core_3[a11_0x16bd88(0x1d2)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController['prototype'],a11_0x16bd88(0x1e3),void 0x0),__decorate([(0x0,core_3[a11_0x16bd88(0x1d2)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x16bd88(0x1d8)],a11_0x16bd88(0x1ba),void 0x0),__decorate([(0x0,core_3['Config'])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x16bd88(0x1d8)],a11_0x16bd88(0x1c6),void 0x0),__decorate([(0x0,core_3[a11_0x16bd88(0x19e)])('anncicapi'),__metadata(a11_0x16bd88(0x1ac),Object)],ApitestStaticController[a11_0x16bd88(0x1d8)],a11_0x16bd88(0x1be),void 0x0),__decorate([(0x0,core_2['Get'])('/apitest'),__metadata(a11_0x16bd88(0x1ac),Function),__metadata(a11_0x16bd88(0x1c8),[]),__metadata(a11_0x16bd88(0x1ad),Promise)],ApitestStaticController[a11_0x16bd88(0x1d8)],a11_0x16bd88(0x1e7),null),__decorate([(0x0,core_2[a11_0x16bd88(0x1bb)])(a11_0x16bd88(0x1ae)),__param(0x0,(0x0,core_2[a11_0x16bd88(0x1ab)])(a11_0x16bd88(0x1e5))),__metadata(a11_0x16bd88(0x1ac),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0x16bd88(0x1ad),Promise)],ApitestStaticController[a11_0x16bd88(0x1d8)],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x16bd88(0x1bb)])(a11_0x16bd88(0x1de)),__metadata(a11_0x16bd88(0x1ac),Function),__metadata(a11_0x16bd88(0x1c8),[]),__metadata(a11_0x16bd88(0x1ad),Promise)],ApitestStaticController[a11_0x16bd88(0x1d8)],a11_0x16bd88(0x1b6),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x16bd88(0x1c0)])('/'),(0x0,core_3[a11_0x16bd88(0x1b0)])(core_3[a11_0x16bd88(0x1d7)][a11_0x16bd88(0x1e2)])],ApitestStaticController),exports[a11_0x16bd88(0x1a1)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x1b7820=a12_0x40a4;(function(_0x20a601,_0x4fbfe1){const _0x595db4=a12_0x40a4,_0x4029cf=_0x20a601();while(!![]){try{const _0x23dcac=parseInt(_0x595db4(0x10b))/0x1*(parseInt(_0x595db4(0x11f))/0x2)+parseInt(_0x595db4(0x133))/0x3+-parseInt(_0x595db4(0x134))/0x4*(-parseInt(_0x595db4(0x13e))/0x5)+parseInt(_0x595db4(0x11d))/0x6*(parseInt(_0x595db4(0x145))/0x7)+-parseInt(_0x595db4(0x121))/0x8*(parseInt(_0x595db4(0x10e))/0x9)+-parseInt(_0x595db4(0x13c))/0xa+parseInt(_0x595db4(0x11c))/0xb*(-parseInt(_0x595db4(0x11e))/0xc);if(_0x23dcac===_0x4fbfe1)break;else _0x4029cf['push'](_0x4029cf['shift']());}catch(_0x16cbbd){_0x4029cf['push'](_0x4029cf['shift']());}}}(a12_0x5e43,0x3d9c3));function a12_0x5e43(){const _0x5108b5=['isNumber','readFile','88mdbdFU','18tEsesd','258540ZzNhFJ','64816XnUXlk','@midwayjs/core','38968cpCRwe','header','toString','value','addWorksheet','length','eachCell','public/xlsx','mkdirSync','object','ExcelService','handler','cellCount','startsWith','endsWith','getRow','/public/xlsx','App','762921KJdZZZ','334792XSNbOb','Sheet\x201','koa-send','Api\x20Excel\x20Error:\x20','log','addRow','Workbook','xlsx','2108050IywgvK','getCell','20UMOSkf','__esModule','getWorksheet','prototype','ScopeEnum','col','app','264866ulZhWT','push','\x20is\x20read\x20fail','getOwnPropertyDescriptor','design:type','random','decorate','key','defineProperty','8sqkKZp','get','__decorate','603Jheoht','export','Provide','model','existsSync','getAppDir','frozen','findRows','keys','function','metadata','replace'];a12_0x5e43=function(){return _0x5108b5;};return a12_0x5e43();}function a12_0x40a4(_0x4c828d,_0x23a1ff){const _0x5e43f4=a12_0x5e43();return a12_0x40a4=function(_0x40a490,_0x102ad1){_0x40a490=_0x40a490-0x104;let _0x4464f4=_0x5e43f4[_0x40a490];return _0x4464f4;},a12_0x40a4(_0x4c828d,_0x23a1ff);}var __decorate=this&&this[a12_0x1b7820(0x10d)]||function(_0x1f419b,_0x78f54a,_0x5c0f4b,_0x19c003){const _0x45b0a9=a12_0x1b7820;var _0x4d8472=arguments[_0x45b0a9(0x126)],_0x486116=_0x4d8472<0x3?_0x78f54a:_0x19c003===null?_0x19c003=Object[_0x45b0a9(0x105)](_0x78f54a,_0x5c0f4b):_0x19c003,_0x51e4dd;if(typeof Reflect===_0x45b0a9(0x12a)&&typeof Reflect[_0x45b0a9(0x108)]===_0x45b0a9(0x117))_0x486116=Reflect[_0x45b0a9(0x108)](_0x1f419b,_0x78f54a,_0x5c0f4b,_0x19c003);else{for(var _0xdad91d=_0x1f419b[_0x45b0a9(0x126)]-0x1;_0xdad91d>=0x0;_0xdad91d--)if(_0x51e4dd=_0x1f419b[_0xdad91d])_0x486116=(_0x4d8472<0x3?_0x51e4dd(_0x486116):_0x4d8472>0x3?_0x51e4dd(_0x78f54a,_0x5c0f4b,_0x486116):_0x51e4dd(_0x78f54a,_0x5c0f4b))||_0x486116;}return _0x4d8472>0x3&&_0x486116&&Object[_0x45b0a9(0x10a)](_0x78f54a,_0x5c0f4b,_0x486116),_0x486116;},__metadata=this&&this['__metadata']||function(_0x1df5a8,_0x4e16ec){const _0x380874=a12_0x1b7820;if(typeof Reflect===_0x380874(0x12a)&&typeof Reflect[_0x380874(0x118)]===_0x380874(0x117))return Reflect[_0x380874(0x118)](_0x1df5a8,_0x4e16ec);};Object[a12_0x1b7820(0x10a)](exports,a12_0x1b7820(0x13f),{'value':!![]}),exports[a12_0x1b7820(0x12b)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x1b7820(0x136)),core_1=require(a12_0x1b7820(0x120));let ExcelService=class ExcelService{async['parse'](_0x3dc852,_0x250fa7,_0x4e23a3=[0x0]){const _0x4fa48e=a12_0x1b7820;var _0x4e0398,_0x7266dd;const _0x5f1ce8=new exceljs[(_0x4fa48e(0x13a))](),_0x386909=[];let _0x10cca9=_0x3dc852[_0x4fa48e(0x119)](/(\\|\/)/g,'/')[_0x4fa48e(0x119)](/\/{2,}/g,'/');!(_0x10cca9===null||_0x10cca9===void 0x0?void 0x0:_0x10cca9[_0x4fa48e(0x12e)]('/'))&&(_0x10cca9=this[_0x4fa48e(0x144)][_0x4fa48e(0x113)]()+'/'+_0x10cca9);try{await _0x5f1ce8[_0x4fa48e(0x13b)][_0x4fa48e(0x11b)](_0x10cca9);}catch(_0x465963){return console[_0x4fa48e(0x138)](_0x4fa48e(0x137)+_0x10cca9+_0x4fa48e(0x104)),_0x386909;}for(const _0x42d39c of _0x4e23a3){const _0x33b29b=lodash[_0x4fa48e(0x11a)](_0x42d39c)?((_0x4e0398=_0x5f1ce8['worksheets'])===null||_0x4e0398===void 0x0?void 0x0:_0x4e0398[_0x42d39c])||undefined:_0x5f1ce8[_0x4fa48e(0x140)](_0x42d39c);if(_0x33b29b){var _0x30ea50=0x1;const _0x111277=_0x33b29b[_0x4fa48e(0x130)](0x1),_0x236bda=await new Promise(_0x56aab8=>{const _0x591c7f=_0x4fa48e,_0xacbc07={};_0x111277[_0x591c7f(0x127)]((_0x32fdb3,_0x54f11c)=>{const _0x44f204=_0x591c7f;for(const _0x4b4de0 of _0x250fa7){if(_0x32fdb3[_0x44f204(0x124)]==_0x4b4de0['header'])_0x30ea50=0x2,_0xacbc07[_0x4b4de0['key']]={'header':_0x32fdb3[_0x44f204(0x143)],'handler':_0x4b4de0[_0x44f204(0x12c)]};else{if(!_0xacbc07[_0x4b4de0[_0x44f204(0x109)]])try{const _0x303a18=_0x111277[_0x44f204(0x13d)](_0x4b4de0[_0x44f204(0x122)]);_0x303a18&&(_0xacbc07[_0x4b4de0['key']]={'header':_0x303a18[_0x44f204(0x143)],'handler':_0x4b4de0['handler']});}catch{}}}_0x111277[_0x44f204(0x12d)]==_0x54f11c&&_0x56aab8(_0xacbc07);});});for(const _0x1f7e7c of _0x33b29b[_0x4fa48e(0x115)](_0x30ea50,_0x33b29b['rowCount'])){const _0x13464e={};for(const _0x4c9595 in _0x236bda){if(_0x236bda[_0x4c9595][_0x4fa48e(0x122)]){const _0x26e304=_0x1f7e7c[_0x4fa48e(0x13d)](_0x236bda[_0x4c9595][_0x4fa48e(0x122)]);typeof((_0x7266dd=_0x236bda[_0x4c9595])===null||_0x7266dd===void 0x0?void 0x0:_0x7266dd[_0x4fa48e(0x12c)])=='function'?_0x13464e[_0x4c9595]=await _0x236bda[_0x4c9595][_0x4fa48e(0x12c)]((_0x26e304===null||_0x26e304===void 0x0?void 0x0:_0x26e304[_0x4fa48e(0x123)]())||'',_0x26e304[_0x4fa48e(0x111)]):_0x13464e[_0x4c9595]=(_0x26e304===null||_0x26e304===void 0x0?void 0x0:_0x26e304[_0x4fa48e(0x123)]())||'';}}Object[_0x4fa48e(0x116)](_0x13464e)['length']>0x0&&_0x386909['push'](_0x13464e);}}}return _0x386909;}async[a12_0x1b7820(0x10f)](_0x952248,_0x428314,_0x193fe0,_0x459c62=a12_0x1b7820(0x128)){const _0x411b70=a12_0x1b7820;var _0x1cdc6f,_0x20f1ad;const _0x173188=new exceljs[(_0x411b70(0x13a))](),_0x6562e9={},_0x4da657=[],_0x4bb50a=_0x173188[_0x411b70(0x125)](_0x411b70(0x135),{'views':[{'state':_0x411b70(0x114),'xSplit':0x1}]});for(const _0x37de3d in _0x428314){_0x6562e9[_0x428314[_0x37de3d][_0x411b70(0x109)]]=_0x428314[_0x37de3d][_0x411b70(0x122)],_0x4da657[_0x411b70(0x146)]({'header':_0x428314[_0x37de3d][_0x411b70(0x122)],'key':(_0x1cdc6f=_0x428314[_0x37de3d])===null||_0x1cdc6f===void 0x0?void 0x0:_0x1cdc6f[_0x411b70(0x109)][_0x411b70(0x119)](/\./g,'_')});}_0x4bb50a['columns']=_0x4da657;for(const _0x2f7777 of _0x193fe0){const _0x5e41f5={};for(const _0x556e65 in _0x428314){typeof((_0x20f1ad=_0x428314[_0x556e65])===null||_0x20f1ad===void 0x0?void 0x0:_0x20f1ad[_0x411b70(0x12c)])==_0x411b70(0x117)?_0x5e41f5[_0x428314[_0x556e65][_0x411b70(0x109)][_0x411b70(0x119)](/\./g,'_')]=await _0x428314[_0x556e65][_0x411b70(0x12c)](_0x2f7777):_0x5e41f5[_0x428314[_0x556e65][_0x411b70(0x109)][_0x411b70(0x119)](/\./g,'_')]=lodash[_0x411b70(0x10c)](_0x2f7777,_0x428314[_0x556e65][_0x411b70(0x109)],'');}_0x4bb50a[_0x411b70(0x139)](_0x5e41f5);}let _0x4e8264='';const _0x73f656=_0x952248+'-'+lodash[_0x411b70(0x107)](0x2710,0x1869f)+'.xlsx';if(_0x459c62&&_0x459c62[_0x411b70(0x12e)]('/'))_0x4e8264=''+_0x459c62;else _0x459c62&&!_0x459c62[_0x411b70(0x12e)]('/')&&!_0x459c62[_0x411b70(0x12e)]('\x5c')?_0x4e8264=this['app'][_0x411b70(0x113)]()+'/'+_0x459c62:_0x4e8264=this[_0x411b70(0x144)][_0x411b70(0x113)]()+_0x411b70(0x131);return(_0x4e8264['endsWith']('/')||_0x4e8264[_0x411b70(0x12f)]('\x5c'))&&(_0x4e8264=_0x4e8264['substring'](0x0,_0x4e8264['length']-0x1)),_0x4e8264=_0x4e8264[_0x411b70(0x119)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x411b70(0x112)](_0x4e8264)&&fs[_0x411b70(0x129)](_0x4e8264,{'recursive':!![]}),await _0x173188[_0x411b70(0x13b)]['writeFile']((_0x4e8264+'/'+_0x73f656)[_0x411b70(0x119)](/(\\|\/)/g,'/')[_0x411b70(0x119)](/\/{2,}/g,'/')),{'filename':_0x73f656,'filepath':(_0x4e8264['substring']((''+this[_0x411b70(0x144)][_0x411b70(0x113)]())[_0x411b70(0x126)])+'/'+_0x73f656)['replace'](/(\\|\/)/g,'/')[_0x411b70(0x119)](/\/{2,}/g,'/')};}async['download'](_0x4e8b52,_0x5f38ed){return await koasend(_0x4e8b52,''+_0x5f38ed);}};__decorate([(0x0,core_1[a12_0x1b7820(0x132)])(),__metadata(a12_0x1b7820(0x106),Object)],ExcelService[a12_0x1b7820(0x141)],a12_0x1b7820(0x144),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x1b7820(0x110)])(),(0x0,core_1['Scope'])(core_1[a12_0x1b7820(0x142)]['Singleton'])],ExcelService),exports[a12_0x1b7820(0x12b)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x4d45dd=a13_0x5cfb;(function(_0x10906b,_0x317205){var _0x3ac1b2=a13_0x5cfb,_0x5b2178=_0x10906b();while(!![]){try{var _0x76f218=parseInt(_0x3ac1b2(0xfb))/0x1*(-parseInt(_0x3ac1b2(0xf8))/0x2)+-parseInt(_0x3ac1b2(0xfa))/0x3+-parseInt(_0x3ac1b2(0xfd))/0x4*(parseInt(_0x3ac1b2(0x105))/0x5)+-parseInt(_0x3ac1b2(0x106))/0x6+parseInt(_0x3ac1b2(0x103))/0x7+parseInt(_0x3ac1b2(0xf7))/0x8+-parseInt(_0x3ac1b2(0x102))/0x9*(-parseInt(_0x3ac1b2(0xff))/0xa);if(_0x76f218===_0x317205)break;else _0x5b2178['push'](_0x5b2178['shift']());}catch(_0x5d32df){_0x5b2178['push'](_0x5b2178['shift']());}}}(a13_0x8269,0x6f767));function a13_0x5cfb(_0x516df5,_0x2e3a37){var _0x826969=a13_0x8269();return a13_0x5cfb=function(_0x5cfb60,_0x111b65){_0x5cfb60=_0x5cfb60-0xf6;var _0x459fd1=_0x826969[_0x5cfb60];return _0x459fd1;},a13_0x5cfb(_0x516df5,_0x2e3a37);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x4d45dd(0x101)]=exports[a13_0x4d45dd(0x104)]=exports[a13_0x4d45dd(0xfe)]=exports[a13_0x4d45dd(0x100)]=void 0x0,exports[a13_0x4d45dd(0x100)]=a13_0x4d45dd(0xf6),exports[a13_0x4d45dd(0xfe)]=a13_0x4d45dd(0xfc),exports[a13_0x4d45dd(0x104)]=a13_0x4d45dd(0xf9);function a13_0x8269(){var _0x474aad=['5108288iYZhrK','136042djqqiB','anncic-api:apps:config','2084676mhTRjG','13kAnYzF','anncic-api:action:route','4qwyxVz','ACTION_ROUTE_KEY','3023690ObXFEx','ACTION_KEY','AppsConfigTmp','81JtJmxa','959315ZeRObP','APPSCONFIG_KEY','2926790GvNRsY','5254968dcnbqF','anncic-api:action'];a13_0x8269=function(){return _0x474aad;};return a13_0x8269();}class AppsConfigTmp{}exports[a13_0x4d45dd(0x101)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x4780db=a14_0x3caf;(function(_0x3ba750,_0x19435a){var _0x30617f=a14_0x3caf,_0x555df1=_0x3ba750();while(!![]){try{var _0x4c648e=parseInt(_0x30617f(0x77))/0x1+parseInt(_0x30617f(0x94))/0x2+parseInt(_0x30617f(0x95))/0x3+-parseInt(_0x30617f(0x80))/0x4+parseInt(_0x30617f(0x79))/0x5*(parseInt(_0x30617f(0x75))/0x6)+parseInt(_0x30617f(0x84))/0x7*(-parseInt(_0x30617f(0x92))/0x8)+-parseInt(_0x30617f(0x85))/0x9;if(_0x4c648e===_0x19435a)break;else _0x555df1['push'](_0x555df1['shift']());}catch(_0xf21bed){_0x555df1['push'](_0x555df1['shift']());}}}(a14_0xb782,0x2d13d));var __decorate=this&&this['__decorate']||function(_0x1f23cf,_0x4fa425,_0xd7eb87,_0x5e9fb1){var _0x16c2f6=a14_0x3caf,_0x318d0f=arguments[_0x16c2f6(0x90)],_0x461a2a=_0x318d0f<0x3?_0x4fa425:_0x5e9fb1===null?_0x5e9fb1=Object[_0x16c2f6(0x8f)](_0x4fa425,_0xd7eb87):_0x5e9fb1,_0x5a0300;if(typeof Reflect==='object'&&typeof Reflect[_0x16c2f6(0x7c)]===_0x16c2f6(0x96))_0x461a2a=Reflect['decorate'](_0x1f23cf,_0x4fa425,_0xd7eb87,_0x5e9fb1);else{for(var _0x22dd9f=_0x1f23cf[_0x16c2f6(0x90)]-0x1;_0x22dd9f>=0x0;_0x22dd9f--)if(_0x5a0300=_0x1f23cf[_0x22dd9f])_0x461a2a=(_0x318d0f<0x3?_0x5a0300(_0x461a2a):_0x318d0f>0x3?_0x5a0300(_0x4fa425,_0xd7eb87,_0x461a2a):_0x5a0300(_0x4fa425,_0xd7eb87))||_0x461a2a;}return _0x318d0f>0x3&&_0x461a2a&&Object[_0x16c2f6(0x82)](_0x4fa425,_0xd7eb87,_0x461a2a),_0x461a2a;},__metadata=this&&this[a14_0x4780db(0x91)]||function(_0x31f88e,_0x131ffc){var _0x20323a=a14_0x4780db;if(typeof Reflect===_0x20323a(0x7f)&&typeof Reflect[_0x20323a(0x81)]===_0x20323a(0x96))return Reflect['metadata'](_0x31f88e,_0x131ffc);};function a14_0x3caf(_0x3c18e8,_0x3b53d5){var _0xb782a2=a14_0xb782();return a14_0x3caf=function(_0x3caf11,_0x4f345c){_0x3caf11=_0x3caf11-0x75;var _0xe3aea6=_0xb782a2[_0x3caf11];return _0xe3aea6;},a14_0x3caf(_0x3c18e8,_0x3b53d5);}function a14_0xb782(){var _0x5e0d6c=['function','6YjhKBi','_size','233888fibGan','min','961165XrdcsR','number','_order','decorate','第一页为1,第二页为2','@anncic-api/validator','object','609552AzevbI','metadata','defineProperty','prototype','27461RnaDfv','4742298ocLJNW','Rule','trim','valid','是否倒序','integer','design:type','PageDTO','string','RuleType','getOwnPropertyDescriptor','length','__metadata','8jUtXpf','1:是;0:否','268974cldyXm','921786KWQxwN'];a14_0xb782=function(){return _0x5e0d6c;};return a14_0xb782();}Object[a14_0x4780db(0x82)](exports,'__esModule',{'value':!![]}),exports[a14_0x4780db(0x8c)]=void 0x0;const validator_1=require(a14_0x4780db(0x7e));class PageDTO{}__decorate([(0x0,validator_1[a14_0x4780db(0x86)])('分页',validator_1[a14_0x4780db(0x8e)][a14_0x4780db(0x7a)]()['integer']()[a14_0x4780db(0x78)](0x1),a14_0x4780db(0x7d)),__metadata(a14_0x4780db(0x8b),Number)],PageDTO[a14_0x4780db(0x83)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x4780db(0x86)])('分页数量',validator_1[a14_0x4780db(0x8e)]['number']()[a14_0x4780db(0x8a)]()[a14_0x4780db(0x78)](0x1)),__metadata(a14_0x4780db(0x8b),Number)],PageDTO[a14_0x4780db(0x83)],a14_0x4780db(0x76),void 0x0),__decorate([(0x0,validator_1[a14_0x4780db(0x86)])('排序方式',validator_1[a14_0x4780db(0x8e)][a14_0x4780db(0x8d)]()[a14_0x4780db(0x87)]()),__metadata(a14_0x4780db(0x8b),String)],PageDTO[a14_0x4780db(0x83)],a14_0x4780db(0x7b),void 0x0),__decorate([(0x0,validator_1[a14_0x4780db(0x86)])(a14_0x4780db(0x89),validator_1[a14_0x4780db(0x8e)][a14_0x4780db(0x7a)]()[a14_0x4780db(0x8a)]()[a14_0x4780db(0x88)](0x0,0x1),a14_0x4780db(0x93)),__metadata('design:type',Number)],PageDTO[a14_0x4780db(0x83)],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './dist/index';
|
|
|
4
4
|
declare module '@midwayjs/koa/dist/interface' {
|
|
5
5
|
interface Context {
|
|
6
6
|
app: Application;
|
|
7
|
-
koasend(filepath: string): Promise<void>;
|
|
7
|
+
koasend(filepath: string, filename?:string): Promise<void>;
|
|
8
8
|
|
|
9
9
|
when(key: string, callbal: (value: any) => {}): void;
|
|
10
10
|
only(keys: Array<Array<any>>): { [key: string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.24",
|
|
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.24",
|
|
21
|
+
"@anncic-api/core": "^1.4.24",
|
|
22
|
+
"@anncic-api/event": "^1.4.24",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.24",
|
|
24
|
+
"@anncic-api/validator": "^1.4.24",
|
|
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.24",
|
|
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": "1e484da93119dd18e00e9fb095f477f2aee04694"
|
|
43
43
|
}
|