anncic-api 1.1.17 → 1.1.22
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.d.ts +7 -0
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -10
|
@@ -11,6 +11,13 @@ declare const _default: (appinfo: any) => {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
bodyParser: {
|
|
15
|
+
enableTypes: string[];
|
|
16
|
+
formLimit: string;
|
|
17
|
+
jsonLimit: string;
|
|
18
|
+
textLimit: string;
|
|
19
|
+
xmlLimit: string;
|
|
20
|
+
};
|
|
14
21
|
upload: {
|
|
15
22
|
tmpdir: string;
|
|
16
23
|
cleanTimeout: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x4207(_0x2219de,_0x4c1165){var _0x26a763=a0_0x26a7();return a0_0x4207=function(_0x4207a6,_0x17c9ea){_0x4207a6=_0x4207a6-0x1c2;var _0x4778b3=_0x26a763[_0x4207a6];return _0x4778b3;},a0_0x4207(_0x2219de,_0x4c1165);}var a0_0x208d5d=a0_0x4207;(function(_0x278fba,_0x48841c){var _0x2d62f7=a0_0x4207,_0x5edbc6=_0x278fba();while(!![]){try{var _0x26b137=parseInt(_0x2d62f7(0x1d7))/0x1*(-parseInt(_0x2d62f7(0x1c7))/0x2)+-parseInt(_0x2d62f7(0x1c3))/0x3+parseInt(_0x2d62f7(0x1d1))/0x4+-parseInt(_0x2d62f7(0x1cd))/0x5*(-parseInt(_0x2d62f7(0x1cc))/0x6)+parseInt(_0x2d62f7(0x1c8))/0x7+parseInt(_0x2d62f7(0x1c4))/0x8*(-parseInt(_0x2d62f7(0x1d4))/0x9)+parseInt(_0x2d62f7(0x1ce))/0xa*(parseInt(_0x2d62f7(0x1d2))/0xb);if(_0x26b137===_0x48841c)break;else _0x5edbc6['push'](_0x5edbc6['shift']());}catch(_0x28c69c){_0x5edbc6['push'](_0x5edbc6['shift']());}}}(a0_0x26a7,0xe7200));Object[a0_0x208d5d(0x1cb)](exports,a0_0x208d5d(0x1c2),{'value':!![]}),exports['default']=_0x1cedf5=>{var _0x2fd3ab=a0_0x208d5d;return{'apitest':!![],'keys':_0x1cedf5[_0x2fd3ab(0x1cf)],'anncicapi':{'timeout':0x1388,'password':_0x2fd3ab(0x1c6),'devices':{'DEFAULT':{'secret':_0x2fd3ab(0x1d5),'checkcode':_0x2fd3ab(0x1d5)}}},'bodyParser':{'enableTypes':['json',_0x2fd3ab(0x1d6),_0x2fd3ab(0x1d0),_0x2fd3ab(0x1ca)],'formLimit':_0x2fd3ab(0x1d3),'jsonLimit':_0x2fd3ab(0x1d3),'textLimit':_0x2fd3ab(0x1d3),'xmlLimit':_0x2fd3ab(0x1d3)},'upload':{'tmpdir':_0x1cedf5[_0x2fd3ab(0x1c5)]+_0x2fd3ab(0x1c9),'cleanTimeout':0x5265c00}};};function a0_0x26a7(){var _0x4781f4=['140hpRQhp','__esModule','3543267ogbXDP','2511312PxsCRm','appDir','zhiulanuiy7892387985hnoi','18694ZvWRGj','6284082qQFryD','/runtime/.upload','xml','defineProperty','102paaEsb','118290mHINnR','4059590WDeTOQ','name','text','6185584WJIfzg','33wXxXpG','20mb','18NBKYBD','dhauo1234420123gg3234901','form'];a0_0x26a7=function(){return _0x4781f4;};return a0_0x26a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x37604d=a1_0x4eb3;(function(_0x5189c7,_0x1f42b6){var _0x2b76e8=a1_0x4eb3,_0x3b979d=_0x5189c7();while(!![]){try{var _0x3e91f1=parseInt(_0x2b76e8(0x71))/0x1+parseInt(_0x2b76e8(0x6e))/0x2*(parseInt(_0x2b76e8(0x6d))/0x3)+-parseInt(_0x2b76e8(0x6f))/0x4+-parseInt(_0x2b76e8(0x68))/0x5+parseInt(_0x2b76e8(0x67))/0x6*(-parseInt(_0x2b76e8(0x6a))/0x7)+-parseInt(_0x2b76e8(0x72))/0x8+-parseInt(_0x2b76e8(0x70))/0x9*(-parseInt(_0x2b76e8(0x6c))/0xa);if(_0x3e91f1===_0x1f42b6)break;else _0x3b979d['push'](_0x3b979d['shift']());}catch(_0x17ee49){_0x3b979d['push'](_0x3b979d['shift']());}}}(a1_0x1fee,0x26339));function a1_0x4eb3(_0x18f073,_0x4522c6){var _0x1feedd=a1_0x1fee();return a1_0x4eb3=function(_0x4eb3da,_0x5e4cdb){_0x4eb3da=_0x4eb3da-0x67;var _0x48f1b8=_0x1feedd[_0x4eb3da];return _0x48f1b8;},a1_0x4eb3(_0x18f073,_0x4522c6);}function a1_0x1fee(){var _0xa0456e=['2061910LcbbtC','15ffQoBf','31826ZLHGqK','134580rEQvRa','18rhNfuV','206754tSIadw','2467984kZcqlO','6JiHBPl','872515VlxoCP','defineProperty','179074vwojmt','__esModule'];a1_0x1fee=function(){return _0xa0456e;};return a1_0x1fee();}Object[a1_0x37604d(0x69)](exports,a1_0x37604d(0x6b),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x3ea8(_0xa363d4,_0x3a9983){const _0x4b197c=a2_0x4b19();return a2_0x3ea8=function(_0x3ea875,_0xf97f41){_0x3ea875=_0x3ea875-0xde;let _0x7b9e64=_0x4b197c[_0x3ea875];return _0x7b9e64;},a2_0x3ea8(_0xa363d4,_0x3a9983);}const a2_0x2fb0a5=a2_0x3ea8;(function(_0x1f7607,_0x1c14ed){const _0x5728f2=a2_0x3ea8,_0x465f80=_0x1f7607();while(!![]){try{const _0x3243c8=parseInt(_0x5728f2(0x108))/0x1+parseInt(_0x5728f2(0x136))/0x2*(parseInt(_0x5728f2(0xe6))/0x3)+-parseInt(_0x5728f2(0x12b))/0x4*(-parseInt(_0x5728f2(0x141))/0x5)+-parseInt(_0x5728f2(0x133))/0x6*(parseInt(_0x5728f2(0x11c))/0x7)+parseInt(_0x5728f2(0x144))/0x8+-parseInt(_0x5728f2(0x124))/0x9+parseInt(_0x5728f2(0x10e))/0xa*(-parseInt(_0x5728f2(0xee))/0xb);if(_0x3243c8===_0x1c14ed)break;else _0x465f80['push'](_0x465f80['shift']());}catch(_0x191f8a){_0x465f80['push'](_0x465f80['shift']());}}}(a2_0x4b19,0xa3d32));var __decorate=this&&this[a2_0x2fb0a5(0xe7)]||function(_0xc801b3,_0x372f0b,_0x1bf69b,_0x195471){const _0x37dac9=a2_0x2fb0a5;var _0x2dc799=arguments[_0x37dac9(0x123)],_0x320801=_0x2dc799<0x3?_0x372f0b:_0x195471===null?_0x195471=Object['getOwnPropertyDescriptor'](_0x372f0b,_0x1bf69b):_0x195471,_0x541856;if(typeof Reflect===_0x37dac9(0xf2)&&typeof Reflect[_0x37dac9(0x112)]==='function')_0x320801=Reflect[_0x37dac9(0x112)](_0xc801b3,_0x372f0b,_0x1bf69b,_0x195471);else{for(var _0x307a2e=_0xc801b3[_0x37dac9(0x123)]-0x1;_0x307a2e>=0x0;_0x307a2e--)if(_0x541856=_0xc801b3[_0x307a2e])_0x320801=(_0x2dc799<0x3?_0x541856(_0x320801):_0x2dc799>0x3?_0x541856(_0x372f0b,_0x1bf69b,_0x320801):_0x541856(_0x372f0b,_0x1bf69b))||_0x320801;}return _0x2dc799>0x3&&_0x320801&&Object['defineProperty'](_0x372f0b,_0x1bf69b,_0x320801),_0x320801;},__metadata=this&&this[a2_0x2fb0a5(0x11f)]||function(_0x2a30f4,_0x3d242b){const _0x4467d1=a2_0x2fb0a5;if(typeof Reflect==='object'&&typeof Reflect[_0x4467d1(0x127)]===_0x4467d1(0xe3))return Reflect[_0x4467d1(0x127)](_0x2a30f4,_0x3d242b);};Object[a2_0x2fb0a5(0xf8)](exports,a2_0x2fb0a5(0x10c),{'value':!![]}),exports[a2_0x2fb0a5(0xe2)]=void 0x0;const decorator_1=require(a2_0x2fb0a5(0x13e)),core_1=require(a2_0x2fb0a5(0x106)),ApiError_1=require(a2_0x2fb0a5(0xff)),ApiService_1=require(a2_0x2fb0a5(0xf3)),action_1=require(a2_0x2fb0a5(0x12f)),fs=require('fs'),koa=require(a2_0x2fb0a5(0x117)),i18n=require('@midwayjs/i18n'),task=require(a2_0x2fb0a5(0x11b)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x2fb0a5(0xe9)),crossDomain=require(a2_0x2fb0a5(0xf4)),bodyXml=require(a2_0x2fb0a5(0x137)),bodyParser=require(a2_0x2fb0a5(0x116)),ConfigDefault=require(a2_0x2fb0a5(0x10d)),ConfigProduction=require(a2_0x2fb0a5(0xf1)),anncic=require(a2_0x2fb0a5(0x111)),anncicEvent=require(a2_0x2fb0a5(0x11a)),anncicTypeorm=require(a2_0x2fb0a5(0xf0)),anncicValidator=require(a2_0x2fb0a5(0x12a)),anncicHelper=require(a2_0x2fb0a5(0xf7));function a2_0x4b19(){const _0x125b83=['application','./types/action','DEFAULT','anncic-api','request','378wYyAlF','Inject','isArray','2drchbb','koa-xml-body','forEach','devices','prototype','headers','tmpdir','MidwayEnvironmentService','@midwayjs/decorator','defineProperties','useMiddleware','1463770PSFZye','checkConfigKeys','config','7779944JYJOVl','REQUEST_OBJ_CTX_KEY','Configuration','device','anncicapi','CustomConfiguration','function','checksign','bodyParser','3089013ZecAjM','__decorate','query','@midwayjs/static-file','staticFile','mkdirSync','Anncic-api\x20static-file\x20:\x20mkdir\x20','ApiService','22UiRPQW','getApplications','@anncic-api/typeorm','./config/config.production','object','./service/ApiService','@midwayjs/cross-domain','handlerActionRoute','target','anncic-apihelper','defineProperty','keys','beforeRoute','_matchedRoute','getConfiguration','apimit','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./exception/ApiError','registerMethodHandler','body','dirs','MidwayDecoratorService','ACTION_ROUTE_KEY','key','@midwayjs/core','HEADERS_SIGNATURE','1184206MNVcqD','onReady','decorator','existsSync','__esModule','./config/config.default','9133290fZFYGl','dir','isNull','@anncic-api/core','decorate','bodyXml','environment','get','koa-bodyparser','@midwayjs/koa','ApiError','input','@anncic-api/event','@midwayjs/task','9751WsTpOT','design:type','string','__metadata','hanlderApplications','addObject','MidwayApplicationManager','length','8043129duIkMr','filterConfig','MidwayConfigService','metadata','koa','log','@anncic-api/validator','4qVlbvo','context','upload'];a2_0x4b19=function(){return _0x125b83;};return a2_0x4b19();}let CustomConfiguration=class CustomConfiguration{async[a2_0x2fb0a5(0x109)](){const _0x5e39dc=a2_0x2fb0a5;await this[_0x5e39dc(0x125)](),await this['checkConfigKeys'](),await this[_0x5e39dc(0xf5)](),await this[_0x5e39dc(0x120)]();}async[a2_0x2fb0a5(0x142)](){}async['handlerActionRoute'](){const _0x3575ea=a2_0x2fb0a5,_0x40ec57=this['config'][_0x3575ea(0xfc)]();this[_0x3575ea(0x10a)][_0x3575ea(0x100)](action_1[_0x3575ea(0x104)],_0x12f41c=>{const _0x40f686=_0x3575ea,_0x4a0926=_0x12f41c[_0x40f686(0x127)];return{'before':async _0x27c0bc=>{const _0x4f15f5=_0x40f686;var _0x5a6dac,_0x4ed41e,_0xac5a0f,_0xdb12ed,_0x5556a0;const _0x4b758f=(_0x5a6dac=_0x27c0bc===null||_0x27c0bc===void 0x0?void 0x0:_0x27c0bc[_0x4f15f5(0xf6)])===null||_0x5a6dac===void 0x0?void 0x0:_0x5a6dac[core_1[_0x4f15f5(0xde)]];if(_0x4b758f){if((_0x4a0926===null||_0x4a0926===void 0x0?void 0x0:_0x4a0926[_0x4f15f5(0xfd)])&&!this['ApiService'][_0x4f15f5(0xe4)]((_0x4ed41e=_0x4b758f===null||_0x4b758f===void 0x0?void 0x0:_0x4b758f[_0x4f15f5(0x132)])===null||_0x4ed41e===void 0x0?void 0x0:_0x4ed41e['headers']))throw new AnnError(ApiError_1[_0x4f15f5(0x118)][_0x4f15f5(0x107)]);((_0xac5a0f=_0x4b758f[_0x4f15f5(0x13b)])===null||_0xac5a0f===void 0x0?void 0x0:_0xac5a0f[_0x4f15f5(0xe0)])&&((_0x5556a0=(_0xdb12ed=_0x40ec57===null||_0x40ec57===void 0x0?void 0x0:_0x40ec57[_0x4f15f5(0xe1)])===null||_0xdb12ed===void 0x0?void 0x0:_0xdb12ed[_0x4f15f5(0x139)])===null||_0x5556a0===void 0x0?void 0x0:_0x5556a0[_0x4b758f[_0x4f15f5(0x13b)][_0x4f15f5(0xe0)]])&&(typeof _0x40ec57[_0x4f15f5(0xe1)][_0x4f15f5(0x139)][_0x4b758f['headers'][_0x4f15f5(0xe0)]][_0x4f15f5(0xfa)]==_0x4f15f5(0xe3)&&await _0x40ec57[_0x4f15f5(0xe1)][_0x4f15f5(0x139)][_0x4b758f[_0x4f15f5(0x13b)]['device']][_0x4f15f5(0xfa)]((_0x4b758f===null||_0x4b758f===void 0x0?void 0x0:_0x4b758f[_0x4f15f5(0xfb)])||undefined,_0x4a0926,_0x4b758f));}},'afterThrow':(_0x4142f5,_0x5b1978)=>{throw _0x5b1978;}};});}async[a2_0x2fb0a5(0x120)](){const _0x459e47=a2_0x2fb0a5;this[_0x459e47(0x12e)][_0x459e47(0xef)]([_0x459e47(0x128)])[_0x459e47(0x138)](_0x4fe2e7=>{const _0x339f97=_0x459e47;_0x4fe2e7['useMiddleware'](bodyXml(this[_0x339f97(0x143)][_0x339f97(0xfc)](_0x339f97(0x113)))),_0x4fe2e7[_0x339f97(0x140)](bodyParser(this[_0x339f97(0x143)]['getConfiguration'](_0x339f97(0xe5)))),(_0x4fe2e7===null||_0x4fe2e7===void 0x0?void 0x0:_0x4fe2e7[_0x339f97(0x12c)])&&Object[_0x339f97(0x13f)](_0x4fe2e7['context'],{'ok':{'value':function(_0x3ceffe,_0x56da8e,_0x5ac8b2=0x0){return{'code':_0x5ac8b2,'data':_0x3ceffe,'extra':_0x56da8e};}},'err':{'value':function(_0x538882,_0x13ec34,_0x226372=0x1){return{'code':_0x226372,'extra':_0x13ec34,'msg':_0x538882};}},'input':{'value':function(_0x4c8c8a,_0x2244f0){const _0x8b1ca7=_0x339f97;var _0x3e6bfb;const _0x3cbf24=lodash['defaultsDeep']({},this[_0x8b1ca7(0x132)][_0x8b1ca7(0x101)]||this[_0x8b1ca7(0x132)][((_0x3e6bfb=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x3e6bfb===void 0x0?void 0x0:_0x3e6bfb[_0x8b1ca7(0x105)])||_0x8b1ca7(0x101)]||{},this['request'][_0x8b1ca7(0xe8)]||{});return _0x4c8c8a?lodash[_0x8b1ca7(0x115)](_0x3cbf24,_0x4c8c8a,_0x2244f0):_0x3cbf24;}},'when':{'value':async function(_0x2b2cef,_0x4d2fbd){const _0x17e98d=_0x339f97,_0x329426=this[_0x17e98d(0x119)](_0x2b2cef,null);if(!lodash[_0x17e98d(0x110)](_0x329426))return await _0x4d2fbd(_0x329426);}},'only':{'value':function(_0x5aa302){const _0x5e1e11=_0x339f97,_0x5e1b11={};for(let _0x404733=0x0;_0x404733<_0x5aa302[_0x5e1e11(0x123)];_0x404733++){lodash[_0x5e1e11(0x135)](_0x5aa302[_0x404733])&&_0x5aa302[_0x404733]['length']>0x0&&lodash['isString'](_0x5aa302[_0x404733][0x0])&&(_0x5e1b11[_0x5aa302[_0x404733][0x0]]=this[_0x5e1e11(0x119)](_0x5aa302[_0x404733][0x0],_0x5aa302[_0x404733][_0x5e1e11(0x123)]>0x1?_0x5aa302[_0x404733][0x1]:null));}return _0x5e1b11;}}});});}async[a2_0x2fb0a5(0x125)](){const _0x1b2b6e=a2_0x2fb0a5;var _0x1d6bd1,_0x239b82,_0x112e09,_0x45a547,_0x46e66f,_0x5c424a;const _0x37ed1f=this[_0x1b2b6e(0x143)]['getConfiguration']();((_0x239b82=(_0x1d6bd1=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0xe1)])===null||_0x1d6bd1===void 0x0?void 0x0:_0x1d6bd1[_0x1b2b6e(0x139)])===null||_0x239b82===void 0x0?void 0x0:_0x239b82[_0x1b2b6e(0x130)])&&Object[_0x1b2b6e(0xf9)](_0x37ed1f[_0x1b2b6e(0xe1)][_0x1b2b6e(0x139)])['length']>0x1&&delete _0x37ed1f['anncicapi'][_0x1b2b6e(0x139)]['DEFAULT'];if((_0x112e09=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0xea)])===null||_0x112e09===void 0x0?void 0x0:_0x112e09['dirs'])for(const _0x32016b in _0x37ed1f['staticFile'][_0x1b2b6e(0x102)]){((_0x45a547=_0x37ed1f[_0x1b2b6e(0xea)]['dirs'][_0x32016b])===null||_0x45a547===void 0x0?void 0x0:_0x45a547[_0x1b2b6e(0x10f)])&&typeof((_0x46e66f=_0x37ed1f[_0x1b2b6e(0xea)]['dirs'][_0x32016b])===null||_0x46e66f===void 0x0?void 0x0:_0x46e66f[_0x1b2b6e(0x10f)])==_0x1b2b6e(0x11e)&&!fs[_0x1b2b6e(0x10b)](_0x37ed1f[_0x1b2b6e(0xea)][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)])&&(fs[_0x1b2b6e(0xeb)](_0x37ed1f[_0x1b2b6e(0xea)][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)],{'recursive':!![]}),console[_0x1b2b6e(0x129)](_0x1b2b6e(0xec)+_0x37ed1f['staticFile'][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)]));}((_0x5c424a=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0x12d)])===null||_0x5c424a===void 0x0?void 0x0:_0x5c424a[_0x1b2b6e(0x13c)])&&!fs['existsSync'](_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)])&&(fs[_0x1b2b6e(0xeb)](_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)],{'recursive':!![]}),console[_0x1b2b6e(0x129)](_0x1b2b6e(0xfe)+_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)])),this[_0x1b2b6e(0x143)][_0x1b2b6e(0x121)](_0x37ed1f);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a2_0x2fb0a5(0x126)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0x143),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata('design:type',core_1[a2_0x2fb0a5(0x103)])],CustomConfiguration['prototype'],a2_0x2fb0a5(0x10a),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata(a2_0x2fb0a5(0x11d),core_1[a2_0x2fb0a5(0x122)])],CustomConfiguration['prototype'],a2_0x2fb0a5(0x12e),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata(a2_0x2fb0a5(0x11d),core_1[a2_0x2fb0a5(0x13d)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata('design:type',ApiService_1[a2_0x2fb0a5(0xed)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0xed),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2fb0a5(0xdf)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x2fb0a5(0x131),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x1ca260=a2_0x535c;(function(_0x1bffcd,_0x2ed8d1){const _0x45436d=a2_0x535c,_0x5db188=_0x1bffcd();while(!![]){try{const _0x104db4=parseInt(_0x45436d(0x1dc))/0x1*(parseInt(_0x45436d(0x1ca))/0x2)+parseInt(_0x45436d(0x1e0))/0x3*(parseInt(_0x45436d(0x1bf))/0x4)+-parseInt(_0x45436d(0x1b5))/0x5*(-parseInt(_0x45436d(0x1d6))/0x6)+-parseInt(_0x45436d(0x1e3))/0x7*(parseInt(_0x45436d(0x1d2))/0x8)+parseInt(_0x45436d(0x1da))/0x9+-parseInt(_0x45436d(0x1c0))/0xa+parseInt(_0x45436d(0x198))/0xb;if(_0x104db4===_0x2ed8d1)break;else _0x5db188['push'](_0x5db188['shift']());}catch(_0x52f939){_0x5db188['push'](_0x5db188['shift']());}}}(a2_0x16f1,0xdf157));function a2_0x535c(_0x19b203,_0x1db788){const _0x16f186=a2_0x16f1();return a2_0x535c=function(_0x535cb0,_0x447350){_0x535cb0=_0x535cb0-0x188;let _0x9ec5ae=_0x16f186[_0x535cb0];return _0x9ec5ae;},a2_0x535c(_0x19b203,_0x1db788);}var __decorate=this&&this[a2_0x1ca260(0x1bc)]||function(_0x4f5f7b,_0x32644e,_0x591f6d,_0xe53d29){const _0x7489df=a2_0x1ca260;var _0x175378=arguments['length'],_0x249e2b=_0x175378<0x3?_0x32644e:_0xe53d29===null?_0xe53d29=Object[_0x7489df(0x191)](_0x32644e,_0x591f6d):_0xe53d29,_0x1c163b;if(typeof Reflect===_0x7489df(0x188)&&typeof Reflect[_0x7489df(0x1c7)]===_0x7489df(0x1b4))_0x249e2b=Reflect[_0x7489df(0x1c7)](_0x4f5f7b,_0x32644e,_0x591f6d,_0xe53d29);else{for(var _0x406c05=_0x4f5f7b[_0x7489df(0x19f)]-0x1;_0x406c05>=0x0;_0x406c05--)if(_0x1c163b=_0x4f5f7b[_0x406c05])_0x249e2b=(_0x175378<0x3?_0x1c163b(_0x249e2b):_0x175378>0x3?_0x1c163b(_0x32644e,_0x591f6d,_0x249e2b):_0x1c163b(_0x32644e,_0x591f6d))||_0x249e2b;}return _0x175378>0x3&&_0x249e2b&&Object[_0x7489df(0x1d4)](_0x32644e,_0x591f6d,_0x249e2b),_0x249e2b;},__metadata=this&&this[a2_0x1ca260(0x1ce)]||function(_0x499841,_0x2968b4){const _0x3a86e9=a2_0x1ca260;if(typeof Reflect===_0x3a86e9(0x188)&&typeof Reflect[_0x3a86e9(0x1af)]===_0x3a86e9(0x1b4))return Reflect[_0x3a86e9(0x1af)](_0x499841,_0x2968b4);};Object[a2_0x1ca260(0x1d4)](exports,a2_0x1ca260(0x1a2),{'value':!![]}),exports[a2_0x1ca260(0x1a3)]=void 0x0;const decorator_1=require(a2_0x1ca260(0x1c9)),core_1=require(a2_0x1ca260(0x19b)),ApiError_1=require(a2_0x1ca260(0x1cd)),ApiService_1=require(a2_0x1ca260(0x1db)),action_1=require('./types/action'),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x1ca260(0x1d8)),task=require(a2_0x1ca260(0x1d5)),upload=require(a2_0x1ca260(0x1cb)),staticFile=require(a2_0x1ca260(0x1cf)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x1ca260(0x1aa)),ConfigProduction=require(a2_0x1ca260(0x1b0)),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x1ca260(0x1a8)),anncicHelper=require(a2_0x1ca260(0x19a));let CustomConfiguration=class CustomConfiguration{async[a2_0x1ca260(0x1c6)](){const _0x3fe7f2=a2_0x1ca260;await this[_0x3fe7f2(0x1b7)](),await this[_0x3fe7f2(0x199)](),await this['handlerActionRoute'](),await this[_0x3fe7f2(0x18f)]();}async['checkConfigKeys'](){}async[a2_0x1ca260(0x1e1)](){const _0x3b745d=a2_0x1ca260,_0x5c0625=this[_0x3b745d(0x1be)][_0x3b745d(0x1a5)]();this[_0x3b745d(0x1de)][_0x3b745d(0x1d9)](action_1[_0x3b745d(0x18a)],_0x1ccaec=>{const _0x378f63=_0x3b745d,_0x3b2b6b=_0x1ccaec[_0x378f63(0x1af)];return{'before':async _0x2bba99=>{const _0x2bbeea=_0x378f63;var _0x46d73b,_0x53c81a,_0x56ff42,_0x374685,_0x3621f8;const _0x2524a5=(_0x46d73b=_0x2bba99===null||_0x2bba99===void 0x0?void 0x0:_0x2bba99[_0x2bbeea(0x1ba)])===null||_0x46d73b===void 0x0?void 0x0:_0x46d73b[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x2524a5){if((_0x3b2b6b===null||_0x3b2b6b===void 0x0?void 0x0:_0x3b2b6b[_0x2bbeea(0x19c)])&&!this[_0x2bbeea(0x18e)]['checksign']((_0x53c81a=_0x2524a5===null||_0x2524a5===void 0x0?void 0x0:_0x2524a5[_0x2bbeea(0x1bb)])===null||_0x53c81a===void 0x0?void 0x0:_0x53c81a[_0x2bbeea(0x18d)]))throw new AnnError(ApiError_1[_0x2bbeea(0x1b3)][_0x2bbeea(0x1df)]);((_0x56ff42=_0x2524a5[_0x2bbeea(0x18d)])===null||_0x56ff42===void 0x0?void 0x0:_0x56ff42['device'])&&((_0x3621f8=(_0x374685=_0x5c0625===null||_0x5c0625===void 0x0?void 0x0:_0x5c0625[_0x2bbeea(0x1d7)])===null||_0x374685===void 0x0?void 0x0:_0x374685[_0x2bbeea(0x1a9)])===null||_0x3621f8===void 0x0?void 0x0:_0x3621f8[_0x2524a5[_0x2bbeea(0x18d)][_0x2bbeea(0x1dd)]])&&(typeof _0x5c0625[_0x2bbeea(0x1d7)][_0x2bbeea(0x1a9)][_0x2524a5[_0x2bbeea(0x18d)][_0x2bbeea(0x1dd)]][_0x2bbeea(0x1bd)]==_0x2bbeea(0x1b4)&&await _0x5c0625[_0x2bbeea(0x1d7)][_0x2bbeea(0x1a9)][_0x2524a5[_0x2bbeea(0x18d)][_0x2bbeea(0x1dd)]]['beforeRoute']((_0x2524a5===null||_0x2524a5===void 0x0?void 0x0:_0x2524a5[_0x2bbeea(0x1b8)])||undefined,_0x3b2b6b,_0x2524a5));}},'afterThrow':(_0x4f980d,_0x26c718)=>{throw _0x26c718;}};});}async[a2_0x1ca260(0x18f)](){const _0x5bf58c=a2_0x1ca260;this[_0x5bf58c(0x196)][_0x5bf58c(0x1c1)]([_0x5bf58c(0x19e)])[_0x5bf58c(0x1a0)](_0x2702cf=>{const _0x28971a=_0x5bf58c;(_0x2702cf===null||_0x2702cf===void 0x0?void 0x0:_0x2702cf['context'])&&Object['defineProperties'](_0x2702cf[_0x28971a(0x189)],{'ok':{'value':function(_0x4e58a5,_0x1568c7,_0x2f0345=0x0){return{'code':_0x2f0345,'data':_0x4e58a5,'extra':_0x1568c7};}},'err':{'value':function(_0x420e7b,_0x571ef9,_0x472ed6=0x1){return{'code':_0x472ed6,'extra':_0x571ef9,'msg':_0x420e7b};}},'input':{'value':function(_0x12615d,_0x53719d){const _0x5a151b=_0x28971a;var _0xae9fd5;const _0x2525dc=lodash[_0x5a151b(0x1a6)]({},this['request'][_0x5a151b(0x1ad)]||this[_0x5a151b(0x1bb)][((_0xae9fd5=config===null||config===void 0x0?void 0x0:config[_0x5a151b(0x194)])===null||_0xae9fd5===void 0x0?void 0x0:_0xae9fd5[_0x5a151b(0x1c4)])||_0x5a151b(0x1ad)]||{},this[_0x5a151b(0x1bb)][_0x5a151b(0x1b9)]||{});return _0x12615d?lodash[_0x5a151b(0x1e2)](_0x2525dc,_0x12615d,_0x53719d):_0x2525dc;}},'when':{'value':async function(_0x436fe4,_0x2f233d){const _0xdf081b=_0x28971a,_0x4ab943=this[_0xdf081b(0x18c)](_0x436fe4,null);if(!lodash['isNull'](_0x4ab943))return await _0x2f233d(_0x4ab943);}},'only':{'value':function(_0x31922a){const _0x258325=_0x28971a,_0x38e729={};for(let _0x369d9b=0x0;_0x369d9b<_0x31922a['length'];_0x369d9b++){lodash['isArray'](_0x31922a[_0x369d9b])&&_0x31922a[_0x369d9b]['length']>0x0&&lodash[_0x258325(0x195)](_0x31922a[_0x369d9b][0x0])&&(_0x38e729[_0x31922a[_0x369d9b][0x0]]=this['input'](_0x31922a[_0x369d9b][0x0],_0x31922a[_0x369d9b][_0x258325(0x19f)]>0x1?_0x31922a[_0x369d9b][0x1]:null));}return _0x38e729;}}});});}async[a2_0x1ca260(0x1b7)](){const _0x55991b=a2_0x1ca260;var _0xa9b2a1,_0x407075,_0x4282a9,_0x1e4fd9,_0x149ded,_0x1526eb;const _0x1a5bc3=this[_0x55991b(0x1be)]['getConfiguration']();((_0x407075=(_0xa9b2a1=_0x1a5bc3===null||_0x1a5bc3===void 0x0?void 0x0:_0x1a5bc3[_0x55991b(0x1d7)])===null||_0xa9b2a1===void 0x0?void 0x0:_0xa9b2a1[_0x55991b(0x1a9)])===null||_0x407075===void 0x0?void 0x0:_0x407075[_0x55991b(0x190)])&&Object[_0x55991b(0x1ab)](_0x1a5bc3['anncicapi']['devices'])[_0x55991b(0x19f)]>0x1&&delete _0x1a5bc3['anncicapi']['devices'][_0x55991b(0x190)];if((_0x4282a9=_0x1a5bc3===null||_0x1a5bc3===void 0x0?void 0x0:_0x1a5bc3[_0x55991b(0x1cc)])===null||_0x4282a9===void 0x0?void 0x0:_0x4282a9[_0x55991b(0x1c3)])for(const _0x7723b6 in _0x1a5bc3[_0x55991b(0x1cc)]['dirs']){((_0x1e4fd9=_0x1a5bc3['staticFile'][_0x55991b(0x1c3)][_0x7723b6])===null||_0x1e4fd9===void 0x0?void 0x0:_0x1e4fd9[_0x55991b(0x19d)])&&typeof((_0x149ded=_0x1a5bc3[_0x55991b(0x1cc)][_0x55991b(0x1c3)][_0x7723b6])===null||_0x149ded===void 0x0?void 0x0:_0x149ded['dir'])=='string'&&!fs[_0x55991b(0x1ae)](_0x1a5bc3['staticFile'][_0x55991b(0x1c3)][_0x7723b6]['dir'])&&(fs['mkdirSync'](_0x1a5bc3['staticFile'][_0x55991b(0x1c3)][_0x7723b6][_0x55991b(0x19d)],{'recursive':!![]}),console[_0x55991b(0x1c8)](_0x55991b(0x1b1)+_0x1a5bc3[_0x55991b(0x1cc)][_0x55991b(0x1c3)][_0x7723b6][_0x55991b(0x19d)]));}((_0x1526eb=_0x1a5bc3===null||_0x1a5bc3===void 0x0?void 0x0:_0x1a5bc3['upload'])===null||_0x1526eb===void 0x0?void 0x0:_0x1526eb['tmpdir'])&&!fs['existsSync'](_0x1a5bc3[_0x55991b(0x18b)][_0x55991b(0x192)])&&(fs[_0x55991b(0x1d0)](_0x1a5bc3[_0x55991b(0x18b)][_0x55991b(0x192)],{'recursive':!![]}),console[_0x55991b(0x1c8)](_0x55991b(0x1ac)+_0x1a5bc3['upload']['tmpdir'])),this['config'][_0x55991b(0x197)](_0x1a5bc3);}};__decorate([(0x0,decorator_1[a2_0x1ca260(0x1c5)])(),__metadata(a2_0x1ca260(0x1b6),core_1[a2_0x1ca260(0x1b2)])],CustomConfiguration[a2_0x1ca260(0x1a4)],a2_0x1ca260(0x1be),void 0x0),__decorate([(0x0,decorator_1[a2_0x1ca260(0x1c5)])(),__metadata(a2_0x1ca260(0x1b6),core_1[a2_0x1ca260(0x1c2)])],CustomConfiguration[a2_0x1ca260(0x1a4)],a2_0x1ca260(0x1de),void 0x0),__decorate([(0x0,decorator_1[a2_0x1ca260(0x1c5)])(),__metadata(a2_0x1ca260(0x1b6),core_1[a2_0x1ca260(0x1a1)])],CustomConfiguration[a2_0x1ca260(0x1a4)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x1ca260(0x1c5)])(),__metadata(a2_0x1ca260(0x1b6),core_1[a2_0x1ca260(0x1a7)])],CustomConfiguration['prototype'],a2_0x1ca260(0x193),void 0x0),__decorate([(0x0,decorator_1[a2_0x1ca260(0x1c5)])(),__metadata(a2_0x1ca260(0x1b6),ApiService_1['ApiService'])],CustomConfiguration[a2_0x1ca260(0x1a4)],a2_0x1ca260(0x18e),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1ca260(0x1d1)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1ca260(0x1d3),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1ca260(0x1a3)]=CustomConfiguration;function a2_0x16f1(){const _0x1d81b5=['decorate','log','@midwayjs/decorator','13008ZYeScD','@midwayjs/upload','staticFile','./exception/ApiError','__metadata','@midwayjs/static-file','mkdirSync','Configuration','15736HKzfun','anncic-api','defineProperty','@midwayjs/task','258DrlrMu','anncicapi','@midwayjs/i18n','registerMethodHandler','24813ChDkpV','./service/ApiService','73HnhQvL','device','decorator','HEADERS_SIGNATURE','3yMGUnc','handlerActionRoute','get','371JEvVsN','object','context','ACTION_ROUTE_KEY','upload','input','headers','ApiService','hanlderApplications','DEFAULT','getOwnPropertyDescriptor','tmpdir','environment','bodyXml','isString','application','addObject','1959991cGNpdi','checkConfigKeys','anncic-apihelper','@midwayjs/core','apimit','dir','koa','length','forEach','MidwayApplicationManager','__esModule','CustomConfiguration','prototype','getConfiguration','defaultsDeep','MidwayEnvironmentService','@anncic-api/validator','devices','./config/config.default','keys','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','existsSync','metadata','./config/config.production','Anncic-api\x20static-file\x20:\x20mkdir\x20','MidwayConfigService','ApiError','function','187145SztYqp','design:type','filterConfig','_matchedRoute','query','target','request','__decorate','beforeRoute','config','626424bHVdpJ','14037810VjnmxF','getApplications','MidwayDecoratorService','dirs','key','Inject','onReady'];a2_0x16f1=function(){return _0x1d81b5;};return a2_0x16f1();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x5b39(_0x17f74a,_0xb40ef4){const _0x2c736b=a3_0x2c73();return a3_0x5b39=function(_0x5b395f,_0x5446c6){_0x5b395f=_0x5b395f-0x1e4;let _0xabe06=_0x2c736b[_0x5b395f];return _0xabe06;},a3_0x5b39(_0x17f74a,_0xb40ef4);}function a3_0x2c73(){const _0x1835af=['existsSync','521887FoVWbU','12586SBHNyg','join','Controller','366NPegtU','\x20文件请放在apps/','__esModule','middlewareIgnore','9990423hoZKOK','@midwayjs/decorator','Action','880504pZhDgj','tagName','3625992RPKJWf','parseRoute','apps/','module','/config.','toLowerCase','indexOf','rootpath','saveModule','-controller','ACTION_KEY','replace','filepath','split','/apps/','\x20文件请放在app/controller/文件下','defineProperty','7019290DOMcYF','push','endsWith','startsWith','substring','-action','splice','160699TVngRJ','APPSCONFIG_KEY','route','156mIYvhT','saveClassMetadata','getClassMetadata','length','middleware','5TIdBJt','isArray','app/controller/','cwd','../types/action','prefix','AppsConfigTmp','trim'];a3_0x2c73=function(){return _0x1835af;};return a3_0x2c73();}const a3_0x4cf0a8=a3_0x5b39;(function(_0x5d8918,_0x11a753){const _0x1fc273=a3_0x5b39,_0x4a16cb=_0x5d8918();while(!![]){try{const _0x388ec7=-parseInt(_0x1fc273(0x1f3))/0x1+parseInt(_0x1fc273(0x1f4))/0x2*(parseInt(_0x1fc273(0x1f7))/0x3)+-parseInt(_0x1fc273(0x1fe))/0x4*(parseInt(_0x1fc273(0x1ea))/0x5)+-parseInt(_0x1fc273(0x1e5))/0x6*(-parseInt(_0x1fc273(0x218))/0x7)+parseInt(_0x1fc273(0x200))/0x8+-parseInt(_0x1fc273(0x1fb))/0x9+parseInt(_0x1fc273(0x211))/0xa;if(_0x388ec7===_0x11a753)break;else _0x4a16cb['push'](_0x4a16cb['shift']());}catch(_0x4b0ad6){_0x4a16cb['push'](_0x4a16cb['shift']());}}}(a3_0x2c73,0xa3062));Object[a3_0x4cf0a8(0x210)](exports,a3_0x4cf0a8(0x1f9),{'value':!![]}),exports[a3_0x4cf0a8(0x201)]=exports[a3_0x4cf0a8(0x1fd)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x4cf0a8(0x1fc)),action_1=require(a3_0x4cf0a8(0x1ee));function Action(_0x308f4d,_0x599e5e,_0x4a148c={'middleware':[],'sensitive':!![]}){return _0x24743f=>{const _0x2399bd=a3_0x5b39;_0x4a148c[_0x2399bd(0x1ff)]=_0x599e5e;const _0x19c913=parseRoute(_0x308f4d);if(_0x19c913[_0x2399bd(0x203)]){_0x4a148c['prefix']=_0x4a148c[_0x2399bd(0x1ef)]?'/'+_0x19c913['module']+'/'+_0x4a148c[_0x2399bd(0x1ef)]:'/'+_0x19c913[_0x2399bd(0x1e4)];_0x19c913[_0x2399bd(0x1ef)]&&(_0x4a148c['prefix']='/'+_0x19c913[_0x2399bd(0x1ef)]+'/'+_0x4a148c['prefix']);if(fs[_0x2399bd(0x1f2)](_0x19c913[_0x2399bd(0x207)]+'/apps/'+_0x19c913[_0x2399bd(0x203)]+'/config.'+(lodash[_0x2399bd(0x213)](_0x19c913[_0x2399bd(0x20c)],'ts')?'ts':'js'))){const _0x45ee53=include(_0x19c913['rootpath']+_0x2399bd(0x20e)+_0x19c913[_0x2399bd(0x203)]+_0x2399bd(0x204)+(lodash['endsWith'](_0x19c913['filepath'],'ts')?'ts':'js'));if(_0x45ee53[_0x2399bd(0x1e9)]&&lodash[_0x2399bd(0x1eb)](_0x45ee53['middleware'])&&_0x45ee53[_0x2399bd(0x1e9)][_0x2399bd(0x1e8)]>0x0)for(let _0x407766 in _0x45ee53['middleware']){_0x45ee53[_0x2399bd(0x1fa)][_0x2399bd(0x206)](_0x45ee53['middleware'][_0x407766])==-0x1&&_0x4a148c[_0x2399bd(0x1e9)][_0x2399bd(0x212)](_0x45ee53[_0x2399bd(0x1e9)][_0x407766]);}const _0x29f775=(0x0,decorator_1[_0x2399bd(0x1e7)])(action_1[_0x2399bd(0x219)],action_1[_0x2399bd(0x1f0)])||{};_0x29f775[''+_0x19c913[_0x2399bd(0x203)]]=_0x45ee53,(0x0,decorator_1[_0x2399bd(0x1e6)])(action_1[_0x2399bd(0x219)],_0x29f775,action_1[_0x2399bd(0x1f0)]);}_0x4a148c['prefix']=_0x4a148c[_0x2399bd(0x1ef)][_0x2399bd(0x205)]()[_0x2399bd(0x20b)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2399bd(0x208)])(action_1[_0x2399bd(0x20a)],_0x24743f),(0x0,decorator_1[_0x2399bd(0x1f6)])(_0x4a148c[_0x2399bd(0x1ef)],_0x4a148c)(_0x24743f),(0x0,decorator_1[_0x2399bd(0x1e6)])(action_1[_0x2399bd(0x20a)],{'prefix':_0x4a148c[_0x2399bd(0x1ef)],'pprefix':_0x19c913[_0x2399bd(0x1ef)],'module':_0x19c913[_0x2399bd(0x203)],'filepath':_0x19c913[_0x2399bd(0x20c)],'routerOptions':_0x4a148c},_0x24743f);}else _0x4a148c['prefix']=_0x4a148c[_0x2399bd(0x1ef)]?'/'+_0x4a148c['prefix']:'/'+_0x19c913[_0x2399bd(0x1e4)],_0x19c913['prefix']&&(_0x4a148c['prefix']='/'+_0x19c913['prefix']+'/'+_0x4a148c[_0x2399bd(0x1ef)]),_0x4a148c[_0x2399bd(0x1ef)]=_0x4a148c[_0x2399bd(0x1ef)][_0x2399bd(0x205)]()[_0x2399bd(0x20b)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x2399bd(0x208)])(action_1[_0x2399bd(0x20a)],_0x24743f),(0x0,decorator_1[_0x2399bd(0x1f6)])(_0x4a148c[_0x2399bd(0x1ef)],_0x4a148c)(_0x24743f),(0x0,decorator_1[_0x2399bd(0x1e6)])(action_1[_0x2399bd(0x20a)],{'prefix':_0x4a148c[_0x2399bd(0x1ef)],'module':_0x19c913[_0x2399bd(0x203)],'pprefix':_0x19c913['prefix'],'filepath':_0x19c913[_0x2399bd(0x20c)],'routerOptions':_0x4a148c},_0x24743f);};}exports[a3_0x4cf0a8(0x1fd)]=Action;function parseRoute(_0x5d0f59){const _0x29fdd8=a3_0x4cf0a8;_0x5d0f59=_0x5d0f59[_0x29fdd8(0x20b)](/(\\|\/)/g,'/');const _0x3deea2=process[_0x29fdd8(0x1ed)]()[_0x29fdd8(0x20b)](/(\\|\/)/g,'/'),_0x4f7ea7=_0x5d0f59['substring'](0x0,_0x3deea2[_0x29fdd8(0x1e8)]+_0x5d0f59[_0x29fdd8(0x215)](_0x3deea2['length']+0x1)[_0x29fdd8(0x206)]('/')+0x1),_0x5982c9=_0x5d0f59['substring'](_0x4f7ea7[_0x29fdd8(0x1e8)]+0x1)[_0x29fdd8(0x20b)](/(\\|\/)/g,'/'),_0x4dffdb={'route':'','prefix':![],'module':![],'rootpath':_0x4f7ea7,'filepath':_0x5982c9};if(_0x5982c9[_0x29fdd8(0x214)](_0x29fdd8(0x1ec))){const _0x36d5ce=_0x5982c9[_0x29fdd8(0x215)](_0x29fdd8(0x1ec)['length'])[_0x29fdd8(0x20d)]('/')['filter'](_0x31f38f=>_0x31f38f&&_0x31f38f['trim']());return _0x36d5ce[_0x29fdd8(0x1e8)]>0x1&&(_0x4dffdb['prefix']=_0x36d5ce[0x0][_0x29fdd8(0x205)](),_0x36d5ce[_0x29fdd8(0x217)](0x0,0x1)),_0x4dffdb[_0x29fdd8(0x1e4)]=('/'+_0x36d5ce['join']('/'))[_0x29fdd8(0x20b)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x29fdd8(0x1f5)]('-')[_0x29fdd8(0x205)]()[_0x29fdd8(0x20b)](/\/\-/g,'/'),_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x213)](_0x29fdd8(0x216))&&(_0x4dffdb[_0x29fdd8(0x1e4)]=_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x215)](0x0,_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x1e8)]-0x7)),_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x213)](_0x29fdd8(0x209))&&(_0x4dffdb['route']=_0x4dffdb[_0x29fdd8(0x1e4)]['substring'](0x0,_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x1e8)]-0xb)),_0x4dffdb;}else{if(_0x5982c9[_0x29fdd8(0x214)]('apps/')){const _0x12fea5=_0x5982c9[_0x29fdd8(0x215)](0x0,_0x5982c9['indexOf']('/apps/')+0x5),_0x218af2=_0x5982c9[_0x29fdd8(0x215)](_0x12fea5['length']+0x1)[_0x29fdd8(0x20b)](/(\\|\/)/g,'/')[_0x29fdd8(0x20d)]('/')[0x0];if(_0x5982c9['startsWith'](_0x29fdd8(0x202)+_0x218af2+'/controller/')){const _0x5ea164=_0x5982c9[_0x29fdd8(0x215)]((_0x12fea5+'/'+_0x218af2+'/controller/')['length'])[_0x29fdd8(0x20d)]('/')['filter'](_0x5496e8=>_0x5496e8&&_0x5496e8[_0x29fdd8(0x1f1)]());return _0x5ea164['length']>0x1&&(_0x4dffdb['prefix']=_0x5ea164[0x0][_0x29fdd8(0x205)](),_0x5ea164[_0x29fdd8(0x217)](0x0,0x1)),_0x4dffdb['module']=_0x218af2,_0x4dffdb[_0x29fdd8(0x1e4)]=('/'+_0x218af2+'/'+_0x5ea164[_0x29fdd8(0x1f5)]('/'))[_0x29fdd8(0x20b)](/(\.ts|\.js)$/,'')[_0x29fdd8(0x20b)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x29fdd8(0x1f5)]('-')[_0x29fdd8(0x205)]()[_0x29fdd8(0x20b)](/\/\-/g,'/'),_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x213)](_0x29fdd8(0x216))&&(_0x4dffdb[_0x29fdd8(0x1e4)]=_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x215)](0x0,_0x4dffdb['route'][_0x29fdd8(0x1e8)]-0x7)),_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x213)](_0x29fdd8(0x209))&&(_0x4dffdb['route']=_0x4dffdb['route']['substring'](0x0,_0x4dffdb[_0x29fdd8(0x1e4)][_0x29fdd8(0x1e8)]-0xb)),_0x4dffdb;}throw new Error(_0x5982c9+_0x29fdd8(0x1f8)+_0x218af2+'/controller/文件下');}}throw new Error(_0x5982c9+_0x29fdd8(0x20f));}exports[a3_0x4cf0a8(0x201)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x5a6e43=a4_0x147f;function a4_0x4c66(){const _0x58a29d=['validate','createCustomMethodDecorator','5698kdlefL','74724gjRaIT','assign','toLowerCase','apimit','routerName','attachClassMetadata','2896852fROmuj','middleware','del','ACTION_ROUTE_KEY','576969ZJnUzR','15eHDqhV','delete','middlewareIgnore','Validator','defineProperty','@anncic-api/validator','get','53774bMSjRr','1449840iHxGKq','200KqBieQ','length','__esModule','Api','../types/action','568038HgmnfE','RequestMapping','description','70AAoFHy','2167632hydYoY','filter','20TKERWY','@midwayjs/decorator'];a4_0x4c66=function(){return _0x58a29d;};return a4_0x4c66();}(function(_0x3446c4,_0x526bd8){const _0x4855df=a4_0x147f,_0x2db54d=_0x3446c4();while(!![]){try{const _0x32c220=-parseInt(_0x4855df(0x146))/0x1+-parseInt(_0x4855df(0x139))/0x2+parseInt(_0x4855df(0x13d))/0x3*(-parseInt(_0x4855df(0x152))/0x4)+-parseInt(_0x4855df(0x13e))/0x5*(parseInt(_0x4855df(0x14c))/0x6)+parseInt(_0x4855df(0x145))/0x7*(parseInt(_0x4855df(0x147))/0x8)+-parseInt(_0x4855df(0x150))/0x9*(-parseInt(_0x4855df(0x14f))/0xa)+-parseInt(_0x4855df(0x156))/0xb*(-parseInt(_0x4855df(0x133))/0xc);if(_0x32c220===_0x526bd8)break;else _0x2db54d['push'](_0x2db54d['shift']());}catch(_0x442b75){_0x2db54d['push'](_0x2db54d['shift']());}}}(a4_0x4c66,0xea4b8));Object[a4_0x5a6e43(0x142)](exports,a4_0x5a6e43(0x149),{'value':!![]}),exports[a4_0x5a6e43(0x14a)]=void 0x0;function a4_0x147f(_0x218777,_0x4dbdeb){const _0x4c661f=a4_0x4c66();return a4_0x147f=function(_0x147f5a,_0x526dc0){_0x147f5a=_0x147f5a-0x133;let _0x1c1a05=_0x4c661f[_0x147f5a];return _0x1c1a05;},a4_0x147f(_0x218777,_0x4dbdeb);}const validator_1=require(a4_0x5a6e43(0x143)),decorator_1=require(a4_0x5a6e43(0x153)),action_1=require(a4_0x5a6e43(0x14b));function Api(_0x2afb92,_0x42829e=a4_0x5a6e43(0x144),_0x35b6c2='/',_0x199778={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5987be,_0x358a5b,_0x15cd01)=>{const _0x55cb69=a4_0x147f;var _0x4c6a33,_0x11defe,_0x3cdc38;!_0x199778[_0x55cb69(0x13a)]&&(_0x199778[_0x55cb69(0x13a)]=[]);!((_0x4c6a33=_0x199778===null||_0x199778===void 0x0?void 0x0:_0x199778[_0x55cb69(0x154)])===null||_0x4c6a33===void 0x0?void 0x0:_0x4c6a33['validationOptions'])&&(_0x199778[_0x55cb69(0x154)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0x11defe=_0x199778===null||_0x199778===void 0x0?void 0x0:_0x199778[_0x55cb69(0x13a)])===null||_0x11defe===void 0x0?void 0x0:_0x11defe['length'])>0x0&&((_0x3cdc38=_0x199778===null||_0x199778===void 0x0?void 0x0:_0x199778[_0x55cb69(0x140)])===null||_0x3cdc38===void 0x0?void 0x0:_0x3cdc38[_0x55cb69(0x148)])>0x0)for(let _0x4f43ca in _0x199778[_0x55cb69(0x13a)]){_0x199778['middlewareIgnore']['indexOf'](_0x199778[_0x55cb69(0x13a)][_0x4f43ca])!==-0x1&&(_0x199778[_0x55cb69(0x13a)][_0x4f43ca]=null);}_0x199778[_0x55cb69(0x137)]=_0x2afb92,(0x0,validator_1[_0x55cb69(0x141)])(_0x199778['validate'])(_0x5987be,_0x358a5b,_0x15cd01),(0x0,decorator_1[_0x55cb69(0x14d)])(Object[_0x55cb69(0x134)](_0x199778,{'path':_0x35b6c2,'requestMethod':(_0x42829e=='del'?_0x55cb69(0x13f):_0x42829e)['toLowerCase']()}))(_0x5987be,_0x358a5b,_0x15cd01),(0x0,decorator_1[_0x55cb69(0x138)])(action_1[_0x55cb69(0x13c)],{'path':_0x35b6c2,'method':_0x358a5b,'apimit':_0x199778[_0x55cb69(0x136)],'routerName':_0x199778[_0x55cb69(0x137)],'description':_0x199778[_0x55cb69(0x14e)],'middleware':(_0x199778[_0x55cb69(0x13a)]||[])[_0x55cb69(0x151)](_0x2c1616=>!!_0x2c1616),'requestMethod':(_0x42829e==_0x55cb69(0x13b)?_0x55cb69(0x13f):_0x42829e)[_0x55cb69(0x135)]()},_0x5987be),(0x0,decorator_1[_0x55cb69(0x155)])(action_1[_0x55cb69(0x13c)],{'path':_0x35b6c2,'method':_0x358a5b,'apimit':_0x199778[_0x55cb69(0x136)],'routerName':_0x199778['routerName'],'description':_0x199778[_0x55cb69(0x14e)],'middleware':(_0x199778[_0x55cb69(0x13a)]||[])[_0x55cb69(0x151)](_0x2cee15=>!!_0x2cee15),'requestMethod':(_0x42829e=='del'?_0x55cb69(0x13f):_0x42829e)[_0x55cb69(0x135)]()})(_0x5987be,_0x358a5b,_0x15cd01);};}exports[a4_0x5a6e43(0x14a)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x2577f1=a5_0x1f26;(function(_0x7c7d2c,_0xfb005e){const _0x4f51f8=a5_0x1f26,_0x4c2275=_0x7c7d2c();while(!![]){try{const _0x21f6e4=parseInt(_0x4f51f8(0xf0))/0x1*(-parseInt(_0x4f51f8(0xe6))/0x2)+-parseInt(_0x4f51f8(0xf7))/0x3+-parseInt(_0x4f51f8(0xee))/0x4*(parseInt(_0x4f51f8(0xfc))/0x5)+-parseInt(_0x4f51f8(0xf8))/0x6*(-parseInt(_0x4f51f8(0xf6))/0x7)+-parseInt(_0x4f51f8(0xe4))/0x8*(-parseInt(_0x4f51f8(0xe3))/0x9)+-parseInt(_0x4f51f8(0xf5))/0xa+parseInt(_0x4f51f8(0xf4))/0xb;if(_0x21f6e4===_0xfb005e)break;else _0x4c2275['push'](_0x4c2275['shift']());}catch(_0x93717b){_0x4c2275['push'](_0x4c2275['shift']());}}}(a5_0x3cb6,0x465d7));Object[a5_0x2577f1(0xeb)](exports,a5_0x2577f1(0xfb),{'value':!![]}),exports[a5_0x2577f1(0xf3)]=void 0x0;const decorator_1=require(a5_0x2577f1(0xec)),core_1=require(a5_0x2577f1(0xe2)),ApitestService_1=require(a5_0x2577f1(0xfd));function a5_0x3cb6(){const _0x3a4cdf=['@midwayjs/core','1539270jrmIJm','8SvhoBN','apidoc','975700VPizYz','getApplicationContext','apitest','getAsync','filepath','defineProperty','@midwayjs/decorator','value','6436zoYRCP','ApitestService','1eJaJhg','MidwayEnvironmentService','app','Apitest','5651635dDQwza','739680zIXBTq','35CNIEjS','274119KmhPhq','319494qBFAKx','RequestMapping','isDevelopmentEnvironment','__esModule','30pkSVtx','../service/ApitestService','get'];a5_0x3cb6=function(){return _0x3a4cdf;};return a5_0x3cb6();}function a5_0x1f26(_0x1be7ad,_0x21315e){const _0x3cb697=a5_0x3cb6();return a5_0x1f26=function(_0x1f2606,_0x193dc4){_0x1f2606=_0x1f2606-0xe1;let _0x1f1353=_0x3cb697[_0x1f2606];return _0x1f1353;},a5_0x1f26(_0x1be7ad,_0x21315e);}function Apitest(_0x510716='/apitest',_0x5872d0){return(_0x14c207,_0x44e26d,_0x3969b7)=>{const _0x2abf4a=a5_0x1f26;return(0x0,decorator_1[_0x2abf4a(0xf9)])({'path':_0x510716,'requestMethod':_0x2abf4a(0xe1)})(_0x14c207,_0x44e26d,_0x3969b7),_0x3969b7[_0x2abf4a(0xed)]=async function(..._0x13b07f){const _0x3b2775=_0x2abf4a;var _0x633c0b;const _0x47e066=(_0x633c0b=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x633c0b===void 0x0?void 0x0:_0x633c0b[_0x3b2775(0xf2)];if(_0x47e066&&_0x47e066['getConfig'](_0x3b2775(0xe8))){const _0x2b88d9=await _0x47e066[_0x3b2775(0xe7)]()['getAsync'](ApitestService_1[_0x3b2775(0xef)]),_0x40f69c=await _0x47e066['getApplicationContext']()[_0x3b2775(0xe9)](core_1[_0x3b2775(0xf1)]);return _0x40f69c[_0x3b2775(0xfa)]()&&(_0x5872d0[_0x3b2775(0xea)]=!![]),await _0x2b88d9[_0x3b2775(0xe5)](_0x5872d0);}return'';},_0x3969b7;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x1a8362=a6_0x2f11;(function(_0x3ae8a8,_0x171a39){var _0x10af28=a6_0x2f11,_0x5abb69=_0x3ae8a8();while(!![]){try{var _0x34e6a2=-parseInt(_0x10af28(0x137))/0x1+-parseInt(_0x10af28(0x145))/0x2*(-parseInt(_0x10af28(0x13e))/0x3)+-parseInt(_0x10af28(0x12f))/0x4*(-parseInt(_0x10af28(0x132))/0x5)+-parseInt(_0x10af28(0x144))/0x6+-parseInt(_0x10af28(0x133))/0x7*(parseInt(_0x10af28(0x135))/0x8)+parseInt(_0x10af28(0x148))/0x9+parseInt(_0x10af28(0x131))/0xa;if(_0x34e6a2===_0x171a39)break;else _0x5abb69['push'](_0x5abb69['shift']());}catch(_0x46344c){_0x5abb69['push'](_0x5abb69['shift']());}}}(a6_0xa3bb,0xb768f));function a6_0xa3bb(){var _0x289804=['请使用正确的设备','__metadata','TIMEOUT','defineProperty','431985vHjmbN','HEADERS_LACK','design:type','网络繁忙,请稍后重试','ApiError','object','5596296LIbhKl','14KamzYF','checkcode验证失败','decorate','164232WWOFOn','HEADERS_SIGNATURE','metadata','HEADERS_DEVICE','24puMjKy','HEADERS_CHECKCODE','17492830gYqJNX','457505EillMM','469fMRjWj','signature验证失败','140528ROrhpo','请求头信息不完整','463617OfiAlD','function','length'];a6_0xa3bb=function(){return _0x289804;};return a6_0xa3bb();}var __decorate=this&&this['__decorate']||function(_0x4d4399,_0x4e4c94,_0x5325a8,_0x427807){var _0xe49ce9=a6_0x2f11,_0x201268=arguments[_0xe49ce9(0x139)],_0x478344=_0x201268<0x3?_0x4e4c94:_0x427807===null?_0x427807=Object['getOwnPropertyDescriptor'](_0x4e4c94,_0x5325a8):_0x427807,_0x463303;if(typeof Reflect===_0xe49ce9(0x143)&&typeof Reflect[_0xe49ce9(0x147)]===_0xe49ce9(0x138))_0x478344=Reflect['decorate'](_0x4d4399,_0x4e4c94,_0x5325a8,_0x427807);else{for(var _0x2b0865=_0x4d4399[_0xe49ce9(0x139)]-0x1;_0x2b0865>=0x0;_0x2b0865--)if(_0x463303=_0x4d4399[_0x2b0865])_0x478344=(_0x201268<0x3?_0x463303(_0x478344):_0x201268>0x3?_0x463303(_0x4e4c94,_0x5325a8,_0x478344):_0x463303(_0x4e4c94,_0x5325a8))||_0x478344;}return _0x201268>0x3&&_0x478344&&Object[_0xe49ce9(0x13d)](_0x4e4c94,_0x5325a8,_0x478344),_0x478344;},__metadata=this&&this[a6_0x1a8362(0x13b)]||function(_0x23a17c,_0x4c3cf1){var _0x46b19b=a6_0x1a8362;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x46b19b(0x12d)](_0x23a17c,_0x4c3cf1);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a6_0x1a8362(0x142)]=void 0x0;function a6_0x2f11(_0x161160,_0x2d8ed2){var _0xa3bbba=a6_0xa3bb();return a6_0x2f11=function(_0x2f1153,_0x10a34d){_0x2f1153=_0x2f1153-0x12d;var _0x18e0ec=_0xa3bbba[_0x2f1153];return _0x18e0ec;},a6_0x2f11(_0x161160,_0x2d8ed2);}class ApiError{}ApiError[a6_0x1a8362(0x13c)]=0x18a89,ApiError[a6_0x1a8362(0x13f)]=0x18a8a,ApiError[a6_0x1a8362(0x12e)]=0x18a8b,ApiError[a6_0x1a8362(0x130)]=0x18a8c,ApiError[a6_0x1a8362(0x149)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x1a8362(0x141)),__metadata('design:type',Object)],ApiError,a6_0x1a8362(0x13c),void 0x0),__decorate([AnnErrorMsg(a6_0x1a8362(0x136)),__metadata(a6_0x1a8362(0x140),Object)],ApiError,a6_0x1a8362(0x13f),void 0x0),__decorate([AnnErrorMsg(a6_0x1a8362(0x13a)),__metadata(a6_0x1a8362(0x140),Object)],ApiError,a6_0x1a8362(0x12e),void 0x0),__decorate([AnnErrorMsg(a6_0x1a8362(0x146)),__metadata(a6_0x1a8362(0x140),Object)],ApiError,a6_0x1a8362(0x130),void 0x0),__decorate([AnnErrorMsg(a6_0x1a8362(0x134)),__metadata(a6_0x1a8362(0x140),Object)],ApiError,a6_0x1a8362(0x149),void 0x0),exports[a6_0x1a8362(0x142)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x4e11e1=a7_0x3abe;(function(_0x5a7a6d,_0x38f588){const _0x1eef86=a7_0x3abe,_0xf8f093=_0x5a7a6d();while(!![]){try{const _0x1669e4=-parseInt(_0x1eef86(0x164))/0x1*(-parseInt(_0x1eef86(0x163))/0x2)+-parseInt(_0x1eef86(0x15a))/0x3+-parseInt(_0x1eef86(0x159))/0x4+parseInt(_0x1eef86(0x156))/0x5+parseInt(_0x1eef86(0x15b))/0x6*(-parseInt(_0x1eef86(0x15c))/0x7)+-parseInt(_0x1eef86(0x158))/0x8+parseInt(_0x1eef86(0x15e))/0x9;if(_0x1669e4===_0x38f588)break;else _0xf8f093['push'](_0xf8f093['shift']());}catch(_0x512248){_0xf8f093['push'](_0xf8f093['shift']());}}}(a7_0x25b6,0x89a98));function a7_0x25b6(){const _0x3f4f24=['getClassMetadata','AppsConfigTmp','APPSCONFIG_KEY','10rMSHWv','13964uTMUqX','get','../types/action','3571915dWUZoK','getAppsConfig','5764040VNgOAK','3112772bsfnaV','2950605PhRTTa','132iheAnI','177926qNIFpB','@midwayjs/decorator','25389810FOWzco','defineProperty'];a7_0x25b6=function(){return _0x3f4f24;};return a7_0x25b6();}Object[a7_0x4e11e1(0x15f)](exports,'__esModule',{'value':!![]}),exports[a7_0x4e11e1(0x157)]=void 0x0;const decorator_1=require(a7_0x4e11e1(0x15d)),action_1=require(a7_0x4e11e1(0x166));function getAppsConfig(_0x323d05){const _0x38bd49=a7_0x4e11e1,_0x2e45a7=(0x0,decorator_1[_0x38bd49(0x160)])(action_1[_0x38bd49(0x162)],action_1[_0x38bd49(0x161)])||{};return _0x323d05?lodash[_0x38bd49(0x165)](_0x2e45a7,_0x323d05):_0x2e45a7;}function a7_0x3abe(_0x349135,_0x29e0ee){const _0x25b6e4=a7_0x25b6();return a7_0x3abe=function(_0x3abe40,_0x2a56a8){_0x3abe40=_0x3abe40-0x156;let _0x4e6067=_0x25b6e4[_0x3abe40];return _0x4e6067;},a7_0x3abe(_0x349135,_0x29e0ee);}exports[a7_0x4e11e1(0x157)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0x4bd4(){const _0x42e97c=['split','array','object','Boolean','ACTION_ROUTE_KEY','keys','propertyData','string','2525442CdyfFt','min','metadata','default','find','routerOptions','method','log','7amzIuC','tagName','route','summary','defineProperty','allow','number','11953610xJMgtB','get','ACTION_KEY','filter','noreq','文件上传-','FILESSTREAM','flags.presence','4129425cLuzyN','@midwayjs/decorator','parameterIndex','startsWith','test','WEB_ROUTER_PARAM_KEY','filepath','-array','module','static/apitest','function','297041QjGLrB','INJECT_CUSTOM_PARAM','prefix','rules','38940eQxykL','FILESTREAM','key','push','isArray','getClassMetadata','209078kSmAzr','lodash','args','pprefix','request','header','RULES_KEY','只允许:[','concat','length','body','query','boolean','getRoutes','File','364eGGocP','HEADERS','4557ouKhcd','routes','Number','BODY','flags.default','describe','Object','file','indexOf','path','type','required','QUERY','listModule','requestMethod','max','8iDHcKc','/static/apitest','limit','items','description','flags.description','replace','RouteParamTypes','name','title','children','PARAM','getClassExtendedMetadata'];a8_0x4bd4=function(){return _0x42e97c;};return a8_0x4bd4();}const a8_0xde2c5b=a8_0x150e;(function(_0x3c5ddf,_0x3e59fb){const _0x4f49d7=a8_0x150e,_0x302f5b=_0x3c5ddf();while(!![]){try{const _0x1874b7=-parseInt(_0x4f49d7(0xfb))/0x1+parseInt(_0x4f49d7(0x105))/0x2+-parseInt(_0x4f49d7(0x116))/0x3*(-parseInt(_0x4f49d7(0x114))/0x4)+parseInt(_0x4f49d7(0xff))/0x5+-parseInt(_0x4f49d7(0xd9))/0x6*(parseInt(_0x4f49d7(0xe1))/0x7)+parseInt(_0x4f49d7(0x126))/0x8*(-parseInt(_0x4f49d7(0xf0))/0x9)+parseInt(_0x4f49d7(0xe8))/0xa;if(_0x1874b7===_0x3e59fb)break;else _0x302f5b['push'](_0x302f5b['shift']());}catch(_0x2e3e49){_0x302f5b['push'](_0x302f5b['shift']());}}}(a8_0x4bd4,0x41b58));function a8_0x150e(_0x53f8df,_0x2d9e9f){const _0x4bd4e9=a8_0x4bd4();return a8_0x150e=function(_0x150ed2,_0x35e3ce){_0x150ed2=_0x150ed2-0xd1;let _0x5509b1=_0x4bd4e9[_0x150ed2];return _0x5509b1;},a8_0x150e(_0x53f8df,_0x2d9e9f);}Object[a8_0xde2c5b(0xe5)](exports,'__esModule',{'value':!![]}),exports[a8_0xde2c5b(0x112)]=void 0x0;const lodash_1=require(a8_0xde2c5b(0x106)),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0xde2c5b(0xf1)),decorator_2=require(a8_0xde2c5b(0xf1)),decorator_3=require(a8_0xde2c5b(0xf1)),action_1=require('../types/action');function getRoutes(_0x39478e={'prefix':'/','module':![]}){const _0x3cf742=a8_0xde2c5b;var _0x112e64,_0x281af7;const _0x42a86f=(0x0,decorator_3[_0x3cf742(0x123)])(action_1['ACTION_KEY']),_0x37efe1={},_0x46af04=Array[_0x3cf742(0x103)](_0x39478e[_0x3cf742(0xeb)]||[])?_0x39478e['filter']||[]:[_0x39478e['filter']];_0xe45b38:for(const _0x2e2f87 of _0x42a86f){let _0xc63072=(0x0,decorator_3[_0x3cf742(0x104)])(action_1[_0x3cf742(0xea)],_0x2e2f87),_0x1d0444=(0x0,decorator_3[_0x3cf742(0x104)])(action_1[_0x3cf742(0xd5)],_0x2e2f87);if(_0xc63072&&_0x1d0444){let _0x4a6d7e=_0xc63072[_0x3cf742(0xfd)],_0x406503={};if(_0x39478e['module']&&(0x0,lodash_1[_0x3cf742(0xe9)])(_0xc63072,_0x3cf742(0xf8),![])!=_0x39478e[_0x3cf742(0xf8)])continue _0xe45b38;else{if(_0x39478e[_0x3cf742(0xf8)]===![]&&!!(0x0,lodash_1['get'])(_0xc63072,_0x3cf742(0xf8),null))continue _0xe45b38;}if(_0x39478e[_0x3cf742(0xfd)]&&!_0x4a6d7e[_0x3cf742(0xf3)](_0x39478e[_0x3cf742(0xfd)]))continue _0xe45b38;_0x4a6d7e!=='/'?(_0x406503[_0x3cf742(0xe4)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xde)][_0x3cf742(0xe2)])||(/^\//[_0x3cf742(0xf4)](_0x4a6d7e)?_0x4a6d7e[_0x3cf742(0xd1)]('/')[0x1]:_0x4a6d7e),_0x406503[_0x3cf742(0x12a)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0x12a)])||_0x406503[_0x3cf742(0xe4)],_0x406503[_0x3cf742(0x117)]=[]):(_0x406503[_0x3cf742(0xe4)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0xe2)])||_0x3cf742(0xdc),_0x406503[_0x3cf742(0x12a)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0x12a)])||'',_0x406503[_0x3cf742(0x117)]=[]);_0x39478e[_0x3cf742(0xf6)]&&(_0x406503[_0x3cf742(0xf6)]=_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xf6)]);(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0x108)])&&(_0x406503['prefix']=_0xc63072[_0x3cf742(0x108)]);(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xf8)])&&(_0x406503[_0x3cf742(0xf8)]=_0xc63072[_0x3cf742(0xf8)]);let _0x1cca20=(0x0,decorator_3[_0x3cf742(0x104)])(decorator_2[_0x3cf742(0xfc)],_0x2e2f87)||{};if(typeof _0x1d0444[Symbol['iterator']]===_0x3cf742(0xfa))for(let _0x3a73c0 of _0x1d0444){let _0x4adff2={};_0x4adff2[_0x3cf742(0xdf)]=_0x3a73c0[_0x3cf742(0x124)],_0x4adff2[_0x3cf742(0xe3)]=(_0x4a6d7e+_0x3a73c0[_0x3cf742(0x11f)])[_0x3cf742(0x12c)](/\/{1,}/,'/'),_0x4adff2['summary']=(_0x3a73c0===null||_0x3a73c0===void 0x0?void 0x0:_0x3a73c0['routerName'])||_0x406503[_0x3cf742(0xe4)]||'default',_0x4adff2[_0x3cf742(0x12a)]=(_0x3a73c0===null||_0x3a73c0===void 0x0?void 0x0:_0x3a73c0['description'])||'',_0x4adff2[_0x3cf742(0x109)]=[];if(!(0x0,lodash_1[_0x3cf742(0xf3)])(_0x4adff2[_0x3cf742(0xe3)],_0x3cf742(0xf9))&&!(0x0,lodash_1[_0x3cf742(0xf3)])(_0x4adff2[_0x3cf742(0xe3)],_0x3cf742(0x127))&&_0x46af04[_0x3cf742(0x11e)](_0x4adff2[_0x3cf742(0xe3)])===-0x1){if(!(_0x39478e===null||_0x39478e===void 0x0?void 0x0:_0x39478e[_0x3cf742(0xec)])){let _0x2b61e4=(0x0,decorator_3['getMethodParamTypes'])(new _0x2e2f87(),_0x3a73c0[_0x3cf742(0xdf)]);for(const _0x23c6f8 in _0x2b61e4){let _0x8fadfa=(_0x112e64=_0x1cca20[_0x3a73c0[_0x3cf742(0xdf)]])===null||_0x112e64===void 0x0?void 0x0:_0x112e64[_0x3cf742(0xdd)](_0x398031=>_0x398031[_0x3cf742(0xf2)]==_0x23c6f8&&_0x398031[_0x3cf742(0x101)]===decorator_2[_0x3cf742(0xf5)]&&(_0x398031===null||_0x398031===void 0x0?void 0x0:_0x398031['metadata']));if(_0x8fadfa===null||_0x8fadfa===void 0x0?void 0x0:_0x8fadfa[_0x3cf742(0xdb)]){let _0x2eda12=convertTypeToString(_0x8fadfa[_0x3cf742(0xdb)]['type']||0x0);if([_0x3cf742(0x110),'body'][_0x3cf742(0x11e)](_0x2eda12)!=-0x1&&_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)][_0x3cf742(0x11e)](':')==-0x1&&!_0x4adff2['request'][_0x3cf742(0xdd)](_0x15eabd=>_0x15eabd[_0x3cf742(0x101)]==_0x8fadfa[_0x3cf742(0xdb)]['propertyData']))_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)]({'key':_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)],'title':_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)],'type':convertSchemaType(_0x2b61e4[_0x8fadfa[_0x3cf742(0xf2)]][_0x3cf742(0x12e)]),'required':![],'default':'','desc':''});else{if(_0x2eda12==_0x3cf742(0x11d)){let _0x27d2cd=((_0x281af7=_0x8fadfa===null||_0x8fadfa===void 0x0?void 0x0:_0x8fadfa['metadata'])===null||_0x281af7===void 0x0?void 0x0:_0x281af7[_0x3cf742(0xd7)])||'file';_0x27d2cd[_0x3cf742(0x11e)](':')==-0x1&&!_0x4adff2[_0x3cf742(0x109)]['find'](_0x184516=>_0x184516[_0x3cf742(0x101)]==_0x27d2cd&&_0x184516[_0x3cf742(0x120)]==_0x3cf742(0x11d))&&_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)]({'key':_0x27d2cd,'title':_0x3cf742(0xed)+_0x27d2cd,'type':_0x3cf742(0x11d),'required':!![],'default':'','desc':''});}}}else{const _0x537dd2=(0x0,decorator_3[_0x3cf742(0x132)])(validator_1[_0x3cf742(0x10b)],_0x2b61e4[_0x23c6f8]);_0x537dd2&&_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)](...getJoiRequest(_0x537dd2));}}}_0x406503[_0x3cf742(0x117)]['push'](_0x4adff2);}}if(_0x406503['routes'][_0x3cf742(0x10e)]>0x0){let _0x359327=_0x37efe1[_0x4a6d7e];_0x359327?(_0x359327[_0x3cf742(0xe4)]!=_0x406503['summary']&&(_0x359327['summary']=_0x359327[_0x3cf742(0xe4)]+','+_0x406503[_0x3cf742(0xe4)]),_0x359327[_0x3cf742(0x12a)]!=_0x406503[_0x3cf742(0x12a)]&&(_0x359327[_0x3cf742(0x12a)]=_0x359327['description']+','+_0x406503['description']),_0x359327[_0x3cf742(0x117)]=_0x359327['routes'][_0x3cf742(0x10d)](_0x406503[_0x3cf742(0x117)]),_0x37efe1[_0x4a6d7e]=_0x359327):_0x37efe1[_0x4a6d7e]=_0x406503;}}}return _0x37efe1;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2de8d5){const _0x253e81=a8_0xde2c5b,_0x1cd0ac=[];for(let _0x3b4536 in _0x2de8d5){const _0x581a54={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5d7026=typeof _0x2de8d5[_0x3b4536][_0x253e81(0x11b)]=='function'?_0x2de8d5[_0x3b4536][_0x253e81(0x11b)]():_0x2de8d5[_0x3b4536];_0x581a54[_0x253e81(0x101)]=_0x3b4536,_0x581a54['type']=_0x5d7026[_0x253e81(0x120)],_0x581a54[_0x253e81(0x12f)]=(0x0,lodash_1['get'])(_0x5d7026,'flags.label',_0x3b4536),_0x581a54[_0x253e81(0xdc)]=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0x11a),''),_0x581a54[_0x253e81(0x121)]=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0xef),'')==_0x253e81(0x121),_0x581a54['description']=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0x12b),'');if(_0x5d7026[_0x253e81(0x120)]=='object')_0x581a54[_0x253e81(0x130)]=getJoiRequest(_0x5d7026[_0x253e81(0xd6)]);else _0x5d7026[_0x253e81(0x120)]==_0x253e81(0xd2)&&_0x5d7026['items']&&Array[_0x253e81(0x103)](_0x5d7026[_0x253e81(0x129)])&&_0x5d7026[_0x253e81(0x129)][0x0]&&console[_0x253e81(0xe0)](_0x3b4536+_0x253e81(0xf7),_0x5d7026);_0x5d7026[_0x253e81(0xe6)]&&Array['isArray'](_0x5d7026[_0x253e81(0xe6)])&&_0x5d7026[_0x253e81(0xe6)]['length']>0x0&&(_0x581a54[_0x253e81(0x12a)]=_0x253e81(0x10c)+_0x5d7026[_0x253e81(0xe6)]['join'](',')+'];'+_0x581a54[_0x253e81(0x12a)]);if(_0x581a54['key']&&_0x581a54['type']){const _0x2352ab={};for(const _0x5ce0a2 of _0x5d7026[_0x253e81(0xfe)]||[]){if(_0x5ce0a2[_0x253e81(0x12e)]===_0x253e81(0xda)&&_0x5ce0a2[_0x253e81(0x107)])_0x2352ab[_0x253e81(0xda)]=_0x5ce0a2[_0x253e81(0x107)]['limit'];else _0x5ce0a2['name']===_0x253e81(0x125)&&(_0x2352ab[_0x253e81(0x125)]=_0x5ce0a2[_0x253e81(0x107)][_0x253e81(0x128)]);}_0x581a54['rules']=_0x2352ab;}_0x581a54[_0x253e81(0x101)]&&_0x581a54[_0x253e81(0x12f)]&&_0x1cd0ac['push'](_0x581a54);}return _0x1cd0ac;}function convertSchemaType(_0x2019f7){const _0x2390ca=a8_0xde2c5b;switch(_0x2019f7){case _0x2390ca(0x11c):return _0x2390ca(0xd3);case _0x2390ca(0xd4):return _0x2390ca(0x111);case _0x2390ca(0x118):return _0x2390ca(0xe7);case'String':return _0x2390ca(0xd8);case _0x2390ca(0x113):return _0x2390ca(0x11d);default:return _0x2390ca(0xd8);}}function convertTypeToString(_0x273a05){const _0x28df73=a8_0xde2c5b;switch(_0x273a05){case decorator_1['RouteParamTypes'][_0x28df73(0x115)]:return _0x28df73(0x10a);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x122)]:return _0x28df73(0x110);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x131)]:return _0x28df73(0x11f);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x119)]:return _0x28df73(0x10f);case decorator_1[_0x28df73(0x12d)]['FIELDS']:case decorator_1['RouteParamTypes'][_0x28df73(0xee)]:case decorator_1[_0x28df73(0x12d)][_0x28df73(0x100)]:return _0x28df73(0x11d);default:return'header';}}
|
|
1
|
+
'use strict';const a8_0x11ae34=a8_0x3d4e;(function(_0x138b9a,_0x189297){const _0x3bd3f7=a8_0x3d4e,_0x2df7a3=_0x138b9a();while(!![]){try{const _0x1f6ea6=-parseInt(_0x3bd3f7(0x217))/0x1*(parseInt(_0x3bd3f7(0x200))/0x2)+-parseInt(_0x3bd3f7(0x201))/0x3*(parseInt(_0x3bd3f7(0x20f))/0x4)+parseInt(_0x3bd3f7(0x1e5))/0x5+parseInt(_0x3bd3f7(0x21f))/0x6+-parseInt(_0x3bd3f7(0x1f4))/0x7+-parseInt(_0x3bd3f7(0x214))/0x8+parseInt(_0x3bd3f7(0x1c1))/0x9*(parseInt(_0x3bd3f7(0x1db))/0xa);if(_0x1f6ea6===_0x189297)break;else _0x2df7a3['push'](_0x2df7a3['shift']());}catch(_0x4383b9){_0x2df7a3['push'](_0x2df7a3['shift']());}}}(a8_0x5b38,0x288f1));function a8_0x5b38(){const _0x446bfd=['INJECT_CUSTOM_PARAM','route','getClassMetadata','RouteParamTypes','4662GsDhZB','noreq','routes','@anncic-api/validator','method','filter','summary','keys','request','default','ACTION_KEY','items','6VnagXf','971238AEvTcH','filepath','@midwayjs/decorator','push','requestMethod','BODY','find','RULES_KEY','body','key','tagName','flags.description','args','module','4uRjbso','getMethodParamTypes','QUERY','HEADERS','min','2606456rAaShv','isArray','pprefix','50653UDvnWk','boolean','object','name','rules','prefix','concat','../types/action','1056192WKPOug','title','43056rgGcpK','flags.default','propertyData','ACTION_ROUTE_KEY','getRoutes','String','listModule','flags.label','string','routerOptions','startsWith','test','Object','query','Boolean','path','replace','file','type','getClassExtendedMetadata','allow','max','metadata','文件上传-','log','split','1450rvoZUJ','function','limit','header','Number','length','required','describe','number','__esModule','492975IcWHqt','只允许:[','/static/apitest','description','static/apitest','get','array','flags.presence','defineProperty','parameterIndex','indexOf'];a8_0x5b38=function(){return _0x446bfd;};return a8_0x5b38();}Object[a8_0x11ae34(0x1ed)](exports,a8_0x11ae34(0x1e4),{'value':!![]}),exports[a8_0x11ae34(0x1c5)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x11ae34(0x1f7)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x11ae34(0x203)),decorator_3=require(a8_0x11ae34(0x203)),action_1=require(a8_0x11ae34(0x21e));function getRoutes(_0x43a260={'prefix':'/','module':![]}){const _0x227411=a8_0x11ae34;var _0x53995b,_0x222d74;const _0x3da7b3=(0x0,decorator_3[_0x227411(0x1c7)])(action_1[_0x227411(0x1fe)]),_0x2ae689={},_0x49567e=Array[_0x227411(0x215)](_0x43a260[_0x227411(0x1f9)]||[])?_0x43a260[_0x227411(0x1f9)]||[]:[_0x43a260['filter']];_0x3dd57a:for(const _0x339456 of _0x3da7b3){let _0x38bb17=(0x0,decorator_3[_0x227411(0x1f2)])(action_1[_0x227411(0x1fe)],_0x339456),_0x38cb70=(0x0,decorator_3[_0x227411(0x1f2)])(action_1[_0x227411(0x1c4)],_0x339456);if(_0x38bb17&&_0x38cb70){let _0x5f0777=_0x38bb17[_0x227411(0x21c)],_0x2e83ca={};if(_0x43a260[_0x227411(0x20e)]&&(0x0,lodash_1[_0x227411(0x1ea)])(_0x38bb17,_0x227411(0x20e),![])!=_0x43a260[_0x227411(0x20e)])continue _0x3dd57a;else{if(_0x43a260[_0x227411(0x20e)]===![]&&!!(0x0,lodash_1['get'])(_0x38bb17,_0x227411(0x20e),null))continue _0x3dd57a;}if(_0x43a260[_0x227411(0x21c)]&&!_0x5f0777[_0x227411(0x1cb)](_0x43a260[_0x227411(0x21c)]))continue _0x3dd57a;_0x5f0777!=='/'?(_0x2e83ca['summary']=(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17[_0x227411(0x1ca)][_0x227411(0x20b)])||(/^\//[_0x227411(0x1cc)](_0x5f0777)?_0x5f0777[_0x227411(0x1da)]('/')[0x1]:_0x5f0777),_0x2e83ca[_0x227411(0x1e8)]=(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17[_0x227411(0x1ca)][_0x227411(0x1e8)])||_0x2e83ca[_0x227411(0x1fa)],_0x2e83ca[_0x227411(0x1f6)]=[]):(_0x2e83ca[_0x227411(0x1fa)]=(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17[_0x227411(0x1ca)][_0x227411(0x20b)])||_0x227411(0x1fd),_0x2e83ca[_0x227411(0x1e8)]=(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17['routerOptions'][_0x227411(0x1e8)])||'',_0x2e83ca['routes']=[]);_0x43a260[_0x227411(0x202)]&&(_0x2e83ca['filepath']=_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17[_0x227411(0x202)]);(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17['pprefix'])&&(_0x2e83ca[_0x227411(0x21c)]=_0x38bb17[_0x227411(0x216)]);(_0x38bb17===null||_0x38bb17===void 0x0?void 0x0:_0x38bb17[_0x227411(0x20e)])&&(_0x2e83ca[_0x227411(0x20e)]=_0x38bb17[_0x227411(0x20e)]);let _0x1820c2=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x227411(0x1f0)],_0x339456)||{};if(typeof _0x38cb70[Symbol['iterator']]===_0x227411(0x1dc))for(let _0x449ad of _0x38cb70){let _0x118f63={};_0x118f63[_0x227411(0x1f8)]=_0x449ad[_0x227411(0x205)],_0x118f63[_0x227411(0x1f1)]=(_0x5f0777+_0x449ad[_0x227411(0x1d0)])[_0x227411(0x1d1)](/\/{1,}/,'/'),_0x118f63[_0x227411(0x1fa)]=(_0x449ad===null||_0x449ad===void 0x0?void 0x0:_0x449ad['routerName'])||_0x2e83ca['summary']||_0x227411(0x1fd),_0x118f63['description']=(_0x449ad===null||_0x449ad===void 0x0?void 0x0:_0x449ad[_0x227411(0x1e8)])||'',_0x118f63[_0x227411(0x1fc)]=[];if(!(0x0,lodash_1[_0x227411(0x1cb)])(_0x118f63['route'],_0x227411(0x1e9))&&!(0x0,lodash_1[_0x227411(0x1cb)])(_0x118f63[_0x227411(0x1f1)],_0x227411(0x1e7))&&_0x49567e['indexOf'](_0x118f63[_0x227411(0x1f1)])===-0x1){if(!(_0x43a260===null||_0x43a260===void 0x0?void 0x0:_0x43a260[_0x227411(0x1f5)])){let _0x487f4d=(0x0,decorator_3[_0x227411(0x210)])(new _0x339456(),_0x449ad['method']);for(const _0x3c2fac in _0x487f4d){let _0x16e1b5=(_0x53995b=_0x1820c2[_0x449ad['method']])===null||_0x53995b===void 0x0?void 0x0:_0x53995b[_0x227411(0x207)](_0x562545=>_0x562545[_0x227411(0x1ee)]==_0x3c2fac&&_0x562545[_0x227411(0x20a)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x562545===null||_0x562545===void 0x0?void 0x0:_0x562545['metadata']));if(_0x16e1b5===null||_0x16e1b5===void 0x0?void 0x0:_0x16e1b5[_0x227411(0x1d7)]){let _0x2b1871=convertTypeToString(_0x16e1b5[_0x227411(0x1d7)][_0x227411(0x1d3)]||0x0);if([_0x227411(0x1ce),_0x227411(0x209)][_0x227411(0x1ef)](_0x2b1871)!=-0x1&&_0x16e1b5[_0x227411(0x1d7)][_0x227411(0x1c3)][_0x227411(0x1ef)](':')==-0x1&&!_0x118f63[_0x227411(0x1fc)][_0x227411(0x207)](_0x320301=>_0x320301[_0x227411(0x20a)]==_0x16e1b5[_0x227411(0x1d7)][_0x227411(0x1c3)]))_0x118f63[_0x227411(0x1fc)][_0x227411(0x204)]({'key':_0x16e1b5[_0x227411(0x1d7)][_0x227411(0x1c3)],'title':_0x16e1b5[_0x227411(0x1d7)][_0x227411(0x1c3)],'type':convertSchemaType(_0x487f4d[_0x16e1b5['parameterIndex']][_0x227411(0x21a)]),'required':![],'default':'','desc':''});else{if(_0x2b1871==_0x227411(0x1d2)){let _0x39cd47=((_0x222d74=_0x16e1b5===null||_0x16e1b5===void 0x0?void 0x0:_0x16e1b5['metadata'])===null||_0x222d74===void 0x0?void 0x0:_0x222d74[_0x227411(0x1c3)])||_0x227411(0x1d2);_0x39cd47[_0x227411(0x1ef)](':')==-0x1&&!_0x118f63['request'][_0x227411(0x207)](_0x2f7f5d=>_0x2f7f5d['key']==_0x39cd47&&_0x2f7f5d[_0x227411(0x1d3)]==_0x227411(0x1d2))&&_0x118f63[_0x227411(0x1fc)]['push']({'key':_0x39cd47,'title':_0x227411(0x1d8)+_0x39cd47,'type':_0x227411(0x1d2),'required':!![],'default':'','desc':''});}}}else{const _0x3c4d9b=(0x0,decorator_3[_0x227411(0x1d4)])(validator_1[_0x227411(0x208)],_0x487f4d[_0x3c2fac]);_0x3c4d9b&&_0x118f63['request'][_0x227411(0x204)](...getJoiRequest(_0x3c4d9b));}}}_0x2e83ca['routes']['push'](_0x118f63);}}if(_0x2e83ca['routes'][_0x227411(0x1e0)]>0x0){let _0x105cf4=_0x2ae689[_0x5f0777];_0x105cf4?(_0x105cf4[_0x227411(0x1fa)]!=_0x2e83ca[_0x227411(0x1fa)]&&(_0x105cf4[_0x227411(0x1fa)]=_0x105cf4[_0x227411(0x1fa)]+','+_0x2e83ca[_0x227411(0x1fa)]),_0x105cf4[_0x227411(0x1e8)]!=_0x2e83ca['description']&&(_0x105cf4[_0x227411(0x1e8)]=_0x105cf4[_0x227411(0x1e8)]+','+_0x2e83ca[_0x227411(0x1e8)]),_0x105cf4[_0x227411(0x1f6)]=_0x105cf4[_0x227411(0x1f6)][_0x227411(0x21d)](_0x2e83ca[_0x227411(0x1f6)]),_0x2ae689[_0x5f0777]=_0x105cf4):_0x2ae689[_0x5f0777]=_0x2e83ca;}}}return _0x2ae689;}function a8_0x3d4e(_0x231bb2,_0x5af22b){const _0x5b38ef=a8_0x5b38();return a8_0x3d4e=function(_0x3d4e25,_0x3e72d3){_0x3d4e25=_0x3d4e25-0x1c0;let _0x46135a=_0x5b38ef[_0x3d4e25];return _0x46135a;},a8_0x3d4e(_0x231bb2,_0x5af22b);}exports[a8_0x11ae34(0x1c5)]=getRoutes;function getJoiRequest(_0x563c11){const _0x501fe3=a8_0x11ae34,_0x463c41=[];for(let _0x55d436 in _0x563c11){const _0x50fd2f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x12c43b=typeof _0x563c11[_0x55d436]['describe']==_0x501fe3(0x1dc)?_0x563c11[_0x55d436][_0x501fe3(0x1e2)]():_0x563c11[_0x55d436];_0x50fd2f[_0x501fe3(0x20a)]=_0x55d436,_0x50fd2f[_0x501fe3(0x1d3)]=_0x12c43b[_0x501fe3(0x1d3)],_0x50fd2f[_0x501fe3(0x1c0)]=(0x0,lodash_1['get'])(_0x12c43b,_0x501fe3(0x1c8),_0x55d436),_0x50fd2f[_0x501fe3(0x1fd)]=(0x0,lodash_1[_0x501fe3(0x1ea)])(_0x12c43b,_0x501fe3(0x1c2),''),_0x50fd2f[_0x501fe3(0x1e1)]=(0x0,lodash_1[_0x501fe3(0x1ea)])(_0x12c43b,_0x501fe3(0x1ec),'')=='required',_0x50fd2f['description']=(0x0,lodash_1[_0x501fe3(0x1ea)])(_0x12c43b,_0x501fe3(0x20c),'');if(_0x12c43b[_0x501fe3(0x1d3)]=='object')_0x50fd2f['children']=getJoiRequest(_0x12c43b[_0x501fe3(0x1fb)]);else _0x12c43b[_0x501fe3(0x1d3)]==_0x501fe3(0x1eb)&&_0x12c43b[_0x501fe3(0x1ff)]&&Array[_0x501fe3(0x215)](_0x12c43b[_0x501fe3(0x1ff)])&&_0x12c43b[_0x501fe3(0x1ff)][0x0]&&console[_0x501fe3(0x1d9)](_0x55d436+'-array',_0x12c43b);_0x12c43b[_0x501fe3(0x1d5)]&&Array[_0x501fe3(0x215)](_0x12c43b['allow'])&&_0x12c43b['allow'][_0x501fe3(0x1e0)]>0x0&&(_0x50fd2f[_0x501fe3(0x1e8)]=_0x501fe3(0x1e6)+_0x12c43b[_0x501fe3(0x1d5)]['join'](',')+'];'+_0x50fd2f[_0x501fe3(0x1e8)]);if(_0x50fd2f[_0x501fe3(0x20a)]&&_0x50fd2f['type']){const _0x41e9ee={};for(const _0x4d490a of _0x12c43b[_0x501fe3(0x21b)]||[]){if(_0x4d490a['name']===_0x501fe3(0x213)&&_0x4d490a[_0x501fe3(0x20d)])_0x41e9ee[_0x501fe3(0x213)]=_0x4d490a[_0x501fe3(0x20d)][_0x501fe3(0x1dd)];else _0x4d490a[_0x501fe3(0x21a)]===_0x501fe3(0x1d6)&&(_0x41e9ee[_0x501fe3(0x1d6)]=_0x4d490a[_0x501fe3(0x20d)][_0x501fe3(0x1dd)]);}_0x50fd2f['rules']=_0x41e9ee;}_0x50fd2f[_0x501fe3(0x20a)]&&_0x50fd2f['title']&&_0x463c41['push'](_0x50fd2f);}return _0x463c41;}function convertSchemaType(_0x2067eb){const _0x94fbb5=a8_0x11ae34;switch(_0x2067eb){case _0x94fbb5(0x1cd):return _0x94fbb5(0x219);case _0x94fbb5(0x1cf):return _0x94fbb5(0x218);case _0x94fbb5(0x1df):return _0x94fbb5(0x1e3);case _0x94fbb5(0x1c6):return _0x94fbb5(0x1c9);case'File':return _0x94fbb5(0x1d2);default:return _0x94fbb5(0x1c9);}}function convertTypeToString(_0x46892b){const _0x477b12=a8_0x11ae34;switch(_0x46892b){case decorator_1[_0x477b12(0x1f3)][_0x477b12(0x212)]:return'header';case decorator_1[_0x477b12(0x1f3)][_0x477b12(0x211)]:return _0x477b12(0x1ce);case decorator_1[_0x477b12(0x1f3)]['PARAM']:return _0x477b12(0x1d0);case decorator_1['RouteParamTypes'][_0x477b12(0x206)]:return'body';case decorator_1[_0x477b12(0x1f3)]['FIELDS']:case decorator_1[_0x477b12(0x1f3)]['FILESSTREAM']:case decorator_1[_0x477b12(0x1f3)]['FILESTREAM']:return _0x477b12(0x1d2);default:return _0x477b12(0x1de);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x9ed172=a9_0x3637;(function(_0x184e81,_0x4f5936){var _0x36df21=a9_0x3637,_0x105994=_0x184e81();while(!![]){try{var _0x1abd8d=-parseInt(_0x36df21(0x161))/0x1*(-parseInt(_0x36df21(0x18d))/0x2)+-parseInt(_0x36df21(0x17c))/0x3+parseInt(_0x36df21(0x193))/0x4*(-parseInt(_0x36df21(0x181))/0x5)+parseInt(_0x36df21(0x15f))/0x6+parseInt(_0x36df21(0x197))/0x7+-parseInt(_0x36df21(0x180))/0x8*(-parseInt(_0x36df21(0x186))/0x9)+-parseInt(_0x36df21(0x184))/0xa;if(_0x1abd8d===_0x4f5936)break;else _0x105994['push'](_0x105994['shift']());}catch(_0x3fb117){_0x105994['push'](_0x105994['shift']());}}}(a9_0x5225,0x7c38a));var __createBinding=this&&this[a9_0x9ed172(0x17e)]||(Object[a9_0x9ed172(0x187)]?function(_0x12b9d2,_0x40904a,_0x273f8f,_0xcf6a5e){var _0x4fed9f=a9_0x9ed172;if(_0xcf6a5e===undefined)_0xcf6a5e=_0x273f8f;var _0x883d8c=Object[_0x4fed9f(0x171)](_0x40904a,_0x273f8f);(!_0x883d8c||(_0x4fed9f(0x183)in _0x883d8c?!_0x40904a[_0x4fed9f(0x195)]:_0x883d8c[_0x4fed9f(0x194)]||_0x883d8c[_0x4fed9f(0x15b)]))&&(_0x883d8c={'enumerable':!![],'get':function(){return _0x40904a[_0x273f8f];}}),Object[_0x4fed9f(0x176)](_0x12b9d2,_0xcf6a5e,_0x883d8c);}:function(_0x384677,_0x2483b6,_0x5ab369,_0x11ee64){if(_0x11ee64===undefined)_0x11ee64=_0x5ab369;_0x384677[_0x11ee64]=_0x2483b6[_0x5ab369];}),__exportStar=this&&this[a9_0x9ed172(0x162)]||function(_0x6f231d,_0x4faf5c){var _0x6e7854=a9_0x9ed172;for(var _0x599018 in _0x6f231d)if(_0x599018!==_0x6e7854(0x166)&&!Object['prototype']['hasOwnProperty'][_0x6e7854(0x17d)](_0x4faf5c,_0x599018))__createBinding(_0x4faf5c,_0x6f231d,_0x599018);};Object[a9_0x9ed172(0x176)](exports,'__esModule',{'value':!![]}),exports[a9_0x9ed172(0x164)]=exports[a9_0x9ed172(0x17a)]=exports[a9_0x9ed172(0x18a)]=exports[a9_0x9ed172(0x188)]=exports[a9_0x9ed172(0x165)]=exports[a9_0x9ed172(0x16c)]=exports[a9_0x9ed172(0x15e)]=exports[a9_0x9ed172(0x18b)]=exports[a9_0x9ed172(0x178)]=exports[a9_0x9ed172(0x170)]=exports[a9_0x9ed172(0x16d)]=exports[a9_0x9ed172(0x191)]=exports['Body']=exports[a9_0x9ed172(0x175)]=exports[a9_0x9ed172(0x190)]=exports[a9_0x9ed172(0x174)]=exports[a9_0x9ed172(0x192)]=exports['ValidatorService']=exports[a9_0x9ed172(0x163)]=exports['ExcelService']=exports[a9_0x9ed172(0x18f)]=exports[a9_0x9ed172(0x168)]=exports[a9_0x9ed172(0x177)]=exports['QueueService']=exports[a9_0x9ed172(0x173)]=exports[a9_0x9ed172(0x196)]=exports['Apitest']=exports[a9_0x9ed172(0x16a)]=exports[a9_0x9ed172(0x185)]=void 0x0;const getAppsConfig_1=require(a9_0x9ed172(0x16e));function a9_0x3637(_0x2e7080,_0x17a2e7){var _0x5225eb=a9_0x5225();return a9_0x3637=function(_0x363717,_0x6a8edb){_0x363717=_0x363717-0x15b;var _0x275ce0=_0x5225eb[_0x363717];return _0x275ce0;},a9_0x3637(_0x2e7080,_0x17a2e7);}Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x164),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x9ed172(0x16b));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x185),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a9_0x9ed172(0x15c));Object['defineProperty'](exports,a9_0x9ed172(0x16a),{'enumerable':!![],'get':function(){var _0x5b7d17=a9_0x9ed172;return Action_1[_0x5b7d17(0x16a)];}});var ActionApitest_1=require(a9_0x9ed172(0x182));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x18c),{'enumerable':!![],'get':function(){var _0x9e5a7a=a9_0x9ed172;return ActionApitest_1[_0x9e5a7a(0x18c)];}});var getRoutes_1=require(a9_0x9ed172(0x17b));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x196),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x9ed172(0x160));Object[a9_0x9ed172(0x176)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x313812=a9_0x9ed172;return ApiError_1[_0x313812(0x173)];}});var task_1=require(a9_0x9ed172(0x15d));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x17f),{'enumerable':!![],'get':function(){var _0x159b98=a9_0x9ed172;return task_1[_0x159b98(0x17f)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x9ed172(0x176)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x388fc9=a9_0x9ed172;return cache_1[_0x388fc9(0x177)];}});var event_1=require('@anncic-api/event');function a9_0x5225(){var _0x18991d=['getAppsConfig','Provide','default','ValidatorService','EventService','ExcelService','Action','./decorator/ActionApi','Logger','Query','./helper/getAppsConfig','CustomConfiguration','Headers','getOwnPropertyDescriptor','./configuration','ApiError','File','Fields','defineProperty','CacheService','Init','@midwayjs/decorator','ScopeEnum','./helper/getRoutes','1722645vrLXtU','call','__createBinding','QueueService','2744nxwXNa','499535hhrazb','./decorator/ActionApitest','get','69680mIFUcY','Api','2736IiROuM','create','Inject','./service/ApiService','Scope','App','Apitest','2ScROdQ','Body','ApiService','Files','Param','Configuration','28gdxwWQ','writable','__esModule','getRoutes','2782451UBrbVM','configurable','./decorator/Action','@midwayjs/task','Config','3636408PLBYeK','./exception/ApiError','681509WFAmYp','__exportStar','ValidatorError'];a9_0x5225=function(){return _0x18991d;};return a9_0x5225();}Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x168),{'enumerable':!![],'get':function(){var _0x547ba3=a9_0x9ed172;return event_1[_0x547ba3(0x168)];}});var ApiService_1=require(a9_0x9ed172(0x189));Object[a9_0x9ed172(0x176)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x4fbc96=a9_0x9ed172;return ApiService_1[_0x4fbc96(0x18f)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x169),{'enumerable':!![],'get':function(){var _0x47dc3d=a9_0x9ed172;return ExcelService_1[_0x47dc3d(0x169)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x163),{'enumerable':!![],'get':function(){var _0x5670b8=a9_0x9ed172;return validator_1[_0x5670b8(0x163)];}}),Object['defineProperty'](exports,a9_0x9ed172(0x167),{'enumerable':!![],'get':function(){var _0x3a9df1=a9_0x9ed172;return validator_1[_0x3a9df1(0x167)];}});var configuration_1=require(a9_0x9ed172(0x172));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x192),{'enumerable':!![],'get':function(){var _0x51986e=a9_0x9ed172;return configuration_1[_0x51986e(0x16f)];}});var decorator_1=require('@midwayjs/decorator');Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x174),{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x190),{'enumerable':!![],'get':function(){var _0x15ebaf=a9_0x9ed172;return decorator_1[_0x15ebaf(0x190)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x175),{'enumerable':!![],'get':function(){var _0x465c83=a9_0x9ed172;return decorator_1[_0x465c83(0x175)];}}),Object['defineProperty'](exports,a9_0x9ed172(0x18e),{'enumerable':!![],'get':function(){var _0x32d2e8=a9_0x9ed172;return decorator_1[_0x32d2e8(0x18e)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x191),{'enumerable':!![],'get':function(){var _0x35ba30=a9_0x9ed172;return decorator_1[_0x35ba30(0x191)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x16d),{'enumerable':!![],'get':function(){var _0x3194d4=a9_0x9ed172;return decorator_1[_0x3194d4(0x16d)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x170),{'enumerable':!![],'get':function(){var _0x3cb8b2=a9_0x9ed172;return decorator_1[_0x3cb8b2(0x170)];}}),Object['defineProperty'](exports,a9_0x9ed172(0x178),{'enumerable':!![],'get':function(){var _0x24ba53=a9_0x9ed172;return decorator_1[_0x24ba53(0x178)];}});var decorator_2=require(a9_0x9ed172(0x179));Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x18b),{'enumerable':!![],'get':function(){var _0x5661d7=a9_0x9ed172;return decorator_2[_0x5661d7(0x18b)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x15e),{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object[a9_0x9ed172(0x176)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x5279eb=a9_0x9ed172;return decorator_2[_0x5279eb(0x16c)];}}),Object[a9_0x9ed172(0x176)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x116c92=a9_0x9ed172;return decorator_2[_0x116c92(0x165)];}}),Object['defineProperty'](exports,a9_0x9ed172(0x188),{'enumerable':!![],'get':function(){var _0x223cb4=a9_0x9ed172;return decorator_2[_0x223cb4(0x188)];}}),Object[a9_0x9ed172(0x176)](exports,a9_0x9ed172(0x18a),{'enumerable':!![],'get':function(){var _0x2486ac=a9_0x9ed172;return decorator_2[_0x2486ac(0x18a)];}}),Object[a9_0x9ed172(0x176)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x3f20de=a9_0x9ed172;return decorator_2[_0x3f20de(0x17a)];}}),global[a9_0x9ed172(0x164)]=getAppsConfig_1[a9_0x9ed172(0x164)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x3b883f=a10_0x5b6a;(function(_0x3c72cb,_0x9664bb){var _0x548664=a10_0x5b6a,_0x1752f8=_0x3c72cb();while(!![]){try{var _0xbabc7d=parseInt(_0x548664(0x13d))/0x1+parseInt(_0x548664(0x135))/0x2*(parseInt(_0x548664(0x12b))/0x3)+-parseInt(_0x548664(0x149))/0x4+-parseInt(_0x548664(0x132))/0x5*(parseInt(_0x548664(0x137))/0x6)+-parseInt(_0x548664(0x140))/0x7*(-parseInt(_0x548664(0x13a))/0x8)+-parseInt(_0x548664(0x12e))/0x9+parseInt(_0x548664(0x14e))/0xa*(parseInt(_0x548664(0x142))/0xb);if(_0xbabc7d===_0x9664bb)break;else _0x1752f8['push'](_0x1752f8['shift']());}catch(_0x49ed5e){_0x1752f8['push'](_0x1752f8['shift']());}}}(a10_0x54e6,0x2e983));function a10_0x54e6(){var _0x35f232=['design:type','137663GXzMfR','length','push','70wxvTbI','password','8129OlFkAt','map','MD5','@midwayjs/decorator','prototype','function','checksign','866712GWGmfX','TIMEOUT','toString','HEADERS_DEVICE','HEADERS_CHECKCODE','4490pxixqQ','缺少头信息:','ApiService','fromEntries','token','getsign','__decorate','devices','../exception/ApiError','Config','decorate','anncicapi','entries','timeout','HEADERS_LACK','device','now','HEADERS_SIGNATURE','toLowerCase','object','getcheck','requesttime','ApiError','9zZohPo','join','defineProperty','1521810ghbCpi','metadata','signature','__esModule','5PGIvYO','abs','undefined','31812WOhgJI','ScopeEnum','447558YXPLCQ','Singleton','checkcode','107216uehdny','config'];a10_0x54e6=function(){return _0x35f232;};return a10_0x54e6();}var __decorate=this&&this[a10_0x3b883f(0x154)]||function(_0x11f34c,_0xd61c19,_0x336cb2,_0x14f599){var _0x2f67f6=a10_0x3b883f,_0x46e690=arguments[_0x2f67f6(0x13e)],_0x317d41=_0x46e690<0x3?_0xd61c19:_0x14f599===null?_0x14f599=Object['getOwnPropertyDescriptor'](_0xd61c19,_0x336cb2):_0x14f599,_0x556005;if(typeof Reflect===_0x2f67f6(0x127)&&typeof Reflect[_0x2f67f6(0x158)]===_0x2f67f6(0x147))_0x317d41=Reflect[_0x2f67f6(0x158)](_0x11f34c,_0xd61c19,_0x336cb2,_0x14f599);else{for(var _0x28c9e2=_0x11f34c[_0x2f67f6(0x13e)]-0x1;_0x28c9e2>=0x0;_0x28c9e2--)if(_0x556005=_0x11f34c[_0x28c9e2])_0x317d41=(_0x46e690<0x3?_0x556005(_0x317d41):_0x46e690>0x3?_0x556005(_0xd61c19,_0x336cb2,_0x317d41):_0x556005(_0xd61c19,_0x336cb2))||_0x317d41;}return _0x46e690>0x3&&_0x317d41&&Object[_0x2f67f6(0x12d)](_0xd61c19,_0x336cb2,_0x317d41),_0x317d41;},__metadata=this&&this['__metadata']||function(_0x296666,_0x46668c){var _0xea3f0f=a10_0x3b883f;if(typeof Reflect==='object'&&typeof Reflect[_0xea3f0f(0x12f)]===_0xea3f0f(0x147))return Reflect['metadata'](_0x296666,_0x46668c);};Object[a10_0x3b883f(0x12d)](exports,a10_0x3b883f(0x131),{'value':!![]}),exports['ApiService']=void 0x0;function a10_0x5b6a(_0x1a02a2,_0x3876e1){var _0x54e66f=a10_0x54e6();return a10_0x5b6a=function(_0x5b6a25,_0x2a90b8){_0x5b6a25=_0x5b6a25-0x124;var _0x424e7e=_0x54e66f[_0x5b6a25];return _0x424e7e;},a10_0x5b6a(_0x1a02a2,_0x3876e1);}const crypto_js_1=require('crypto-js'),decorator_1=require(a10_0x3b883f(0x145)),ApiError_1=require(a10_0x3b883f(0x156));let ApiService=class ApiService{[a10_0x3b883f(0x141)](_0x5ea3a9){var _0x59596b=a10_0x3b883f,_0x38774d;return _0x5ea3a9?(0x0,crypto_js_1['MD5'])(_0x5ea3a9+(0x0,crypto_js_1[_0x59596b(0x144)])((0x0,crypto_js_1[_0x59596b(0x144)])(_0x5ea3a9)['toString']()+((_0x38774d=this[_0x59596b(0x13b)])===null||_0x38774d===void 0x0?void 0x0:_0x38774d[_0x59596b(0x141)]))[_0x59596b(0x14b)]())[_0x59596b(0x14b)]():'';}[a10_0x3b883f(0x128)](_0x15cca6,_0x16d3f9,_0x5619e4=Date[a10_0x3b883f(0x124)]()){var _0x1ff9c5=a10_0x3b883f;return{'Token':_0x15cca6,'Logintime':_0x5619e4,'Checkcode':this[_0x1ff9c5(0x139)](_0x15cca6,_0x16d3f9,_0x5619e4)};}[a10_0x3b883f(0x153)](_0x191e69={}){var _0x55f805=a10_0x3b883f;const _0x2a0fbb=[],_0x1accd8=Object['fromEntries'](Object[_0x55f805(0x15a)](_0x191e69)[_0x55f805(0x143)](_0x3eb9bc=>[_0x3eb9bc[0x0]['toLowerCase'](),_0x3eb9bc[0x1]]));for(let _0x558fd4 of[_0x55f805(0x15d),_0x55f805(0x129),_0x55f805(0x152),'logintime',_0x55f805(0x139)]){if(typeof _0x1accd8[_0x558fd4]==_0x55f805(0x134))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x55f805(0x14f)+_0x558fd4});_0x2a0fbb[_0x55f805(0x13f)](_0x558fd4+'='+_0x1accd8[_0x558fd4]);}if(Math[_0x55f805(0x133)](_0x1accd8[_0x55f805(0x129)])-Date[_0x55f805(0x124)]()>this['config'][_0x55f805(0x15b)])throw new AnnError(ApiError_1[_0x55f805(0x12a)][_0x55f805(0x14a)]);if(!this[_0x55f805(0x13b)][_0x55f805(0x155)][_0x1accd8[_0x55f805(0x15d)]]||!this['config'][_0x55f805(0x155)][_0x1accd8[_0x55f805(0x15d)]]['secret']||!this[_0x55f805(0x13b)]['devices'][_0x1accd8[_0x55f805(0x15d)]][_0x55f805(0x139)])throw new AnnError(ApiError_1[_0x55f805(0x12a)][_0x55f805(0x14c)]);if(_0x1accd8['token']&&_0x1accd8['checkcode']!=this['checkcode'](_0x1accd8[_0x55f805(0x152)],_0x1accd8['device'],_0x1accd8['logintime']))throw new AnnError(ApiError_1[_0x55f805(0x12a)][_0x55f805(0x14d)]);return _0x2a0fbb[_0x55f805(0x13f)]('secret='+this[_0x55f805(0x13b)][_0x55f805(0x155)][_0x1accd8[_0x55f805(0x15d)]]['secret']),(0x0,crypto_js_1[_0x55f805(0x144)])(_0x2a0fbb['sort']()[_0x55f805(0x12c)](''))[_0x55f805(0x14b)]();}[a10_0x3b883f(0x139)](_0x4c8b86,_0x52392,_0x55fcf2=Date[a10_0x3b883f(0x124)]()){var _0x3668fd=a10_0x3b883f,_0xcc15fd,_0x1be833,_0x129f70;if(!((_0xcc15fd=this[_0x3668fd(0x13b)])===null||_0xcc15fd===void 0x0?void 0x0:_0xcc15fd[_0x3668fd(0x155)][_0x52392])||!((_0x129f70=(_0x1be833=this[_0x3668fd(0x13b)])===null||_0x1be833===void 0x0?void 0x0:_0x1be833['devices'][_0x52392])===null||_0x129f70===void 0x0?void 0x0:_0x129f70[_0x3668fd(0x139)]))throw new AnnError(ApiError_1[_0x3668fd(0x12a)][_0x3668fd(0x14c)]);return(0x0,crypto_js_1[_0x3668fd(0x144)])(_0x4c8b86+(0x0,crypto_js_1[_0x3668fd(0x144)])(_0x55fcf2+this[_0x3668fd(0x13b)][_0x3668fd(0x155)][_0x52392]['checkcode'])[_0x3668fd(0x14b)]())[_0x3668fd(0x14b)]();}[a10_0x3b883f(0x148)](_0xab0d38={}){var _0x1224a2=a10_0x3b883f;const _0x354fa4=Object[_0x1224a2(0x151)](Object['entries'](_0xab0d38)[_0x1224a2(0x143)](_0x1f326a=>[_0x1f326a[0x0][_0x1224a2(0x126)](),_0x1f326a[0x1]]));if(!(_0x354fa4===null||_0x354fa4===void 0x0?void 0x0:_0x354fa4[_0x1224a2(0x130)]))throw new AnnError(ApiError_1[_0x1224a2(0x12a)][_0x1224a2(0x15c)],{'message':'缺少头信息:signature'});if((_0x354fa4===null||_0x354fa4===void 0x0?void 0x0:_0x354fa4['signature'])!=this['getsign'](_0x354fa4))throw new AnnError(ApiError_1[_0x1224a2(0x12a)][_0x1224a2(0x125)]);return!![];}};__decorate([(0x0,decorator_1[a10_0x3b883f(0x157)])(a10_0x3b883f(0x159)),__metadata(a10_0x3b883f(0x13c),Object)],ApiService[a10_0x3b883f(0x146)],a10_0x3b883f(0x13b),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0x3b883f(0x136)][a10_0x3b883f(0x138)])],ApiService),exports[a10_0x3b883f(0x150)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x1cfb3e=a11_0x2ae2;function a11_0x2ae2(_0x1c0fe1,_0x1436a5){const _0x30606e=a11_0x3060();return a11_0x2ae2=function(_0x2ae214,_0x3f71f0){_0x2ae214=_0x2ae214-0x1e7;let _0x584fdb=_0x30606e[_0x2ae214];return _0x584fdb;},a11_0x2ae2(_0x1c0fe1,_0x1436a5);}(function(_0x294a1b,_0x46404e){const _0x199d62=a11_0x2ae2,_0x2393f2=_0x294a1b();while(!![]){try{const _0x4d76fb=parseInt(_0x199d62(0x213))/0x1+parseInt(_0x199d62(0x20c))/0x2+-parseInt(_0x199d62(0x1ff))/0x3+parseInt(_0x199d62(0x21e))/0x4*(-parseInt(_0x199d62(0x21c))/0x5)+parseInt(_0x199d62(0x1ea))/0x6+-parseInt(_0x199d62(0x21f))/0x7+parseInt(_0x199d62(0x229))/0x8*(parseInt(_0x199d62(0x1ef))/0x9);if(_0x4d76fb===_0x46404e)break;else _0x2393f2['push'](_0x2393f2['shift']());}catch(_0x586c50){_0x2393f2['push'](_0x2393f2['shift']());}}}(a11_0x3060,0xc4b83));function a11_0x3060(){const _0x32d3d4=['/index.html','Inject','design:returntype','../../public/index.html','route','__apiList__','__param','metadata','request','object','Provide','ScopeEnum','@midwayjs/core','anncicapi','getRoutes','content-type','apitestmodule','3744858qZQreZ','Scope','__metadata','url','/apiteststatic/*','243XvNhge','/apitest-:module','apidoc','ctx','Controller','config','cache-control','readFileSync','path','Request','replace','ApitestStaticController','devices','public,\x20max-age=604800','defineProperty','extname','3326733oBstPN','design:paramtypes','join','stringify','ApitestService','__esModule','apitest','Environment','filepath','apiteststatic','design:type','Get','Param','2335978VEYSaV','push','routes','prototype','module','.js','length','1144194lhSpRD','__decorate','summary','../helper/getRoutes','getOwnPropertyDescriptor','application/javascript;\x20charset=utf-8','Config','../../public/','/apitest','345380PlweUP','set','80NeRhNL','10874787SrWqfq','decorate','isDevelopmentEnvironment','text/css;\x20charset=utf-8','description','method','/apiteststatic/','utf-8','substring','MidwayEnvironmentService','566936TEPkJo'];a11_0x3060=function(){return _0x32d3d4;};return a11_0x3060();}var __decorate=this&&this[a11_0x1cfb3e(0x214)]||function(_0x215959,_0x2e9d38,_0x3e2d05,_0x29d652){const _0x587d4f=a11_0x1cfb3e;var _0x106f5f=arguments[_0x587d4f(0x212)],_0x232d9d=_0x106f5f<0x3?_0x2e9d38:_0x29d652===null?_0x29d652=Object[_0x587d4f(0x217)](_0x2e9d38,_0x3e2d05):_0x29d652,_0x4a0656;if(typeof Reflect===_0x587d4f(0x233)&&typeof Reflect[_0x587d4f(0x220)]==='function')_0x232d9d=Reflect[_0x587d4f(0x220)](_0x215959,_0x2e9d38,_0x3e2d05,_0x29d652);else{for(var _0x5ddcd8=_0x215959[_0x587d4f(0x212)]-0x1;_0x5ddcd8>=0x0;_0x5ddcd8--)if(_0x4a0656=_0x215959[_0x5ddcd8])_0x232d9d=(_0x106f5f<0x3?_0x4a0656(_0x232d9d):_0x106f5f>0x3?_0x4a0656(_0x2e9d38,_0x3e2d05,_0x232d9d):_0x4a0656(_0x2e9d38,_0x3e2d05))||_0x232d9d;}return _0x106f5f>0x3&&_0x232d9d&&Object[_0x587d4f(0x1fd)](_0x2e9d38,_0x3e2d05,_0x232d9d),_0x232d9d;},__metadata=this&&this[a11_0x1cfb3e(0x1ec)]||function(_0x3e2082,_0xe3a75d){const _0x4fb6a5=a11_0x1cfb3e;if(typeof Reflect===_0x4fb6a5(0x233)&&typeof Reflect[_0x4fb6a5(0x231)]==='function')return Reflect[_0x4fb6a5(0x231)](_0x3e2082,_0xe3a75d);},__param=this&&this[a11_0x1cfb3e(0x230)]||function(_0xa68de4,_0x3ca986){return function(_0x213117,_0x512523){_0x3ca986(_0x213117,_0x512523,_0xa68de4);};};Object['defineProperty'](exports,a11_0x1cfb3e(0x204),{'value':!![]}),exports[a11_0x1cfb3e(0x1fa)]=exports[a11_0x1cfb3e(0x203)]=void 0x0;const path_1=require(a11_0x1cfb3e(0x1f7)),fs_1=require('fs'),core_1=require(a11_0x1cfb3e(0x236)),decorator_1=require('@midwayjs/decorator'),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a11_0x1cfb3e(0x216));let ApitestService=class ApitestService{async[a11_0x1cfb3e(0x1f1)](_0x8eb52f){const _0x272eca=a11_0x1cfb3e,_0x34ac45=(0x0,getRoutes_1[_0x272eca(0x1e7)])(_0x8eb52f),_0x2d5fd1=[];for(let _0x1e7ef1 in _0x34ac45){for(let _0xe45c3 in _0x34ac45[_0x1e7ef1]['routes']){let _0x3773d7=_0x34ac45[_0x1e7ef1][_0x272eca(0x20e)][_0xe45c3],_0x5256c6=[];for(let _0x1796a5 in _0x3773d7[_0x272eca(0x232)]){_0x5256c6[_0x272eca(0x20d)](_0x3773d7[_0x272eca(0x232)][_0x1796a5]);}_0x2d5fd1[_0x272eca(0x20d)]({'title':_0x34ac45[_0x1e7ef1][_0x272eca(0x215)]+':'+_0x3773d7[_0x272eca(0x215)],'prefix':_0x34ac45[_0x1e7ef1]['prefix'],'router':_0x3773d7[_0x272eca(0x22e)],'method':_0x3773d7[_0x272eca(0x224)],'describe':_0x3773d7[_0x272eca(0x223)]||'','filepath':_0x34ac45[_0x1e7ef1][_0x272eca(0x207)]||'','request':_0x5256c6});}}const _0x153505=(0x0,path_1[_0x272eca(0x201)])(__dirname,_0x272eca(0x22d));return(0x0,fs_1['readFileSync'])(_0x153505,{'encoding':_0x272eca(0x226)})[_0x272eca(0x1f9)](/__res__/g,'/apiteststatic/')[_0x272eca(0x1f9)](_0x272eca(0x22f),JSON[_0x272eca(0x202)](_0x2d5fd1))[_0x272eca(0x1f9)]('__devices__',JSON['stringify'](this[_0x272eca(0x1f4)][_0x272eca(0x1fb)]));}};__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x219)])('anncicapi'),__metadata(a11_0x1cfb3e(0x209),Object)],ApitestService[a11_0x1cfb3e(0x20f)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x1cfb3e(0x234)])(a11_0x1cfb3e(0x205)),(0x0,decorator_2['Scope'])(decorator_2['ScopeEnum']['Singleton'])],ApitestService),exports[a11_0x1cfb3e(0x203)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x564f21=a11_0x1cfb3e;if(this[_0x564f21(0x205)]){const _0x327938={'module':![]};return this[_0x564f21(0x206)][_0x564f21(0x221)]()&&(_0x327938[_0x564f21(0x207)]=!![]),await this[_0x564f21(0x203)][_0x564f21(0x1f1)](_0x327938);}return'';}async[a11_0x1cfb3e(0x1e9)](_0x16ea1b){const _0x26bd9b=a11_0x1cfb3e;if(this[_0x26bd9b(0x205)]){const _0x15cfc5={'module':_0x16ea1b};return this[_0x26bd9b(0x206)]['isDevelopmentEnvironment']()&&(_0x15cfc5[_0x26bd9b(0x207)]=!![]),await this['ApitestService'][_0x26bd9b(0x1f1)](_0x15cfc5);}return'';}async[a11_0x1cfb3e(0x208)](){const _0x272769=a11_0x1cfb3e;if((0x0,path_1['extname'])(this['ctx']['request']['url'])){var _0x37cfd0=(0x0,path_1[_0x272769(0x201)])(__dirname,_0x272769(0x21a)+this['ctx'][_0x272769(0x232)][_0x272769(0x1ed)]['replace'](_0x272769(0x225),'/'));if(_0x37cfd0[_0x272769(0x227)](_0x37cfd0[_0x272769(0x212)]-0xb)!=_0x272769(0x22a)){this[_0x272769(0x1f2)]['set'](_0x272769(0x1f5),_0x272769(0x1fc));if((0x0,path_1['extname'])(this['ctx'][_0x272769(0x232)][_0x272769(0x1ed)])==_0x272769(0x211))this[_0x272769(0x1f2)][_0x272769(0x21d)](_0x272769(0x1e8),_0x272769(0x218));else(0x0,path_1[_0x272769(0x1fe)])(this[_0x272769(0x1f2)][_0x272769(0x232)][_0x272769(0x1ed)])=='.css'&&this[_0x272769(0x1f2)][_0x272769(0x21d)](_0x272769(0x1e8),_0x272769(0x222));return(0x0,fs_1['existsSync'])(_0x37cfd0)&&(0x0,fs_1[_0x272769(0x1f6)])(_0x37cfd0,{'encoding':_0x272769(0x226)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x22b)])(),__metadata(a11_0x1cfb3e(0x209),Object)],ApitestStaticController['prototype'],'ctx',void 0x0),__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x22b)])(),__metadata('design:type',core_1[a11_0x1cfb3e(0x228)])],ApitestStaticController[a11_0x1cfb3e(0x20f)],a11_0x1cfb3e(0x206),void 0x0),__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x22b)])(),__metadata(a11_0x1cfb3e(0x209),ApitestService)],ApitestStaticController[a11_0x1cfb3e(0x20f)],a11_0x1cfb3e(0x203),void 0x0),__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x219)])('apitest'),__metadata(a11_0x1cfb3e(0x209),Boolean)],ApitestStaticController['prototype'],a11_0x1cfb3e(0x205),void 0x0),__decorate([(0x0,decorator_2[a11_0x1cfb3e(0x219)])(a11_0x1cfb3e(0x237)),__metadata(a11_0x1cfb3e(0x209),Object)],ApitestStaticController[a11_0x1cfb3e(0x20f)],a11_0x1cfb3e(0x1f4),void 0x0),__decorate([(0x0,decorator_1['Get'])(a11_0x1cfb3e(0x21b)),__metadata(a11_0x1cfb3e(0x209),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x1cfb3e(0x22c),Promise)],ApitestStaticController[a11_0x1cfb3e(0x20f)],'apitesthtml',null),__decorate([(0x0,decorator_1[a11_0x1cfb3e(0x20a)])(a11_0x1cfb3e(0x1f0)),__param(0x0,(0x0,decorator_1[a11_0x1cfb3e(0x20b)])(a11_0x1cfb3e(0x210))),__metadata(a11_0x1cfb3e(0x209),Function),__metadata(a11_0x1cfb3e(0x200),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x1cfb3e(0x20f)],a11_0x1cfb3e(0x1e9),null),__decorate([(0x0,decorator_1['Get'])(a11_0x1cfb3e(0x1ee)),__metadata(a11_0x1cfb3e(0x209),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x1cfb3e(0x22c),Promise)],ApitestStaticController['prototype'],a11_0x1cfb3e(0x208),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x1cfb3e(0x1f3)])('/'),(0x0,decorator_2[a11_0x1cfb3e(0x1eb)])(decorator_2[a11_0x1cfb3e(0x235)][a11_0x1cfb3e(0x1f8)])],ApitestStaticController),exports[a11_0x1cfb3e(0x1fa)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x2868e5=a12_0x448c;(function(_0x5ae02f,_0xbff1fe){const _0x291b55=a12_0x448c,_0x22806b=_0x5ae02f();while(!![]){try{const _0x3163e0=parseInt(_0x291b55(0x1bc))/0x1+parseInt(_0x291b55(0x18c))/0x2+-parseInt(_0x291b55(0x1b6))/0x3*(-parseInt(_0x291b55(0x190))/0x4)+-parseInt(_0x291b55(0x1c4))/0x5*(-parseInt(_0x291b55(0x195))/0x6)+parseInt(_0x291b55(0x1b4))/0x7*(parseInt(_0x291b55(0x1a5))/0x8)+parseInt(_0x291b55(0x18b))/0x9+-parseInt(_0x291b55(0x1aa))/0xa*(parseInt(_0x291b55(0x1b7))/0xb);if(_0x3163e0===_0xbff1fe)break;else _0x22806b['push'](_0x22806b['shift']());}catch(_0x2bc3f3){_0x22806b['push'](_0x22806b['shift']());}}}(a12_0x2dcb,0x49b92));var __decorate=this&&this[a12_0x2868e5(0x18e)]||function(_0x6b877a,_0x29b70e,_0x115199,_0x1e695d){const _0x130b00=a12_0x2868e5;var _0x3ad379=arguments[_0x130b00(0x188)],_0x1bb6c6=_0x3ad379<0x3?_0x29b70e:_0x1e695d===null?_0x1e695d=Object[_0x130b00(0x1c0)](_0x29b70e,_0x115199):_0x1e695d,_0x4fdff2;if(typeof Reflect===_0x130b00(0x1b8)&&typeof Reflect[_0x130b00(0x191)]===_0x130b00(0x1a7))_0x1bb6c6=Reflect['decorate'](_0x6b877a,_0x29b70e,_0x115199,_0x1e695d);else{for(var _0x52027d=_0x6b877a['length']-0x1;_0x52027d>=0x0;_0x52027d--)if(_0x4fdff2=_0x6b877a[_0x52027d])_0x1bb6c6=(_0x3ad379<0x3?_0x4fdff2(_0x1bb6c6):_0x3ad379>0x3?_0x4fdff2(_0x29b70e,_0x115199,_0x1bb6c6):_0x4fdff2(_0x29b70e,_0x115199))||_0x1bb6c6;}return _0x3ad379>0x3&&_0x1bb6c6&&Object[_0x130b00(0x1a2)](_0x29b70e,_0x115199,_0x1bb6c6),_0x1bb6c6;},__metadata=this&&this[a12_0x2868e5(0x1ae)]||function(_0x3ce90c,_0x3c9c47){const _0x4d8c5f=a12_0x2868e5;if(typeof Reflect===_0x4d8c5f(0x1b8)&&typeof Reflect['metadata']===_0x4d8c5f(0x1a7))return Reflect[_0x4d8c5f(0x180)](_0x3ce90c,_0x3c9c47);};Object[a12_0x2868e5(0x1a2)](exports,a12_0x2868e5(0x1a1),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x2868e5(0x197)),koasend=require(a12_0x2868e5(0x1af)),decorator_1=require(a12_0x2868e5(0x19a));let ExcelService=class ExcelService{async[a12_0x2868e5(0x1b5)](_0x42f646,_0x284ce8,_0x22b554=[0x0]){const _0xf411ee=a12_0x2868e5;var _0x36a93a,_0x377d1b;const _0x5e1f62=new exceljs[(_0xf411ee(0x1c3))](),_0x275589=[];let _0x164c59=_0x42f646['replace'](/(\\|\/)/g,'/')[_0xf411ee(0x1ad)](/\/{2,}/g,'/');!(_0x164c59===null||_0x164c59===void 0x0?void 0x0:_0x164c59[_0xf411ee(0x1be)]('/'))&&(_0x164c59=this[_0xf411ee(0x185)][_0xf411ee(0x1ab)]()+'/'+_0x164c59);try{await _0x5e1f62[_0xf411ee(0x19f)]['readFile'](_0x164c59);}catch(_0x4d1d35){return console[_0xf411ee(0x183)](_0xf411ee(0x18f)+_0x164c59+_0xf411ee(0x198)),_0x275589;}for(const _0x894751 of _0x22b554){const _0x5e2b89=lodash[_0xf411ee(0x1bf)](_0x894751)?((_0x36a93a=_0x5e1f62[_0xf411ee(0x1a6)])===null||_0x36a93a===void 0x0?void 0x0:_0x36a93a[_0x894751])||undefined:_0x5e1f62[_0xf411ee(0x194)](_0x894751);if(_0x5e2b89){var _0x350175=0x1;const _0x4bcb19=_0x5e2b89[_0xf411ee(0x1b3)](0x1),_0x33a6eb=await new Promise(_0x346de9=>{const _0x2e9016=_0xf411ee,_0x36bc54={};_0x4bcb19[_0x2e9016(0x19b)]((_0x155ca2,_0x213981)=>{const _0x439a5e=_0x2e9016;for(const _0x4efa5b of _0x284ce8){if(_0x155ca2['value']==_0x4efa5b[_0x439a5e(0x1ba)])_0x350175=0x2,_0x36bc54[_0x4efa5b['key']]={'header':_0x155ca2['col'],'handler':_0x4efa5b['handler']};else{if(!_0x36bc54[_0x4efa5b[_0x439a5e(0x1ac)]])try{const _0x5f23ba=_0x4bcb19[_0x439a5e(0x1c1)](_0x4efa5b[_0x439a5e(0x1ba)]);_0x5f23ba&&(_0x36bc54[_0x4efa5b[_0x439a5e(0x1ac)]]={'header':_0x5f23ba['col'],'handler':_0x4efa5b[_0x439a5e(0x18d)]});}catch{}}}_0x4bcb19[_0x439a5e(0x19c)]==_0x213981&&_0x346de9(_0x36bc54);});});for(const _0x233956 of _0x5e2b89[_0xf411ee(0x196)](_0x350175,_0x5e2b89[_0xf411ee(0x181)])){const _0x2f7f24={};for(const _0x2994d3 in _0x33a6eb){_0x33a6eb[_0x2994d3][_0xf411ee(0x1ba)]&&(typeof((_0x377d1b=_0x33a6eb[_0x2994d3])===null||_0x377d1b===void 0x0?void 0x0:_0x377d1b[_0xf411ee(0x18d)])==_0xf411ee(0x1a7)?_0x2f7f24[_0x2994d3]=_0x33a6eb[_0x2994d3]['handler'](_0x233956['getCell'](lodash[_0xf411ee(0x187)](''+_0x33a6eb[_0x2994d3][_0xf411ee(0x1ba)],'\x20'))[_0xf411ee(0x1b9)]()):_0x2f7f24[_0x2994d3]=_0x233956[_0xf411ee(0x1c1)](_0x33a6eb[_0x2994d3][_0xf411ee(0x1ba)])[_0xf411ee(0x1b9)]());}Object[_0xf411ee(0x19d)](_0x2f7f24)['length']>0x0&&_0x275589[_0xf411ee(0x192)](_0x2f7f24);}}}return _0x275589;}async[a12_0x2868e5(0x193)](_0x1495b1,_0x329fda,_0x2a863b,_0x4e0f23='public/xlsx'){const _0x5c40dd=a12_0x2868e5;var _0x34cdde,_0x354797;const _0x712431=new exceljs[(_0x5c40dd(0x1c3))](),_0x39601e={},_0x5607ba=[],_0x5daf87=_0x712431[_0x5c40dd(0x1a9)]('Sheet\x201',{'views':[{'state':_0x5c40dd(0x1bb),'xSplit':0x1}]});for(const _0xd45f1b in _0x329fda){_0x39601e[_0x329fda[_0xd45f1b][_0x5c40dd(0x1ac)]]=_0x329fda[_0xd45f1b][_0x5c40dd(0x1ba)],_0x5607ba[_0x5c40dd(0x192)]({'header':_0x329fda[_0xd45f1b][_0x5c40dd(0x1ba)],'key':(_0x34cdde=_0x329fda[_0xd45f1b])===null||_0x34cdde===void 0x0?void 0x0:_0x34cdde[_0x5c40dd(0x1ac)][_0x5c40dd(0x1ad)](/\./g,'_')});}_0x5daf87[_0x5c40dd(0x1a4)]=_0x5607ba;for(const _0x35acf8 of _0x2a863b){const _0x3887aa={};for(const _0x1175e1 in _0x329fda){typeof((_0x354797=_0x329fda[_0x1175e1])===null||_0x354797===void 0x0?void 0x0:_0x354797[_0x5c40dd(0x18d)])==_0x5c40dd(0x1a7)?_0x3887aa[_0x329fda[_0x1175e1]['key']['replace'](/\./g,'_')]=await _0x329fda[_0x1175e1][_0x5c40dd(0x18d)](_0x35acf8):_0x3887aa[_0x329fda[_0x1175e1]['key'][_0x5c40dd(0x1ad)](/\./g,'_')]=lodash[_0x5c40dd(0x184)](_0x35acf8,_0x329fda[_0x1175e1][_0x5c40dd(0x1ac)],'');}_0x5daf87[_0x5c40dd(0x1bd)](_0x3887aa);}let _0x519015='';const _0x30aa2b=_0x1495b1+'-'+lodash['random'](0x2710,0x1869f)+_0x5c40dd(0x1c5);if(_0x4e0f23&&_0x4e0f23[_0x5c40dd(0x1be)]('/'))_0x519015=_0x4e0f23+'/'+_0x30aa2b;else _0x4e0f23&&!_0x4e0f23[_0x5c40dd(0x1be)]('/')&&!_0x4e0f23['startsWith']('\x5c')?_0x519015=this['app'][_0x5c40dd(0x1ab)]()+'/'+_0x4e0f23+'/'+_0x30aa2b:_0x519015=this['app'][_0x5c40dd(0x1ab)]()+_0x5c40dd(0x19e);return(_0x519015[_0x5c40dd(0x18a)]('/')||_0x519015[_0x5c40dd(0x18a)]('\x5c'))&&(_0x519015=_0x519015['substring'](0x0,_0x519015[_0x5c40dd(0x188)]-0x1)),_0x519015=_0x519015[_0x5c40dd(0x1ad)](/(\\|\/)/g,'/')[_0x5c40dd(0x1ad)](/\/{2,}/g,'/'),!fs[_0x5c40dd(0x199)](_0x519015)&&fs[_0x5c40dd(0x1b0)](_0x519015,{'recursive':!![]}),await _0x712431[_0x5c40dd(0x19f)][_0x5c40dd(0x186)]((_0x519015+'/'+_0x30aa2b)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x30aa2b,'filepath':_0x519015};}async[a12_0x2868e5(0x1b1)](_0x32795a,_0x225af8){const _0x1e906b=a12_0x2868e5;await koasend(_0x32795a,_0x1e906b(0x1b2)+_0x225af8);}};function a12_0x2dcb(){const _0x3f27a0=['addRow','startsWith','isNumber','getOwnPropertyDescriptor','getCell','Provide','Workbook','5eyIxlJ','.xlsx','metadata','rowCount','Singleton','log','get','app','writeFile','trim','length','ScopeEnum','endsWith','2084211kEKRUy','800168dReTWl','handler','__decorate','Api\x20Excel\x20Error:\x20','1104IyGcQK','decorate','push','export','getWorksheet','2046348ewHwVW','findRows','exceljs','\x20is\x20read\x20fail','existsSync','@midwayjs/decorator','eachCell','cellCount','keys','/public/xlsx','xlsx','prototype','__esModule','defineProperty','design:type','columns','24ztbOGz','worksheets','function','App','addWorksheet','351420Vllwvo','getAppDir','key','replace','__metadata','koa-send','mkdirSync','download','/public/xlsx/','getRow','1117711rheBdz','parse','4923RohptD','682ogFiDf','object','toString','header','frozen','576118zAcCGA'];a12_0x2dcb=function(){return _0x3f27a0;};return a12_0x2dcb();}function a12_0x448c(_0x3ba46f,_0x6dac6d){const _0x2dcb92=a12_0x2dcb();return a12_0x448c=function(_0x448cc7,_0x3dfbd2){_0x448cc7=_0x448cc7-0x180;let _0x4360be=_0x2dcb92[_0x448cc7];return _0x4360be;},a12_0x448c(_0x3ba46f,_0x6dac6d);}__decorate([(0x0,decorator_1[a12_0x2868e5(0x1a8)])(),__metadata(a12_0x2868e5(0x1a3),Object)],ExcelService[a12_0x2868e5(0x1a0)],a12_0x2868e5(0x185),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x2868e5(0x1c2)])(),(0x0,decorator_1['Scope'])(decorator_1[a12_0x2868e5(0x189)][a12_0x2868e5(0x182)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x79c2(){var _0x3d9bd2=['251884VMyUgW','1850901rPsjYX','5616792uZwEtB','61263yGBsQJ','3875015KELgFO','2510QblxxW','1172274PHoSva','ACTION_KEY','AppsConfigTmp','35ofPwis','anncic-api:apps:config','anncic-api:action:route','ACTION_ROUTE_KEY','2prBmuo','3223588FGYYkO','APPSCONFIG_KEY','anncic-api:action'];a13_0x79c2=function(){return _0x3d9bd2;};return a13_0x79c2();}var a13_0x363261=a13_0x387e;(function(_0x493081,_0x18daf4){var _0x4196b7=a13_0x387e,_0x3cdd3a=_0x493081();while(!![]){try{var _0x4a8e55=parseInt(_0x4196b7(0x85))/0x1*(-parseInt(_0x4196b7(0x78))/0x2)+-parseInt(_0x4196b7(0x79))/0x3+-parseInt(_0x4196b7(0x86))/0x4+parseInt(_0x4196b7(0x7c))/0x5+-parseInt(_0x4196b7(0x7e))/0x6*(parseInt(_0x4196b7(0x81))/0x7)+parseInt(_0x4196b7(0x7a))/0x8+parseInt(_0x4196b7(0x7b))/0x9*(parseInt(_0x4196b7(0x7d))/0xa);if(_0x4a8e55===_0x18daf4)break;else _0x3cdd3a['push'](_0x3cdd3a['shift']());}catch(_0x3adcda){_0x3cdd3a['push'](_0x3cdd3a['shift']());}}}(a13_0x79c2,0x82600));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x363261(0x80)]=exports[a13_0x363261(0x76)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x363261(0x7f)]=void 0x0,exports[a13_0x363261(0x7f)]=a13_0x363261(0x77),exports[a13_0x363261(0x84)]=a13_0x363261(0x83),exports['APPSCONFIG_KEY']=a13_0x363261(0x82);function a13_0x387e(_0x403033,_0x4b0fa8){var _0x79c251=a13_0x79c2();return a13_0x387e=function(_0x387e16,_0x29b864){_0x387e16=_0x387e16-0x76;var _0xaf7004=_0x79c251[_0x387e16];return _0xaf7004;},a13_0x387e(_0x403033,_0x4b0fa8);}class AppsConfigTmp{}exports[a13_0x363261(0x80)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x154c0d=a14_0x8f6e;(function(_0x3f5b4d,_0x29386c){var _0x4c04d5=a14_0x8f6e,_0x14a9b9=_0x3f5b4d();while(!![]){try{var _0x5be160=parseInt(_0x4c04d5(0x77))/0x1*(-parseInt(_0x4c04d5(0x74))/0x2)+-parseInt(_0x4c04d5(0x86))/0x3*(-parseInt(_0x4c04d5(0x7b))/0x4)+-parseInt(_0x4c04d5(0x8a))/0x5+-parseInt(_0x4c04d5(0x6c))/0x6+parseInt(_0x4c04d5(0x6d))/0x7*(parseInt(_0x4c04d5(0x66))/0x8)+parseInt(_0x4c04d5(0x7a))/0x9*(parseInt(_0x4c04d5(0x6b))/0xa)+-parseInt(_0x4c04d5(0x6f))/0xb*(-parseInt(_0x4c04d5(0x84))/0xc);if(_0x5be160===_0x29386c)break;else _0x14a9b9['push'](_0x14a9b9['shift']());}catch(_0x1e2eec){_0x14a9b9['push'](_0x14a9b9['shift']());}}}(a14_0x1c9e,0x50c8b));function a14_0x8f6e(_0x12f09b,_0x3c3454){var _0x1c9e02=a14_0x1c9e();return a14_0x8f6e=function(_0x8f6ec4,_0x1e58f7){_0x8f6ec4=_0x8f6ec4-0x64;var _0x2268f0=_0x1c9e02[_0x8f6ec4];return _0x2268f0;},a14_0x8f6e(_0x12f09b,_0x3c3454);}var __decorate=this&&this[a14_0x154c0d(0x72)]||function(_0x29e83d,_0x30465f,_0x2632ca,_0x381644){var _0x3f8d67=a14_0x154c0d,_0x6b4c00=arguments['length'],_0x5abd4a=_0x6b4c00<0x3?_0x30465f:_0x381644===null?_0x381644=Object['getOwnPropertyDescriptor'](_0x30465f,_0x2632ca):_0x381644,_0x302592;if(typeof Reflect===_0x3f8d67(0x7e)&&typeof Reflect['decorate']==='function')_0x5abd4a=Reflect[_0x3f8d67(0x68)](_0x29e83d,_0x30465f,_0x2632ca,_0x381644);else{for(var _0xb7c83d=_0x29e83d[_0x3f8d67(0x76)]-0x1;_0xb7c83d>=0x0;_0xb7c83d--)if(_0x302592=_0x29e83d[_0xb7c83d])_0x5abd4a=(_0x6b4c00<0x3?_0x302592(_0x5abd4a):_0x6b4c00>0x3?_0x302592(_0x30465f,_0x2632ca,_0x5abd4a):_0x302592(_0x30465f,_0x2632ca))||_0x5abd4a;}return _0x6b4c00>0x3&&_0x5abd4a&&Object[_0x3f8d67(0x69)](_0x30465f,_0x2632ca,_0x5abd4a),_0x5abd4a;},__metadata=this&&this['__metadata']||function(_0x20aaf6,_0x11d3d0){var _0x233235=a14_0x154c0d;if(typeof Reflect===_0x233235(0x7e)&&typeof Reflect[_0x233235(0x73)]==='function')return Reflect['metadata'](_0x20aaf6,_0x11d3d0);};Object[a14_0x154c0d(0x69)](exports,a14_0x154c0d(0x67),{'value':!![]}),exports[a14_0x154c0d(0x64)]=void 0x0;const validator_1=require(a14_0x154c0d(0x88));class PageDTO{}__decorate([(0x0,validator_1[a14_0x154c0d(0x70)])('分页',validator_1[a14_0x154c0d(0x82)][a14_0x154c0d(0x80)]()[a14_0x154c0d(0x7c)]()['min'](0x1),a14_0x154c0d(0x79)),__metadata(a14_0x154c0d(0x78),Number)],PageDTO[a14_0x154c0d(0x75)],a14_0x154c0d(0x65),void 0x0),__decorate([(0x0,validator_1[a14_0x154c0d(0x70)])('分页数量',validator_1[a14_0x154c0d(0x82)]['number']()['integer']()[a14_0x154c0d(0x6a)](0x1)),__metadata(a14_0x154c0d(0x78),Number)],PageDTO['prototype'],a14_0x154c0d(0x85),void 0x0),__decorate([(0x0,validator_1[a14_0x154c0d(0x70)])(a14_0x154c0d(0x81),validator_1['RuleType'][a14_0x154c0d(0x89)]()[a14_0x154c0d(0x7f)]()),__metadata(a14_0x154c0d(0x78),String)],PageDTO[a14_0x154c0d(0x75)],a14_0x154c0d(0x7d),void 0x0),__decorate([(0x0,validator_1[a14_0x154c0d(0x70)])(a14_0x154c0d(0x83),validator_1['RuleType'][a14_0x154c0d(0x80)]()['integer']()[a14_0x154c0d(0x6e)](0x0,0x1),a14_0x154c0d(0x71)),__metadata('design:type',Number)],PageDTO[a14_0x154c0d(0x75)],a14_0x154c0d(0x87),void 0x0),exports[a14_0x154c0d(0x64)]=PageDTO;function a14_0x1c9e(){var _0x37c06c=['12vaBiGy','_size','312EtcHaN','_isreverse','@anncic-api/validator','string','1909090ZTKQzd','PageDTO','_page','2664WAOoFA','__esModule','decorate','defineProperty','min','70jUBHpA','1289292Knzuus','3899VFXCfy','valid','6539962uMHHeu','Rule','1:是;0:否','__decorate','metadata','362uDCKjA','prototype','length','3407WhGNiZ','design:type','第一页为1,第二页为2','397053aGTbKg','17516yNDURH','integer','_order','object','trim','number','排序方式','RuleType','是否倒序'];a14_0x1c9e=function(){return _0x37c06c;};return a14_0x1c9e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.22",
|
|
21
|
+
"@anncic-api/core": "^1.1.22",
|
|
22
|
+
"@anncic-api/event": "^1.1.22",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.22",
|
|
24
|
+
"@anncic-api/validator": "^1.1.22",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,11 +29,9 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.22",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
|
-
"koa-bodyparser": "^4.3.0",
|
|
35
34
|
"koa-send": "^5.0.1",
|
|
36
|
-
"koa-xml-body": "^2.2.0",
|
|
37
35
|
"urllib": "^3.1.0"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
@@ -41,5 +39,5 @@
|
|
|
41
39
|
"javascript-obfuscator": "2.19.0",
|
|
42
40
|
"typescript": "^4.7.4"
|
|
43
41
|
},
|
|
44
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "31197d6976e8b15c25473d7a6f64a8bc42c8fd0b"
|
|
45
43
|
}
|