anncic-api 1.1.16 → 1.1.21
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';var
|
|
1
|
+
'use strict';var a0_0xab8a33=a0_0x5e1d;function a0_0x5e1d(_0xc1e36a,_0x278337){var _0x15900c=a0_0x1590();return a0_0x5e1d=function(_0x5e1d85,_0x4add44){_0x5e1d85=_0x5e1d85-0x16c;var _0x48bb31=_0x15900c[_0x5e1d85];return _0x48bb31;},a0_0x5e1d(_0xc1e36a,_0x278337);}(function(_0x5b2f1a,_0x40993d){var _0x2562a4=a0_0x5e1d,_0x4561c1=_0x5b2f1a();while(!![]){try{var _0x5c2369=-parseInt(_0x2562a4(0x16d))/0x1*(parseInt(_0x2562a4(0x16f))/0x2)+-parseInt(_0x2562a4(0x170))/0x3*(parseInt(_0x2562a4(0x173))/0x4)+parseInt(_0x2562a4(0x172))/0x5*(-parseInt(_0x2562a4(0x17e))/0x6)+parseInt(_0x2562a4(0x180))/0x7*(-parseInt(_0x2562a4(0x17b))/0x8)+-parseInt(_0x2562a4(0x177))/0x9+parseInt(_0x2562a4(0x17a))/0xa*(parseInt(_0x2562a4(0x175))/0xb)+parseInt(_0x2562a4(0x17c))/0xc;if(_0x5c2369===_0x40993d)break;else _0x4561c1['push'](_0x4561c1['shift']());}catch(_0x553c6a){_0x4561c1['push'](_0x4561c1['shift']());}}}(a0_0x1590,0x5006f));function a0_0x1590(){var _0x3bb82f=['__esModule','113344OxpShJ','xml','6HTPIAw','3NPFqSx','text','1511065FmOssR','20908EdKcrU','zhiulanuiy7892387985hnoi','160754jfcgzX','defineProperty','4904856BVTktq','name','json','260YuUQjN','1336ygMplV','20832984QLTzlC','dhauo1234420123gg3234901','12fKEIzv','default','12306jPDhYP','20mb','form'];a0_0x1590=function(){return _0x3bb82f;};return a0_0x1590();}Object[a0_0xab8a33(0x176)](exports,a0_0xab8a33(0x16c),{'value':!![]}),exports[a0_0xab8a33(0x17f)]=_0x5b9269=>{var _0x19edf2=a0_0xab8a33;return{'apitest':!![],'keys':_0x5b9269[_0x19edf2(0x178)],'anncicapi':{'timeout':0x1388,'password':_0x19edf2(0x174),'devices':{'DEFAULT':{'secret':_0x19edf2(0x17d),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x19edf2(0x179),_0x19edf2(0x182),_0x19edf2(0x171),_0x19edf2(0x16e)],'formLimit':'20mb','jsonLimit':'20mb','textLimit':_0x19edf2(0x181),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x5b9269['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0x5c9a(_0x5cdfc0,_0x535a52){var _0x4350f7=a1_0x4350();return a1_0x5c9a=function(_0x5c9ac5,_0x3c33cd){_0x5c9ac5=_0x5c9ac5-0xcc;var _0x746b05=_0x4350f7[_0x5c9ac5];return _0x746b05;},a1_0x5c9a(_0x5cdfc0,_0x535a52);}var a1_0x3c3058=a1_0x5c9a;(function(_0x49f3c8,_0x483d74){var _0x100c44=a1_0x5c9a,_0x2947b9=_0x49f3c8();while(!![]){try{var _0x3891ab=parseInt(_0x100c44(0xcc))/0x1+-parseInt(_0x100c44(0xd1))/0x2+-parseInt(_0x100c44(0xce))/0x3+-parseInt(_0x100c44(0xcf))/0x4*(-parseInt(_0x100c44(0xd2))/0x5)+-parseInt(_0x100c44(0xd4))/0x6+-parseInt(_0x100c44(0xd5))/0x7*(parseInt(_0x100c44(0xcd))/0x8)+parseInt(_0x100c44(0xd3))/0x9;if(_0x3891ab===_0x483d74)break;else _0x2947b9['push'](_0x2947b9['shift']());}catch(_0x3197d0){_0x2947b9['push'](_0x2947b9['shift']());}}}(a1_0x4350,0x87d05));function a1_0x4350(){var _0x5796bd=['736496EwGBcw','5rVnece','13287042OlDTtk','4034100qddbrx','7gZItAJ','default','776769FIObYt','8178856mSkhKj','1342794dVliLn','3254956uQibnX','__esModule'];a1_0x4350=function(){return _0x5796bd;};return a1_0x4350();}Object['defineProperty'](exports,a1_0x3c3058(0xd0),{'value':!![]}),exports[a1_0x3c3058(0xd6)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x325c(){const _0x4aa6b5=['@midwayjs/upload','context','string','@midwayjs/cross-domain','query','Inject','registerMethodHandler','@anncic-api/core','11mmMcUf','8YKBGAF','MidwayEnvironmentService','target','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','input','existsSync','bodyParser','prototype','415erDSxj','getConfiguration','@midwayjs/i18n','@anncic-api/typeorm','_matchedRoute','39REWdmq','./service/ApiService','decorate','13100SjtlSN','headers','./config/config.default','defineProperty','MidwayApplicationManager','keys','getOwnPropertyDescriptor','useMiddleware','decorator','length','devices','DEFAULT','checksign','dirs','2376ufhCTR','11013804etCkZa','10264550xXRJPg','design:type','57654JZhDuQ','koa','metadata','device','dir','ApiService','MidwayConfigService','object','defineProperties','./types/action','__decorate','1378251krKwik','anncic-apihelper','isArray','application','hanlderApplications','staticFile','checkConfigKeys','handlerActionRoute','function','anncic-api','onReady','forEach','@anncic-api/event','filterConfig','environment','@anncic-api/validator','Configuration','anncicapi','tmpdir','@midwayjs/task','462IaXrTA','body','REQUEST_OBJ_CTX_KEY','MidwayDecoratorService','koa-bodyparser','getApplications','./config/config.production','get','log','@midwayjs/decorator','apimit','6203772hJqevE','beforeRoute','2385kbvYVr','upload','koa-xml-body','key','request','defaultsDeep','config','@midwayjs/koa','CustomConfiguration','isNull'];a2_0x325c=function(){return _0x4aa6b5;};return a2_0x325c();}const a2_0x2b73e4=a2_0x3d0f;(function(_0x4d2c45,_0x22f2cc){const _0x1039d9=a2_0x3d0f,_0x332465=_0x4d2c45();while(!![]){try{const _0x8b9d1d=parseInt(_0x1039d9(0xbb))/0x1+parseInt(_0x1039d9(0xac))/0x2*(parseInt(_0x1039d9(0xdc))/0x3)+-parseInt(_0x1039d9(0x9e))/0x4*(parseInt(_0x1039d9(0x96))/0x5)+-parseInt(_0x1039d9(0xb0))/0x6*(parseInt(_0x1039d9(0xcf))/0x7)+parseInt(_0x1039d9(0x8e))/0x8*(-parseInt(_0x1039d9(0xad))/0x9)+-parseInt(_0x1039d9(0xae))/0xa*(parseInt(_0x1039d9(0x8d))/0xb)+parseInt(_0x1039d9(0xda))/0xc*(parseInt(_0x1039d9(0x9b))/0xd);if(_0x8b9d1d===_0x22f2cc)break;else _0x332465['push'](_0x332465['shift']());}catch(_0xbaa193){_0x332465['push'](_0x332465['shift']());}}}(a2_0x325c,0xaf270));var __decorate=this&&this[a2_0x2b73e4(0xba)]||function(_0x4695cd,_0x215ac2,_0x4d2adb,_0x1cadaf){const _0x298bd6=a2_0x2b73e4;var _0xec07d6=arguments[_0x298bd6(0xa7)],_0x2b54b4=_0xec07d6<0x3?_0x215ac2:_0x1cadaf===null?_0x1cadaf=Object[_0x298bd6(0xa4)](_0x215ac2,_0x4d2adb):_0x1cadaf,_0x38bd35;if(typeof Reflect===_0x298bd6(0xb7)&&typeof Reflect[_0x298bd6(0x9d)]===_0x298bd6(0xc3))_0x2b54b4=Reflect[_0x298bd6(0x9d)](_0x4695cd,_0x215ac2,_0x4d2adb,_0x1cadaf);else{for(var _0x16cc75=_0x4695cd[_0x298bd6(0xa7)]-0x1;_0x16cc75>=0x0;_0x16cc75--)if(_0x38bd35=_0x4695cd[_0x16cc75])_0x2b54b4=(_0xec07d6<0x3?_0x38bd35(_0x2b54b4):_0xec07d6>0x3?_0x38bd35(_0x215ac2,_0x4d2adb,_0x2b54b4):_0x38bd35(_0x215ac2,_0x4d2adb))||_0x2b54b4;}return _0xec07d6>0x3&&_0x2b54b4&&Object[_0x298bd6(0xa1)](_0x215ac2,_0x4d2adb,_0x2b54b4),_0x2b54b4;},__metadata=this&&this['__metadata']||function(_0x83fa86,_0xac9995){const _0x460c0c=a2_0x2b73e4;if(typeof Reflect===_0x460c0c(0xb7)&&typeof Reflect[_0x460c0c(0xb2)]===_0x460c0c(0xc3))return Reflect[_0x460c0c(0xb2)](_0x83fa86,_0xac9995);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x2b73e4(0x83)]=void 0x0;function a2_0x3d0f(_0x34649d,_0x1e54ee){const _0x325cc6=a2_0x325c();return a2_0x3d0f=function(_0x3d0fc7,_0x98b058){_0x3d0fc7=_0x3d0fc7-0x81;let _0x4fc11f=_0x325cc6[_0x3d0fc7];return _0x4fc11f;},a2_0x3d0f(_0x34649d,_0x1e54ee);}const decorator_1=require(a2_0x2b73e4(0xd8)),core_1=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x2b73e4(0x9c)),action_1=require(a2_0x2b73e4(0xb9)),fs=require('fs'),koa=require(a2_0x2b73e4(0x82)),i18n=require(a2_0x2b73e4(0x98)),task=require(a2_0x2b73e4(0xce)),upload=require(a2_0x2b73e4(0x85)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2b73e4(0x88)),bodyXml=require(a2_0x2b73e4(0xde)),bodyParser=require(a2_0x2b73e4(0xd3)),ConfigDefault=require(a2_0x2b73e4(0xa0)),ConfigProduction=require(a2_0x2b73e4(0xd5)),anncic=require(a2_0x2b73e4(0x8c)),anncicEvent=require(a2_0x2b73e4(0xc7)),anncicTypeorm=require(a2_0x2b73e4(0x99)),anncicValidator=require(a2_0x2b73e4(0xca)),anncicHelper=require(a2_0x2b73e4(0xbc));let CustomConfiguration=class CustomConfiguration{async[a2_0x2b73e4(0xc5)](){const _0xfd7244=a2_0x2b73e4;await this[_0xfd7244(0xc8)](),await this[_0xfd7244(0xc1)](),await this[_0xfd7244(0xc2)](),await this[_0xfd7244(0xbf)]();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x226e77=a2_0x2b73e4,_0x1a1a95=this[_0x226e77(0x81)][_0x226e77(0x97)]();this[_0x226e77(0xa6)][_0x226e77(0x8b)](action_1['ACTION_ROUTE_KEY'],_0x3bf113=>{const _0x28c739=_0x226e77,_0x592340=_0x3bf113[_0x28c739(0xb2)];return{'before':async _0x343ee7=>{const _0x3ad187=_0x28c739;var _0x4155a0,_0x24ce78,_0x5203bb,_0x1e656d,_0xeef8e;const _0x1bed5a=(_0x4155a0=_0x343ee7===null||_0x343ee7===void 0x0?void 0x0:_0x343ee7[_0x3ad187(0x90)])===null||_0x4155a0===void 0x0?void 0x0:_0x4155a0[core_1[_0x3ad187(0xd1)]];if(_0x1bed5a){if((_0x592340===null||_0x592340===void 0x0?void 0x0:_0x592340[_0x3ad187(0xd9)])&&!this[_0x3ad187(0xb5)][_0x3ad187(0xaa)]((_0x24ce78=_0x1bed5a===null||_0x1bed5a===void 0x0?void 0x0:_0x1bed5a['request'])===null||_0x24ce78===void 0x0?void 0x0:_0x24ce78[_0x3ad187(0x9f)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);((_0x5203bb=_0x1bed5a[_0x3ad187(0x9f)])===null||_0x5203bb===void 0x0?void 0x0:_0x5203bb[_0x3ad187(0xb3)])&&((_0xeef8e=(_0x1e656d=_0x1a1a95===null||_0x1a1a95===void 0x0?void 0x0:_0x1a1a95['anncicapi'])===null||_0x1e656d===void 0x0?void 0x0:_0x1e656d['devices'])===null||_0xeef8e===void 0x0?void 0x0:_0xeef8e[_0x1bed5a[_0x3ad187(0x9f)][_0x3ad187(0xb3)]])&&(typeof _0x1a1a95['anncicapi'][_0x3ad187(0xa8)][_0x1bed5a['headers'][_0x3ad187(0xb3)]][_0x3ad187(0xdb)]==_0x3ad187(0xc3)&&await _0x1a1a95[_0x3ad187(0xcc)][_0x3ad187(0xa8)][_0x1bed5a[_0x3ad187(0x9f)][_0x3ad187(0xb3)]][_0x3ad187(0xdb)]((_0x1bed5a===null||_0x1bed5a===void 0x0?void 0x0:_0x1bed5a[_0x3ad187(0x9a)])||undefined,_0x592340,_0x1bed5a));}},'afterThrow':(_0x924067,_0x4d86a1)=>{throw _0x4d86a1;}};});}async['hanlderApplications'](){const _0x5d3da7=a2_0x2b73e4;this[_0x5d3da7(0xbe)][_0x5d3da7(0xd4)]([_0x5d3da7(0xb1)])[_0x5d3da7(0xc6)](_0xdb7c65=>{const _0xa7c5f1=_0x5d3da7;_0xdb7c65[_0xa7c5f1(0xa5)](bodyXml(this[_0xa7c5f1(0x81)][_0xa7c5f1(0x97)]('bodyXml'))),_0xdb7c65[_0xa7c5f1(0xa5)](bodyParser(this[_0xa7c5f1(0x81)]['getConfiguration'](_0xa7c5f1(0x94)))),(_0xdb7c65===null||_0xdb7c65===void 0x0?void 0x0:_0xdb7c65['context'])&&Object[_0xa7c5f1(0xb8)](_0xdb7c65[_0xa7c5f1(0x86)],{'ok':{'value':function(_0xac6235,_0x36ba51,_0x3ff9b2=0x0){return{'code':_0x3ff9b2,'data':_0xac6235,'extra':_0x36ba51};}},'err':{'value':function(_0x3c874b,_0x2b0dc9,_0x16d928=0x1){return{'code':_0x16d928,'extra':_0x2b0dc9,'msg':_0x3c874b};}},'input':{'value':function(_0x2ddc70,_0x2c1af2){const _0x2c5fc7=_0xa7c5f1;var _0x41d436;const _0x2bacfd=lodash[_0x2c5fc7(0xe1)]({},this[_0x2c5fc7(0xe0)][_0x2c5fc7(0xd0)]||this['request'][((_0x41d436=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x41d436===void 0x0?void 0x0:_0x41d436[_0x2c5fc7(0xdf)])||_0x2c5fc7(0xd0)]||{},this[_0x2c5fc7(0xe0)][_0x2c5fc7(0x89)]||{});return _0x2ddc70?lodash[_0x2c5fc7(0xd6)](_0x2bacfd,_0x2ddc70,_0x2c1af2):_0x2bacfd;}},'when':{'value':async function(_0x1e9ddd,_0x5e4ab6){const _0x5029ad=_0xa7c5f1,_0x217dbf=this[_0x5029ad(0x92)](_0x1e9ddd,null);if(!lodash[_0x5029ad(0x84)](_0x217dbf))return await _0x5e4ab6(_0x217dbf);}},'only':{'value':function(_0x425265){const _0x41b94b=_0xa7c5f1,_0x4f4485={};for(let _0x2290d6=0x0;_0x2290d6<_0x425265[_0x41b94b(0xa7)];_0x2290d6++){lodash[_0x41b94b(0xbd)](_0x425265[_0x2290d6])&&_0x425265[_0x2290d6]['length']>0x0&&lodash['isString'](_0x425265[_0x2290d6][0x0])&&(_0x4f4485[_0x425265[_0x2290d6][0x0]]=this[_0x41b94b(0x92)](_0x425265[_0x2290d6][0x0],_0x425265[_0x2290d6][_0x41b94b(0xa7)]>0x1?_0x425265[_0x2290d6][0x1]:null));}return _0x4f4485;}}});});}async[a2_0x2b73e4(0xc8)](){const _0x3894f4=a2_0x2b73e4;var _0x34529a,_0x15869b,_0x3daccc,_0x126726,_0x4b5f3b,_0x4965a8;const _0x39a965=this[_0x3894f4(0x81)][_0x3894f4(0x97)]();((_0x15869b=(_0x34529a=_0x39a965===null||_0x39a965===void 0x0?void 0x0:_0x39a965['anncicapi'])===null||_0x34529a===void 0x0?void 0x0:_0x34529a[_0x3894f4(0xa8)])===null||_0x15869b===void 0x0?void 0x0:_0x15869b[_0x3894f4(0xa9)])&&Object[_0x3894f4(0xa3)](_0x39a965[_0x3894f4(0xcc)][_0x3894f4(0xa8)])[_0x3894f4(0xa7)]>0x1&&delete _0x39a965[_0x3894f4(0xcc)][_0x3894f4(0xa8)][_0x3894f4(0xa9)];if((_0x3daccc=_0x39a965===null||_0x39a965===void 0x0?void 0x0:_0x39a965['staticFile'])===null||_0x3daccc===void 0x0?void 0x0:_0x3daccc['dirs'])for(const _0x9e85c6 in _0x39a965['staticFile'][_0x3894f4(0xab)]){((_0x126726=_0x39a965[_0x3894f4(0xc0)][_0x3894f4(0xab)][_0x9e85c6])===null||_0x126726===void 0x0?void 0x0:_0x126726[_0x3894f4(0xb4)])&&typeof((_0x4b5f3b=_0x39a965[_0x3894f4(0xc0)][_0x3894f4(0xab)][_0x9e85c6])===null||_0x4b5f3b===void 0x0?void 0x0:_0x4b5f3b[_0x3894f4(0xb4)])==_0x3894f4(0x87)&&!fs['existsSync'](_0x39a965[_0x3894f4(0xc0)]['dirs'][_0x9e85c6][_0x3894f4(0xb4)])&&(fs['mkdirSync'](_0x39a965[_0x3894f4(0xc0)][_0x3894f4(0xab)][_0x9e85c6][_0x3894f4(0xb4)],{'recursive':!![]}),console[_0x3894f4(0xd7)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x39a965[_0x3894f4(0xc0)][_0x3894f4(0xab)][_0x9e85c6]['dir']));}((_0x4965a8=_0x39a965===null||_0x39a965===void 0x0?void 0x0:_0x39a965[_0x3894f4(0xdd)])===null||_0x4965a8===void 0x0?void 0x0:_0x4965a8[_0x3894f4(0xcd)])&&!fs[_0x3894f4(0x93)](_0x39a965[_0x3894f4(0xdd)][_0x3894f4(0xcd)])&&(fs['mkdirSync'](_0x39a965['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x3894f4(0x91)+_0x39a965['upload'][_0x3894f4(0xcd)])),this[_0x3894f4(0x81)]['addObject'](_0x39a965);}};__decorate([(0x0,decorator_1[a2_0x2b73e4(0x8a)])(),__metadata('design:type',core_1[a2_0x2b73e4(0xb6)])],CustomConfiguration[a2_0x2b73e4(0x95)],a2_0x2b73e4(0x81),void 0x0),__decorate([(0x0,decorator_1[a2_0x2b73e4(0x8a)])(),__metadata(a2_0x2b73e4(0xaf),core_1[a2_0x2b73e4(0xd2)])],CustomConfiguration[a2_0x2b73e4(0x95)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x2b73e4(0x8a)])(),__metadata('design:type',core_1[a2_0x2b73e4(0xa2)])],CustomConfiguration[a2_0x2b73e4(0x95)],'application',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x2b73e4(0xaf),core_1[a2_0x2b73e4(0x8f)])],CustomConfiguration['prototype'],a2_0x2b73e4(0xc9),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x2b73e4(0xaf),ApiService_1[a2_0x2b73e4(0xb5)])],CustomConfiguration[a2_0x2b73e4(0x95)],a2_0x2b73e4(0xb5),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2b73e4(0xcb)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x2b73e4(0xc4),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2b73e4(0x83)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x14894a=a2_0x505e;(function(_0x282f18,_0xfc8812){const _0x142d89=a2_0x505e,_0x31f475=_0x282f18();while(!![]){try{const _0x59bfb8=-parseInt(_0x142d89(0xab))/0x1+-parseInt(_0x142d89(0x7f))/0x2+parseInt(_0x142d89(0xb8))/0x3*(-parseInt(_0x142d89(0x8a))/0x4)+parseInt(_0x142d89(0x8e))/0x5*(-parseInt(_0x142d89(0x99))/0x6)+-parseInt(_0x142d89(0x72))/0x7+parseInt(_0x142d89(0x98))/0x8+parseInt(_0x142d89(0x86))/0x9*(parseInt(_0x142d89(0x7d))/0xa);if(_0x59bfb8===_0xfc8812)break;else _0x31f475['push'](_0x31f475['shift']());}catch(_0xb0a093){_0x31f475['push'](_0x31f475['shift']());}}}(a2_0x4cd1,0x669fb));function a2_0x4cd1(){const _0xeea64a=['@anncic-api/validator','length','decorator','2160sHBQqm','ACTION_ROUTE_KEY','1035896WnGbqr','staticFile','filterConfig','onReady','defineProperties','__metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','67257EnhnSK','@midwayjs/core','MidwayDecoratorService','handlerActionRoute','73956YmCbVD','anncic-api','mkdirSync','REQUEST_OBJ_CTX_KEY','285gRiVaX','headers','@anncic-api/cache','beforeRoute','MidwayEnvironmentService','prototype','registerMethodHandler','./service/ApiService','./exception/ApiError','config','2660560lsLdDJ','61890vkTzgY','upload','@midwayjs/i18n','object','bodyXml','@midwayjs/upload','defaultsDeep','query','input','@anncic-api/typeorm','__decorate','./config/config.production','./config/config.default','ApiService','@midwayjs/static-file','isArray','@anncic-api/core','application','178768JEYdBQ','DEFAULT','tmpdir','apimit','Inject','koa','keys','checksign','design:type','anncicapi','@anncic-api/event','./types/action','Configuration','21SXPMzd','dir','Anncic-api\x20static-file\x20:\x20mkdir\x20','checkConfigKeys','log','function','isString','string','CustomConfiguration','getConfiguration','ApiError','request','devices','existsSync','isNull','getOwnPropertyDescriptor','HEADERS_SIGNATURE','anncic-apihelper','metadata','key','hanlderApplications','device','get','dirs','context','786079rdkozb','@midwayjs/cross-domain','_matchedRoute','target','MidwayApplicationManager','@midwayjs/decorator','body','forEach'];a2_0x4cd1=function(){return _0xeea64a;};return a2_0x4cd1();}var __decorate=this&&this[a2_0x14894a(0xa3)]||function(_0x529a85,_0x1b65a6,_0x309706,_0x56cdcb){const _0x3f9199=a2_0x14894a;var _0x884ef3=arguments[_0x3f9199(0x7b)],_0x2ed0b9=_0x884ef3<0x3?_0x1b65a6:_0x56cdcb===null?_0x56cdcb=Object[_0x3f9199(0x68)](_0x1b65a6,_0x309706):_0x56cdcb,_0x5f5f91;if(typeof Reflect===_0x3f9199(0x9c)&&typeof Reflect['decorate']===_0x3f9199(0xbd))_0x2ed0b9=Reflect['decorate'](_0x529a85,_0x1b65a6,_0x309706,_0x56cdcb);else{for(var _0x592b33=_0x529a85[_0x3f9199(0x7b)]-0x1;_0x592b33>=0x0;_0x592b33--)if(_0x5f5f91=_0x529a85[_0x592b33])_0x2ed0b9=(_0x884ef3<0x3?_0x5f5f91(_0x2ed0b9):_0x884ef3>0x3?_0x5f5f91(_0x1b65a6,_0x309706,_0x2ed0b9):_0x5f5f91(_0x1b65a6,_0x309706))||_0x2ed0b9;}return _0x884ef3>0x3&&_0x2ed0b9&&Object['defineProperty'](_0x1b65a6,_0x309706,_0x2ed0b9),_0x2ed0b9;},__metadata=this&&this[a2_0x14894a(0x84)]||function(_0x159c68,_0x1eeb50){const _0x2df343=a2_0x14894a;if(typeof Reflect===_0x2df343(0x9c)&&typeof Reflect['metadata']===_0x2df343(0xbd))return Reflect['metadata'](_0x159c68,_0x1eeb50);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x14894a(0xc0)]=void 0x0;const decorator_1=require(a2_0x14894a(0x77)),core_1=require(a2_0x14894a(0x87)),ApiError_1=require(a2_0x14894a(0x96)),ApiService_1=require(a2_0x14894a(0x95)),action_1=require(a2_0x14894a(0xb6)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x14894a(0x9b)),task=require('@midwayjs/task'),upload=require(a2_0x14894a(0x9e)),staticFile=require(a2_0x14894a(0xa7)),crossDomain=require(a2_0x14894a(0x73)),ConfigDefault=require(a2_0x14894a(0xa5)),ConfigProduction=require(a2_0x14894a(0xa4)),anncic=require(a2_0x14894a(0xa9)),anncicCache=require(a2_0x14894a(0x90)),anncicEvent=require(a2_0x14894a(0xb5)),anncicTypeorm=require(a2_0x14894a(0xa2)),anncicValidator=require(a2_0x14894a(0x7a)),anncicHelper=require(a2_0x14894a(0x6a));let CustomConfiguration=class CustomConfiguration{async[a2_0x14894a(0x82)](){const _0x52d7b6=a2_0x14894a;await this[_0x52d7b6(0x81)](),await this[_0x52d7b6(0xbb)](),await this['handlerActionRoute'](),await this[_0x52d7b6(0x6d)]();}async[a2_0x14894a(0xbb)](){}async[a2_0x14894a(0x89)](){const _0x2ec55c=a2_0x14894a,_0x529735=this[_0x2ec55c(0x97)][_0x2ec55c(0xc1)]();this[_0x2ec55c(0x7c)][_0x2ec55c(0x94)](action_1[_0x2ec55c(0x7e)],_0x510a2d=>{const _0x3d0d51=_0x2ec55c,_0x1ad267=_0x510a2d[_0x3d0d51(0x6b)];return{'before':async _0x520316=>{const _0x21a5c9=_0x3d0d51;var _0x579fde,_0xec0ef8,_0x40991f,_0x2d3ac9,_0x3ef4ba;const _0x28c2e5=(_0x579fde=_0x520316===null||_0x520316===void 0x0?void 0x0:_0x520316[_0x21a5c9(0x75)])===null||_0x579fde===void 0x0?void 0x0:_0x579fde[core_1[_0x21a5c9(0x8d)]];if(_0x28c2e5){if((_0x1ad267===null||_0x1ad267===void 0x0?void 0x0:_0x1ad267[_0x21a5c9(0xae)])&&!this[_0x21a5c9(0xa6)][_0x21a5c9(0xb2)]((_0xec0ef8=_0x28c2e5===null||_0x28c2e5===void 0x0?void 0x0:_0x28c2e5[_0x21a5c9(0xc3)])===null||_0xec0ef8===void 0x0?void 0x0:_0xec0ef8[_0x21a5c9(0x8f)]))throw new AnnError(ApiError_1[_0x21a5c9(0xc2)][_0x21a5c9(0x69)]);((_0x40991f=_0x28c2e5[_0x21a5c9(0x8f)])===null||_0x40991f===void 0x0?void 0x0:_0x40991f['device'])&&((_0x3ef4ba=(_0x2d3ac9=_0x529735===null||_0x529735===void 0x0?void 0x0:_0x529735[_0x21a5c9(0xb4)])===null||_0x2d3ac9===void 0x0?void 0x0:_0x2d3ac9[_0x21a5c9(0xc4)])===null||_0x3ef4ba===void 0x0?void 0x0:_0x3ef4ba[_0x28c2e5['headers']['device']])&&(typeof _0x529735[_0x21a5c9(0xb4)][_0x21a5c9(0xc4)][_0x28c2e5[_0x21a5c9(0x8f)][_0x21a5c9(0x6e)]][_0x21a5c9(0x91)]=='function'&&await _0x529735[_0x21a5c9(0xb4)][_0x21a5c9(0xc4)][_0x28c2e5[_0x21a5c9(0x8f)]['device']][_0x21a5c9(0x91)]((_0x28c2e5===null||_0x28c2e5===void 0x0?void 0x0:_0x28c2e5[_0x21a5c9(0x74)])||undefined,_0x1ad267,_0x28c2e5));}},'afterThrow':(_0x4aa7b4,_0x21049a)=>{throw _0x21049a;}};});}async['hanlderApplications'](){const _0x241bb2=a2_0x14894a;this[_0x241bb2(0xaa)]['getApplications']([_0x241bb2(0xb0)])[_0x241bb2(0x79)](_0xec0693=>{const _0x4a97cd=_0x241bb2;(_0xec0693===null||_0xec0693===void 0x0?void 0x0:_0xec0693['context'])&&Object[_0x4a97cd(0x83)](_0xec0693[_0x4a97cd(0x71)],{'ok':{'value':function(_0x11fee1,_0x49e173,_0x5a0570=0x0){return{'code':_0x5a0570,'data':_0x11fee1,'extra':_0x49e173};}},'err':{'value':function(_0x347789,_0xea7a09,_0x5b2fa6=0x1){return{'code':_0x5b2fa6,'extra':_0xea7a09,'msg':_0x347789};}},'input':{'value':function(_0x19eec7,_0x5c72dc){const _0x456844=_0x4a97cd;var _0x389377;const _0x143611=lodash[_0x456844(0x9f)]({},this[_0x456844(0xc3)][_0x456844(0x78)]||this[_0x456844(0xc3)][((_0x389377=config===null||config===void 0x0?void 0x0:config[_0x456844(0x9d)])===null||_0x389377===void 0x0?void 0x0:_0x389377[_0x456844(0x6c)])||'body']||{},this[_0x456844(0xc3)][_0x456844(0xa0)]||{});return _0x19eec7?lodash[_0x456844(0x6f)](_0x143611,_0x19eec7,_0x5c72dc):_0x143611;}},'when':{'value':async function(_0x330a7a,_0x2bc633){const _0x1c6406=_0x4a97cd,_0x4cc240=this['input'](_0x330a7a,null);if(!lodash[_0x1c6406(0x67)](_0x4cc240))return await _0x2bc633(_0x4cc240);}},'only':{'value':function(_0x1ba4f7){const _0x45ea7c=_0x4a97cd,_0x31bc15={};for(let _0x82281b=0x0;_0x82281b<_0x1ba4f7[_0x45ea7c(0x7b)];_0x82281b++){lodash[_0x45ea7c(0xa8)](_0x1ba4f7[_0x82281b])&&_0x1ba4f7[_0x82281b]['length']>0x0&&lodash[_0x45ea7c(0xbe)](_0x1ba4f7[_0x82281b][0x0])&&(_0x31bc15[_0x1ba4f7[_0x82281b][0x0]]=this[_0x45ea7c(0xa1)](_0x1ba4f7[_0x82281b][0x0],_0x1ba4f7[_0x82281b][_0x45ea7c(0x7b)]>0x1?_0x1ba4f7[_0x82281b][0x1]:null));}return _0x31bc15;}}});});}async[a2_0x14894a(0x81)](){const _0x5f1f44=a2_0x14894a;var _0x56424f,_0x11ff72,_0x1e6663,_0x328d8c,_0x4d0b41,_0xa4c501;const _0x29c7f6=this[_0x5f1f44(0x97)][_0x5f1f44(0xc1)]();((_0x11ff72=(_0x56424f=_0x29c7f6===null||_0x29c7f6===void 0x0?void 0x0:_0x29c7f6[_0x5f1f44(0xb4)])===null||_0x56424f===void 0x0?void 0x0:_0x56424f[_0x5f1f44(0xc4)])===null||_0x11ff72===void 0x0?void 0x0:_0x11ff72[_0x5f1f44(0xac)])&&Object[_0x5f1f44(0xb1)](_0x29c7f6[_0x5f1f44(0xb4)]['devices'])[_0x5f1f44(0x7b)]>0x1&&delete _0x29c7f6['anncicapi'][_0x5f1f44(0xc4)]['DEFAULT'];if((_0x1e6663=_0x29c7f6===null||_0x29c7f6===void 0x0?void 0x0:_0x29c7f6[_0x5f1f44(0x80)])===null||_0x1e6663===void 0x0?void 0x0:_0x1e6663[_0x5f1f44(0x70)])for(const _0x4848e4 in _0x29c7f6[_0x5f1f44(0x80)][_0x5f1f44(0x70)]){((_0x328d8c=_0x29c7f6[_0x5f1f44(0x80)][_0x5f1f44(0x70)][_0x4848e4])===null||_0x328d8c===void 0x0?void 0x0:_0x328d8c['dir'])&&typeof((_0x4d0b41=_0x29c7f6['staticFile'][_0x5f1f44(0x70)][_0x4848e4])===null||_0x4d0b41===void 0x0?void 0x0:_0x4d0b41['dir'])==_0x5f1f44(0xbf)&&!fs[_0x5f1f44(0x66)](_0x29c7f6[_0x5f1f44(0x80)][_0x5f1f44(0x70)][_0x4848e4]['dir'])&&(fs['mkdirSync'](_0x29c7f6['staticFile'][_0x5f1f44(0x70)][_0x4848e4][_0x5f1f44(0xb9)],{'recursive':!![]}),console['log'](_0x5f1f44(0xba)+_0x29c7f6[_0x5f1f44(0x80)][_0x5f1f44(0x70)][_0x4848e4][_0x5f1f44(0xb9)]));}((_0xa4c501=_0x29c7f6===null||_0x29c7f6===void 0x0?void 0x0:_0x29c7f6['upload'])===null||_0xa4c501===void 0x0?void 0x0:_0xa4c501[_0x5f1f44(0xad)])&&!fs[_0x5f1f44(0x66)](_0x29c7f6[_0x5f1f44(0x9a)][_0x5f1f44(0xad)])&&(fs[_0x5f1f44(0x8c)](_0x29c7f6[_0x5f1f44(0x9a)]['tmpdir'],{'recursive':!![]}),console[_0x5f1f44(0xbc)](_0x5f1f44(0x85)+_0x29c7f6[_0x5f1f44(0x9a)]['tmpdir'])),this[_0x5f1f44(0x97)]['addObject'](_0x29c7f6);}};function a2_0x505e(_0x321145,_0x148277){const _0x4cd13c=a2_0x4cd1();return a2_0x505e=function(_0x505eaf,_0x36717f){_0x505eaf=_0x505eaf-0x66;let _0x25d45f=_0x4cd13c[_0x505eaf];return _0x25d45f;},a2_0x505e(_0x321145,_0x148277);}__decorate([(0x0,decorator_1[a2_0x14894a(0xaf)])(),__metadata(a2_0x14894a(0xb3),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x14894a(0x93)],'config',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a2_0x14894a(0x88)])],CustomConfiguration['prototype'],a2_0x14894a(0x7c),void 0x0),__decorate([(0x0,decorator_1[a2_0x14894a(0xaf)])(),__metadata(a2_0x14894a(0xb3),core_1[a2_0x14894a(0x76)])],CustomConfiguration[a2_0x14894a(0x93)],a2_0x14894a(0xaa),void 0x0),__decorate([(0x0,decorator_1[a2_0x14894a(0xaf)])(),__metadata('design:type',core_1[a2_0x14894a(0x92)])],CustomConfiguration[a2_0x14894a(0x93)],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x14894a(0xb3),ApiService_1[a2_0x14894a(0xa6)])],CustomConfiguration[a2_0x14894a(0x93)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x14894a(0xb7)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x14894a(0x8b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x14894a(0xc0)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a3_0x5ce0(_0x213e55,_0x45ded6){const _0x2f522d=a3_0x2f52();return a3_0x5ce0=function(_0x5ce060,_0x26c9aa){_0x5ce060=_0x5ce060-0x114;let _0x303a4b=_0x2f522d[_0x5ce060];return _0x303a4b;},a3_0x5ce0(_0x213e55,_0x45ded6);}const a3_0x2932d1=a3_0x5ce0;(function(_0xd11115,_0x4b1419){const _0x48b80f=a3_0x5ce0,_0x55e314=_0xd11115();while(!![]){try{const _0x24ca24=-parseInt(_0x48b80f(0x122))/0x1*(-parseInt(_0x48b80f(0x139))/0x2)+-parseInt(_0x48b80f(0x146))/0x3*(parseInt(_0x48b80f(0x149))/0x4)+parseInt(_0x48b80f(0x115))/0x5*(parseInt(_0x48b80f(0x141))/0x6)+-parseInt(_0x48b80f(0x114))/0x7*(-parseInt(_0x48b80f(0x11b))/0x8)+parseInt(_0x48b80f(0x14a))/0x9*(parseInt(_0x48b80f(0x13a))/0xa)+-parseInt(_0x48b80f(0x117))/0xb*(parseInt(_0x48b80f(0x11e))/0xc)+-parseInt(_0x48b80f(0x144))/0xd*(-parseInt(_0x48b80f(0x118))/0xe);if(_0x24ca24===_0x4b1419)break;else _0x55e314['push'](_0x55e314['shift']());}catch(_0x5a154a){_0x55e314['push'](_0x55e314['shift']());}}}(a3_0x2f52,0xbf594));Object['defineProperty'](exports,a3_0x2932d1(0x120),{'value':!![]}),exports[a3_0x2932d1(0x129)]=exports[a3_0x2932d1(0x13b)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x2932d1(0x134)),action_1=require(a3_0x2932d1(0x142));function Action(_0x191ca4,_0x2bac49,_0x1e7c7b={'middleware':[],'sensitive':!![]}){return _0x7e0c14=>{const _0x5642a4=a3_0x5ce0;_0x1e7c7b[_0x5642a4(0x12f)]=_0x2bac49;const _0x490ec8=parseRoute(_0x191ca4);if(_0x490ec8[_0x5642a4(0x128)]){_0x1e7c7b[_0x5642a4(0x145)]=_0x1e7c7b[_0x5642a4(0x145)]?'/'+_0x490ec8['module']+'/'+_0x1e7c7b[_0x5642a4(0x145)]:'/'+_0x490ec8['route'];_0x490ec8[_0x5642a4(0x145)]&&(_0x1e7c7b[_0x5642a4(0x145)]='/'+_0x490ec8[_0x5642a4(0x145)]+'/'+_0x1e7c7b[_0x5642a4(0x145)]);if(fs[_0x5642a4(0x133)](_0x490ec8[_0x5642a4(0x116)]+_0x5642a4(0x11c)+_0x490ec8['module']+'/config.'+(lodash['endsWith'](_0x490ec8[_0x5642a4(0x124)],'ts')?'ts':'js'))){const _0x29a763=include(_0x490ec8['rootpath']+_0x5642a4(0x11c)+_0x490ec8[_0x5642a4(0x128)]+'/config.'+(lodash[_0x5642a4(0x13f)](_0x490ec8['filepath'],'ts')?'ts':'js'));if(_0x29a763['middleware']&&lodash[_0x5642a4(0x12d)](_0x29a763[_0x5642a4(0x123)])&&_0x29a763[_0x5642a4(0x123)][_0x5642a4(0x130)]>0x0)for(let _0x3d8421 in _0x29a763[_0x5642a4(0x123)]){_0x29a763[_0x5642a4(0x12e)]['indexOf'](_0x29a763[_0x5642a4(0x123)][_0x3d8421])==-0x1&&_0x1e7c7b[_0x5642a4(0x123)]['push'](_0x29a763[_0x5642a4(0x123)][_0x3d8421]);}const _0x28c53d=(0x0,decorator_1[_0x5642a4(0x14b)])(action_1[_0x5642a4(0x11a)],action_1[_0x5642a4(0x12a)])||{};_0x28c53d[''+_0x490ec8[_0x5642a4(0x128)]]=_0x29a763,(0x0,decorator_1[_0x5642a4(0x11d)])(action_1[_0x5642a4(0x11a)],_0x28c53d,action_1['AppsConfigTmp']);}_0x1e7c7b[_0x5642a4(0x145)]=_0x1e7c7b[_0x5642a4(0x145)][_0x5642a4(0x131)]()[_0x5642a4(0x126)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x5642a4(0x135)])(action_1['ACTION_KEY'],_0x7e0c14),(0x0,decorator_1[_0x5642a4(0x13c)])(_0x1e7c7b[_0x5642a4(0x145)],_0x1e7c7b)(_0x7e0c14),(0x0,decorator_1[_0x5642a4(0x11d)])(action_1[_0x5642a4(0x11f)],{'prefix':_0x1e7c7b[_0x5642a4(0x145)],'pprefix':_0x490ec8[_0x5642a4(0x145)],'module':_0x490ec8['module'],'filepath':_0x490ec8['filepath'],'routerOptions':_0x1e7c7b},_0x7e0c14);}else _0x1e7c7b['prefix']=_0x1e7c7b[_0x5642a4(0x145)]?'/'+_0x1e7c7b[_0x5642a4(0x145)]:'/'+_0x490ec8[_0x5642a4(0x147)],_0x490ec8[_0x5642a4(0x145)]&&(_0x1e7c7b[_0x5642a4(0x145)]='/'+_0x490ec8['prefix']+'/'+_0x1e7c7b[_0x5642a4(0x145)]),_0x1e7c7b['prefix']=_0x1e7c7b[_0x5642a4(0x145)][_0x5642a4(0x131)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x5642a4(0x135)])(action_1[_0x5642a4(0x11f)],_0x7e0c14),(0x0,decorator_1[_0x5642a4(0x13c)])(_0x1e7c7b[_0x5642a4(0x145)],_0x1e7c7b)(_0x7e0c14),(0x0,decorator_1[_0x5642a4(0x11d)])(action_1[_0x5642a4(0x11f)],{'prefix':_0x1e7c7b[_0x5642a4(0x145)],'module':_0x490ec8['module'],'pprefix':_0x490ec8['prefix'],'filepath':_0x490ec8['filepath'],'routerOptions':_0x1e7c7b},_0x7e0c14);};}exports[a3_0x2932d1(0x13b)]=Action;function parseRoute(_0x8df732){const _0x196fcf=a3_0x2932d1;_0x8df732=_0x8df732[_0x196fcf(0x126)](/(\\|\/)/g,'/');const _0x36c789=process[_0x196fcf(0x14c)]()[_0x196fcf(0x126)](/(\\|\/)/g,'/'),_0x526e3b=_0x8df732[_0x196fcf(0x12b)](0x0,_0x36c789['length']+_0x8df732[_0x196fcf(0x12b)](_0x36c789[_0x196fcf(0x130)]+0x1)['indexOf']('/')+0x1),_0x7e759b=_0x8df732[_0x196fcf(0x12b)](_0x526e3b['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x365d45={'route':'','prefix':![],'module':![],'rootpath':_0x526e3b,'filepath':_0x7e759b};if(_0x7e759b['startsWith'](_0x196fcf(0x12c))){const _0x4bfee5=_0x7e759b[_0x196fcf(0x12b)](_0x196fcf(0x12c)[_0x196fcf(0x130)])['split']('/')[_0x196fcf(0x13e)](_0x1db378=>_0x1db378&&_0x1db378[_0x196fcf(0x137)]());return _0x4bfee5[_0x196fcf(0x130)]>0x1&&(_0x365d45[_0x196fcf(0x145)]=_0x4bfee5[0x0][_0x196fcf(0x131)](),_0x4bfee5[_0x196fcf(0x13d)](0x0,0x1)),_0x365d45[_0x196fcf(0x147)]=('/'+_0x4bfee5[_0x196fcf(0x121)]('/'))[_0x196fcf(0x126)](/(\.ts|\.js)$/,'')[_0x196fcf(0x126)](/\/{2,}/g,'/')[_0x196fcf(0x148)](/[\/|A-Z]*[^A-Z]+/g)[_0x196fcf(0x121)]('-')[_0x196fcf(0x131)]()[_0x196fcf(0x126)](/\/\-/g,'/'),_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x13f)](_0x196fcf(0x143))&&(_0x365d45[_0x196fcf(0x147)]=_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x12b)](0x0,_0x365d45[_0x196fcf(0x147)]['length']-0x7)),_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x13f)](_0x196fcf(0x140))&&(_0x365d45[_0x196fcf(0x147)]=_0x365d45['route'][_0x196fcf(0x12b)](0x0,_0x365d45[_0x196fcf(0x147)]['length']-0xb)),_0x365d45;}else{if(_0x7e759b[_0x196fcf(0x127)](_0x196fcf(0x119))){const _0x2dc7d9=_0x7e759b[_0x196fcf(0x12b)](0x0,_0x7e759b[_0x196fcf(0x138)](_0x196fcf(0x11c))+0x5),_0x301a22=_0x7e759b[_0x196fcf(0x12b)](_0x2dc7d9[_0x196fcf(0x130)]+0x1)[_0x196fcf(0x126)](/(\\|\/)/g,'/')[_0x196fcf(0x132)]('/')[0x0];if(_0x7e759b['startsWith'](_0x196fcf(0x119)+_0x301a22+_0x196fcf(0x136))){const _0x3eed1a=_0x7e759b['substring']((_0x2dc7d9+'/'+_0x301a22+_0x196fcf(0x136))['length'])[_0x196fcf(0x132)]('/')[_0x196fcf(0x13e)](_0x2e64f5=>_0x2e64f5&&_0x2e64f5[_0x196fcf(0x137)]());return _0x3eed1a[_0x196fcf(0x130)]>0x1&&(_0x365d45[_0x196fcf(0x145)]=_0x3eed1a[0x0][_0x196fcf(0x131)](),_0x3eed1a[_0x196fcf(0x13d)](0x0,0x1)),_0x365d45[_0x196fcf(0x128)]=_0x301a22,_0x365d45['route']=('/'+_0x301a22+'/'+_0x3eed1a['join']('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x196fcf(0x148)](/[\/|A-Z]*[^A-Z]+/g)[_0x196fcf(0x121)]('-')['toLowerCase']()[_0x196fcf(0x126)](/\/\-/g,'/'),_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x13f)](_0x196fcf(0x143))&&(_0x365d45[_0x196fcf(0x147)]=_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x12b)](0x0,_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x130)]-0x7)),_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x13f)](_0x196fcf(0x140))&&(_0x365d45[_0x196fcf(0x147)]=_0x365d45['route'][_0x196fcf(0x12b)](0x0,_0x365d45[_0x196fcf(0x147)][_0x196fcf(0x130)]-0xb)),_0x365d45;}throw new Error(_0x7e759b+_0x196fcf(0x125)+_0x301a22+'/controller/文件下');}}throw new Error(_0x7e759b+'\x20文件请放在app/controller/文件下');}function a3_0x2f52(){const _0x44ae8f=['filter','endsWith','-controller','112152DSTTns','../types/action','-action','195buafdh','prefix','3744018ArTflm','route','match','4tKNOsX','1449LZOpdZ','getClassMetadata','cwd','8703779jrvhYH','160OyBMjG','rootpath','7889486LMhJPm','355278lntQdK','apps/','APPSCONFIG_KEY','8eWEXXN','/apps/','saveClassMetadata','12PvwjsI','ACTION_KEY','__esModule','join','1GXeisN','middleware','filepath','\x20文件请放在apps/','replace','startsWith','module','parseRoute','AppsConfigTmp','substring','app/controller/','isArray','middlewareIgnore','tagName','length','toLowerCase','split','existsSync','@midwayjs/decorator','saveModule','/controller/','trim','indexOf','626306mncQPi','13270VtIOqI','Action','Controller','splice'];a3_0x2f52=function(){return _0x44ae8f;};return a3_0x2f52();}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x23a1(){const _0x1b6735=['toLowerCase','middlewareIgnore','description','@anncic-api/validator','middleware','del','8158LRZehQ','4612928FzQrCx','createCustomMethodDecorator','878802awuWpz','attachClassMetadata','apimit','length','Validator','indexOf','429164Zgdivf','filter','1012695yrotso','Api','3304770AnBQIY','routerName','validate','ACTION_ROUTE_KEY','3yepRnZ','validationOptions','assign','__esModule','../types/action','1734468LxRZHJ','utc','delete','RequestMapping','get'];a4_0x23a1=function(){return _0x1b6735;};return a4_0x23a1();}const a4_0x386f23=a4_0x57aa;(function(_0x289e26,_0x2f4904){const _0x4c2252=a4_0x57aa,_0x1a4d6f=_0x289e26();while(!![]){try{const _0x22bac3=-parseInt(_0x4c2252(0x138))/0x1+-parseInt(_0x4c2252(0x150))/0x2*(parseInt(_0x4c2252(0x140))/0x3)+-parseInt(_0x4c2252(0x145))/0x4+parseInt(_0x4c2252(0x13a))/0x5+-parseInt(_0x4c2252(0x153))/0x6+parseInt(_0x4c2252(0x13c))/0x7+parseInt(_0x4c2252(0x151))/0x8;if(_0x22bac3===_0x2f4904)break;else _0x1a4d6f['push'](_0x1a4d6f['shift']());}catch(_0x27ba8e){_0x1a4d6f['push'](_0x1a4d6f['shift']());}}}(a4_0x23a1,0x3a172));Object['defineProperty'](exports,a4_0x386f23(0x143),{'value':!![]}),exports[a4_0x386f23(0x13b)]=void 0x0;const validator_1=require(a4_0x386f23(0x14d)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x386f23(0x144));function a4_0x57aa(_0x70190f,_0x5cb15c){const _0x23a1a8=a4_0x23a1();return a4_0x57aa=function(_0x57aac5,_0x39e407){_0x57aac5=_0x57aac5-0x134;let _0x44084c=_0x23a1a8[_0x57aac5];return _0x44084c;},a4_0x57aa(_0x70190f,_0x5cb15c);}function Api(_0x169820,_0x40e19d=a4_0x386f23(0x149),_0x431a5a='/',_0x32751f={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x15edc3,_0x53ce72,_0xf513b2)=>{const _0x17137b=a4_0x57aa;var _0x4bcd13,_0x360cb7,_0x5eb4b7;!_0x32751f[_0x17137b(0x14e)]&&(_0x32751f[_0x17137b(0x14e)]=[]);!((_0x4bcd13=_0x32751f===null||_0x32751f===void 0x0?void 0x0:_0x32751f['validate'])===null||_0x4bcd13===void 0x0?void 0x0:_0x4bcd13[_0x17137b(0x141)])&&(_0x32751f[_0x17137b(0x13e)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x17137b(0x146)}});if(((_0x360cb7=_0x32751f===null||_0x32751f===void 0x0?void 0x0:_0x32751f['middleware'])===null||_0x360cb7===void 0x0?void 0x0:_0x360cb7[_0x17137b(0x135)])>0x0&&((_0x5eb4b7=_0x32751f===null||_0x32751f===void 0x0?void 0x0:_0x32751f[_0x17137b(0x14b)])===null||_0x5eb4b7===void 0x0?void 0x0:_0x5eb4b7[_0x17137b(0x135)])>0x0)for(let _0x521bc9 in _0x32751f[_0x17137b(0x14e)]){_0x32751f[_0x17137b(0x14b)][_0x17137b(0x137)](_0x32751f['middleware'][_0x521bc9])!==-0x1&&(_0x32751f[_0x17137b(0x14e)][_0x521bc9]=null);}_0x32751f['routerName']=_0x169820,(0x0,validator_1[_0x17137b(0x136)])(_0x32751f[_0x17137b(0x13e)])(_0x15edc3,_0x53ce72,_0xf513b2),(0x0,decorator_1[_0x17137b(0x148)])(Object[_0x17137b(0x142)](_0x32751f,{'path':_0x431a5a,'requestMethod':(_0x40e19d==_0x17137b(0x14f)?'delete':_0x40e19d)[_0x17137b(0x14a)]()}))(_0x15edc3,_0x53ce72,_0xf513b2),(0x0,decorator_1[_0x17137b(0x154)])(action_1[_0x17137b(0x13f)],{'path':_0x431a5a,'method':_0x53ce72,'apimit':_0x32751f[_0x17137b(0x134)],'routerName':_0x32751f[_0x17137b(0x13d)],'description':_0x32751f[_0x17137b(0x14c)],'middleware':(_0x32751f['middleware']||[])[_0x17137b(0x139)](_0x598d6a=>!!_0x598d6a),'requestMethod':(_0x40e19d==_0x17137b(0x14f)?'delete':_0x40e19d)[_0x17137b(0x14a)]()},_0x15edc3),(0x0,decorator_1[_0x17137b(0x152)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x431a5a,'method':_0x53ce72,'apimit':_0x32751f[_0x17137b(0x134)],'routerName':_0x32751f['routerName'],'description':_0x32751f[_0x17137b(0x14c)],'middleware':(_0x32751f[_0x17137b(0x14e)]||[])[_0x17137b(0x139)](_0x40cfca=>!!_0x40cfca),'requestMethod':(_0x40e19d==_0x17137b(0x14f)?_0x17137b(0x147):_0x40e19d)[_0x17137b(0x14a)]()})(_0x15edc3,_0x53ce72,_0xf513b2);};}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0x40d475=a5_0x5568;(function(_0x4c6fcf,_0x483b8e){const _0x4c6da0=a5_0x5568,_0x1b48a3=_0x4c6fcf();while(!![]){try{const _0x15a951=parseInt(_0x4c6da0(0xef))/0x1*(parseInt(_0x4c6da0(0xee))/0x2)+parseInt(_0x4c6da0(0xe8))/0x3+parseInt(_0x4c6da0(0xec))/0x4+parseInt(_0x4c6da0(0xe6))/0x5+parseInt(_0x4c6da0(0xfc))/0x6*(parseInt(_0x4c6da0(0xe5))/0x7)+parseInt(_0x4c6da0(0xf1))/0x8+-parseInt(_0x4c6da0(0xed))/0x9;if(_0x15a951===_0x483b8e)break;else _0x1b48a3['push'](_0x1b48a3['shift']());}catch(_0x44f690){_0x1b48a3['push'](_0x1b48a3['shift']());}}}(a5_0x5f9f,0xceded));function a5_0x5f9f(){const _0x1dd55b=['Apitest','913902aLRMku','REQUEST_OBJ_CTX_KEY','get','__esModule','5804200YsMbrK','42452496QRfYkH','37474PVaOnK','47AkCOip','MidwayEnvironmentService','3733128IhkNBH','/apitest','@midwayjs/decorator','getConfig','../service/ApitestService','@midwayjs/core','value','app','getAsync','filepath','apidoc','6VsBnkB','isDevelopmentEnvironment','apitest','11114845pBptWn','4367430MtIDqu'];a5_0x5f9f=function(){return _0x1dd55b;};return a5_0x5f9f();}Object['defineProperty'](exports,a5_0x40d475(0xeb),{'value':!![]}),exports[a5_0x40d475(0xe7)]=void 0x0;const decorator_1=require(a5_0x40d475(0xf3)),core_1=require(a5_0x40d475(0xf6)),ApitestService_1=require(a5_0x40d475(0xf5));function Apitest(_0x44f19d=a5_0x40d475(0xf2),_0x2a1a94){return(_0x40fd11,_0x560d32,_0x12528d)=>{const _0x16e3d8=a5_0x5568;return(0x0,decorator_1['RequestMapping'])({'path':_0x44f19d,'requestMethod':_0x16e3d8(0xea)})(_0x40fd11,_0x560d32,_0x12528d),_0x12528d[_0x16e3d8(0xf7)]=async function(..._0x26ea13){const _0x281cd6=_0x16e3d8;var _0x41eee2;const _0x537e6c=(_0x41eee2=this[core_1[_0x281cd6(0xe9)]])===null||_0x41eee2===void 0x0?void 0x0:_0x41eee2[_0x281cd6(0xf8)];if(_0x537e6c&&_0x537e6c[_0x281cd6(0xf4)](_0x281cd6(0xe4))){const _0xdff128=await _0x537e6c['getApplicationContext']()[_0x281cd6(0xf9)](ApitestService_1['ApitestService']),_0x545a83=await _0x537e6c['getApplicationContext']()[_0x281cd6(0xf9)](core_1[_0x281cd6(0xf0)]);return _0x545a83[_0x281cd6(0xfd)]()&&(_0x2a1a94[_0x281cd6(0xfa)]=!![]),await _0xdff128[_0x281cd6(0xfb)](_0x2a1a94);}return'';},_0x12528d;};}function a5_0x5568(_0x25f4df,_0x37bdab){const _0x5f9f60=a5_0x5f9f();return a5_0x5568=function(_0x556868,_0x54ba2a){_0x556868=_0x556868-0xe4;let _0x24887d=_0x5f9f60[_0x556868];return _0x24887d;},a5_0x5568(_0x25f4df,_0x37bdab);}exports[a5_0x40d475(0xe7)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x447683=a6_0x4872;(function(_0x14ae2d,_0x448175){var _0x591c9b=a6_0x4872,_0x456125=_0x14ae2d();while(!![]){try{var _0x4a68cb=-parseInt(_0x591c9b(0x1af))/0x1+-parseInt(_0x591c9b(0x19c))/0x2+-parseInt(_0x591c9b(0x1ab))/0x3+parseInt(_0x591c9b(0x1a8))/0x4*(-parseInt(_0x591c9b(0x1b3))/0x5)+-parseInt(_0x591c9b(0x1ae))/0x6*(parseInt(_0x591c9b(0x1a3))/0x7)+parseInt(_0x591c9b(0x1ac))/0x8+-parseInt(_0x591c9b(0x1b0))/0x9*(-parseInt(_0x591c9b(0x19a))/0xa);if(_0x4a68cb===_0x448175)break;else _0x456125['push'](_0x456125['shift']());}catch(_0x27f63f){_0x456125['push'](_0x456125['shift']());}}}(a6_0x1e58,0x1c67d));var __decorate=this&&this[a6_0x447683(0x19d)]||function(_0x4c84e6,_0x59aa4e,_0x81226e,_0x56565b){var _0x89ad0b=a6_0x447683,_0x3dfafb=arguments[_0x89ad0b(0x19e)],_0x65ef8f=_0x3dfafb<0x3?_0x59aa4e:_0x56565b===null?_0x56565b=Object[_0x89ad0b(0x1b4)](_0x59aa4e,_0x81226e):_0x56565b,_0x241c30;if(typeof Reflect==='object'&&typeof Reflect[_0x89ad0b(0x1ad)]===_0x89ad0b(0x19f))_0x65ef8f=Reflect[_0x89ad0b(0x1ad)](_0x4c84e6,_0x59aa4e,_0x81226e,_0x56565b);else{for(var _0x29d19c=_0x4c84e6[_0x89ad0b(0x19e)]-0x1;_0x29d19c>=0x0;_0x29d19c--)if(_0x241c30=_0x4c84e6[_0x29d19c])_0x65ef8f=(_0x3dfafb<0x3?_0x241c30(_0x65ef8f):_0x3dfafb>0x3?_0x241c30(_0x59aa4e,_0x81226e,_0x65ef8f):_0x241c30(_0x59aa4e,_0x81226e))||_0x65ef8f;}return _0x3dfafb>0x3&&_0x65ef8f&&Object[_0x89ad0b(0x19b)](_0x59aa4e,_0x81226e,_0x65ef8f),_0x65ef8f;},__metadata=this&&this[a6_0x447683(0x1a7)]||function(_0x37f0e0,_0x38af9b){var _0x177630=a6_0x447683;if(typeof Reflect===_0x177630(0x1a5)&&typeof Reflect['metadata']===_0x177630(0x19f))return Reflect['metadata'](_0x37f0e0,_0x38af9b);};function a6_0x1e58(){var _0x152a4e=['请使用正确的设备','604923aeszNp','567064gzoHyN','decorate','408UEdiIG','151427GRmLcW','5063211mEWtjL','HEADERS_LACK','请求头信息不完整','4340llQSEj','getOwnPropertyDescriptor','signature验证失败','10HMzqKB','defineProperty','246394YRKhdh','__decorate','length','function','网络繁忙,请稍后重试','HEADERS_CHECKCODE','ApiError','2954ddHnty','HEADERS_DEVICE','object','TIMEOUT','__metadata','56vnqlgA','design:type'];a6_0x1e58=function(){return _0x152a4e;};return a6_0x1e58();}Object[a6_0x447683(0x19b)](exports,'__esModule',{'value':!![]}),exports[a6_0x447683(0x1a2)]=void 0x0;function a6_0x4872(_0x108bc5,_0x250d96){var _0x1e58b0=a6_0x1e58();return a6_0x4872=function(_0x487247,_0x3b6f8a){_0x487247=_0x487247-0x19a;var _0x2765af=_0x1e58b0[_0x487247];return _0x2765af;},a6_0x4872(_0x108bc5,_0x250d96);}class ApiError{}ApiError[a6_0x447683(0x1a6)]=0x18a89,ApiError[a6_0x447683(0x1b1)]=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError['HEADERS_SIGNATURE']=0x18a8d,__decorate([AnnErrorMsg(a6_0x447683(0x1a0)),__metadata('design:type',Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x447683(0x1b2)),__metadata(a6_0x447683(0x1a9),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x447683(0x1aa)),__metadata(a6_0x447683(0x1a9),Object)],ApiError,a6_0x447683(0x1a4),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x447683(0x1a9),Object)],ApiError,a6_0x447683(0x1a1),void 0x0),__decorate([AnnErrorMsg(a6_0x447683(0x1b5)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0x447683(0x1a2)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x865f(_0x46a770,_0x28e918){const _0x14ae9e=a7_0x14ae();return a7_0x865f=function(_0x865f46,_0x1a6bc8){_0x865f46=_0x865f46-0x169;let _0x4f9ca6=_0x14ae9e[_0x865f46];return _0x4f9ca6;},a7_0x865f(_0x46a770,_0x28e918);}const a7_0x17aea9=a7_0x865f;(function(_0x50d7d5,_0x416eb8){const _0x4cef73=a7_0x865f,_0x52dc26=_0x50d7d5();while(!![]){try{const _0x3628b2=-parseInt(_0x4cef73(0x17d))/0x1*(-parseInt(_0x4cef73(0x16f))/0x2)+parseInt(_0x4cef73(0x176))/0x3*(-parseInt(_0x4cef73(0x16b))/0x4)+parseInt(_0x4cef73(0x173))/0x5*(parseInt(_0x4cef73(0x17b))/0x6)+parseInt(_0x4cef73(0x172))/0x7*(-parseInt(_0x4cef73(0x171))/0x8)+-parseInt(_0x4cef73(0x175))/0x9*(-parseInt(_0x4cef73(0x16c))/0xa)+-parseInt(_0x4cef73(0x177))/0xb+parseInt(_0x4cef73(0x170))/0xc*(parseInt(_0x4cef73(0x178))/0xd);if(_0x3628b2===_0x416eb8)break;else _0x52dc26['push'](_0x52dc26['shift']());}catch(_0x867aa5){_0x52dc26['push'](_0x52dc26['shift']());}}}(a7_0x14ae,0x7390a));function a7_0x14ae(){const _0x5dd782=['APPSCONFIG_KEY','18MnRmDi','565812ufqjLM','6805271WnFLPp','10359323ZVnzXp','getAppsConfig','../types/action','5790GUbKeO','defineProperty','232186OIScmb','getClassMetadata','@midwayjs/decorator','4jRFcss','1918310PpfuFS','get','AppsConfigTmp','2WUizel','12dSzVPZ','1240OSzSxV','6881GzBacn','105KnBeJt'];a7_0x14ae=function(){return _0x5dd782;};return a7_0x14ae();}Object[a7_0x17aea9(0x17c)](exports,'__esModule',{'value':!![]}),exports[a7_0x17aea9(0x179)]=void 0x0;const decorator_1=require(a7_0x17aea9(0x16a)),action_1=require(a7_0x17aea9(0x17a));function getAppsConfig(_0x111bb2){const _0x5c634e=a7_0x17aea9,_0x74fa7e=(0x0,decorator_1[_0x5c634e(0x169)])(action_1[_0x5c634e(0x174)],action_1[_0x5c634e(0x16e)])||{};return _0x111bb2?lodash[_0x5c634e(0x16d)](_0x74fa7e,_0x111bb2):_0x74fa7e;}exports[a7_0x17aea9(0x179)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x41abf6=a8_0x5c71;(function(_0x24f949,_0x2b1c1b){const _0x55086c=a8_0x5c71,_0x336507=_0x24f949();while(!![]){try{const _0x42e908=-parseInt(_0x55086c(0x177))/0x1*(parseInt(_0x55086c(0x181))/0x2)+-parseInt(_0x55086c(0x17b))/0x3*(-parseInt(_0x55086c(0x175))/0x4)+parseInt(_0x55086c(0x193))/0x5+-parseInt(_0x55086c(0x15a))/0x6*(-parseInt(_0x55086c(0x13d))/0x7)+-parseInt(_0x55086c(0x13c))/0x8*(-parseInt(_0x55086c(0x172))/0x9)+parseInt(_0x55086c(0x15f))/0xa*(parseInt(_0x55086c(0x16b))/0xb)+-parseInt(_0x55086c(0x188))/0xc*(parseInt(_0x55086c(0x152))/0xd);if(_0x42e908===_0x2b1c1b)break;else _0x336507['push'](_0x336507['shift']());}catch(_0x168e58){_0x336507['push'](_0x336507['shift']());}}}(a8_0xe765,0x6ebed));function a8_0x5c71(_0x3c68ab,_0x1e68a4){const _0xe76504=a8_0xe765();return a8_0x5c71=function(_0x5c7166,_0x3e2422){_0x5c7166=_0x5c7166-0x137;let _0x5dbfbc=_0xe76504[_0x5c7166];return _0x5dbfbc;},a8_0x5c71(_0x3c68ab,_0x1e68a4);}Object[a8_0x41abf6(0x187)](exports,a8_0x41abf6(0x166),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x41abf6(0x142)),validator_1=require(a8_0x41abf6(0x183)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x41abf6(0x192)),decorator_3=require(a8_0x41abf6(0x192)),action_1=require(a8_0x41abf6(0x13e));function getRoutes(_0x41e2f9={'prefix':'/','module':![]}){const _0xd06b28=a8_0x41abf6;var _0x185b1c,_0x526a05;const _0x1ac32e=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x42d0d4={},_0x439fd3=Array['isArray'](_0x41e2f9[_0xd06b28(0x16f)]||[])?_0x41e2f9[_0xd06b28(0x16f)]||[]:[_0x41e2f9[_0xd06b28(0x16f)]];_0x512144:for(const _0x19857c of _0x1ac32e){let _0x4ef160=(0x0,decorator_3[_0xd06b28(0x182)])(action_1['ACTION_KEY'],_0x19857c),_0xde858d=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x19857c);if(_0x4ef160&&_0xde858d){let _0x2de0fc=_0x4ef160[_0xd06b28(0x169)],_0x1e6239={};if(_0x41e2f9[_0xd06b28(0x184)]&&(0x0,lodash_1[_0xd06b28(0x179)])(_0x4ef160,_0xd06b28(0x184),![])!=_0x41e2f9[_0xd06b28(0x184)])continue _0x512144;else{if(_0x41e2f9[_0xd06b28(0x184)]===![]&&!!(0x0,lodash_1[_0xd06b28(0x179)])(_0x4ef160,'module',null))continue _0x512144;}if(_0x41e2f9[_0xd06b28(0x169)]&&!_0x2de0fc[_0xd06b28(0x165)](_0x41e2f9[_0xd06b28(0x169)]))continue _0x512144;_0x2de0fc!=='/'?(_0x1e6239['summary']=(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160['routerOptions']['tagName'])||(/^\//[_0xd06b28(0x178)](_0x2de0fc)?_0x2de0fc[_0xd06b28(0x173)]('/')[0x1]:_0x2de0fc),_0x1e6239[_0xd06b28(0x159)]=(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160[_0xd06b28(0x16d)][_0xd06b28(0x159)])||_0x1e6239[_0xd06b28(0x167)],_0x1e6239['routes']=[]):(_0x1e6239['summary']=(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160[_0xd06b28(0x16d)][_0xd06b28(0x17e)])||'default',_0x1e6239[_0xd06b28(0x159)]=(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160['routerOptions'][_0xd06b28(0x159)])||'',_0x1e6239[_0xd06b28(0x16a)]=[]);_0x41e2f9['filepath']&&(_0x1e6239[_0xd06b28(0x163)]=_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160['filepath']);(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160[_0xd06b28(0x15c)])&&(_0x1e6239['prefix']=_0x4ef160[_0xd06b28(0x15c)]);(_0x4ef160===null||_0x4ef160===void 0x0?void 0x0:_0x4ef160['module'])&&(_0x1e6239[_0xd06b28(0x184)]=_0x4ef160['module']);let _0x3ca715=(0x0,decorator_3[_0xd06b28(0x182)])(decorator_2[_0xd06b28(0x160)],_0x19857c)||{};if(typeof _0xde858d[Symbol['iterator']]===_0xd06b28(0x138))for(let _0x2b4b60 of _0xde858d){let _0x585425={};_0x585425[_0xd06b28(0x151)]=_0x2b4b60[_0xd06b28(0x170)],_0x585425[_0xd06b28(0x18d)]=(_0x2de0fc+_0x2b4b60[_0xd06b28(0x13b)])[_0xd06b28(0x15b)](/\/{1,}/,'/'),_0x585425[_0xd06b28(0x167)]=(_0x2b4b60===null||_0x2b4b60===void 0x0?void 0x0:_0x2b4b60['routerName'])||_0x1e6239[_0xd06b28(0x167)]||'default',_0x585425[_0xd06b28(0x159)]=(_0x2b4b60===null||_0x2b4b60===void 0x0?void 0x0:_0x2b4b60['description'])||'',_0x585425['request']=[];if(!(0x0,lodash_1['startsWith'])(_0x585425[_0xd06b28(0x18d)],'static/apitest')&&!(0x0,lodash_1[_0xd06b28(0x165)])(_0x585425[_0xd06b28(0x18d)],'/static/apitest')&&_0x439fd3['indexOf'](_0x585425['route'])===-0x1){if(!(_0x41e2f9===null||_0x41e2f9===void 0x0?void 0x0:_0x41e2f9[_0xd06b28(0x148)])){let _0x29dc31=(0x0,decorator_3['getMethodParamTypes'])(new _0x19857c(),_0x2b4b60[_0xd06b28(0x151)]);for(const _0x5e2ba4 in _0x29dc31){let _0x50516a=(_0x185b1c=_0x3ca715[_0x2b4b60[_0xd06b28(0x151)]])===null||_0x185b1c===void 0x0?void 0x0:_0x185b1c['find'](_0x35ede6=>_0x35ede6[_0xd06b28(0x155)]==_0x5e2ba4&&_0x35ede6[_0xd06b28(0x161)]===decorator_2[_0xd06b28(0x18c)]&&(_0x35ede6===null||_0x35ede6===void 0x0?void 0x0:_0x35ede6[_0xd06b28(0x157)]));if(_0x50516a===null||_0x50516a===void 0x0?void 0x0:_0x50516a[_0xd06b28(0x157)]){let _0x377408=convertTypeToString(_0x50516a[_0xd06b28(0x157)][_0xd06b28(0x15e)]||0x0);if([_0xd06b28(0x186),_0xd06b28(0x16c)]['indexOf'](_0x377408)!=-0x1&&_0x50516a[_0xd06b28(0x157)][_0xd06b28(0x158)][_0xd06b28(0x144)](':')==-0x1&&!_0x585425['request']['find'](_0x3d6219=>_0x3d6219[_0xd06b28(0x161)]==_0x50516a[_0xd06b28(0x157)][_0xd06b28(0x158)]))_0x585425[_0xd06b28(0x143)][_0xd06b28(0x190)]({'key':_0x50516a['metadata'][_0xd06b28(0x158)],'title':_0x50516a[_0xd06b28(0x157)][_0xd06b28(0x158)],'type':convertSchemaType(_0x29dc31[_0x50516a['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x377408==_0xd06b28(0x18e)){let _0x43646f=((_0x526a05=_0x50516a===null||_0x50516a===void 0x0?void 0x0:_0x50516a['metadata'])===null||_0x526a05===void 0x0?void 0x0:_0x526a05[_0xd06b28(0x158)])||'file';_0x43646f[_0xd06b28(0x144)](':')==-0x1&&!_0x585425['request']['find'](_0x457669=>_0x457669[_0xd06b28(0x161)]==_0x43646f&&_0x457669[_0xd06b28(0x15e)]==_0xd06b28(0x18e))&&_0x585425[_0xd06b28(0x143)][_0xd06b28(0x190)]({'key':_0x43646f,'title':_0xd06b28(0x176)+_0x43646f,'type':_0xd06b28(0x18e),'required':!![],'default':'','desc':''});}}}else{const _0x4f835a=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0xd06b28(0x180)],_0x29dc31[_0x5e2ba4]);_0x4f835a&&_0x585425['request'][_0xd06b28(0x190)](...getJoiRequest(_0x4f835a));}}}_0x1e6239[_0xd06b28(0x16a)]['push'](_0x585425);}}if(_0x1e6239[_0xd06b28(0x16a)][_0xd06b28(0x141)]>0x0){let _0x1803b3=_0x42d0d4[_0x2de0fc];_0x1803b3?(_0x1803b3[_0xd06b28(0x167)]!=_0x1e6239[_0xd06b28(0x167)]&&(_0x1803b3['summary']=_0x1803b3['summary']+','+_0x1e6239[_0xd06b28(0x167)]),_0x1803b3[_0xd06b28(0x159)]!=_0x1e6239['description']&&(_0x1803b3[_0xd06b28(0x159)]=_0x1803b3[_0xd06b28(0x159)]+','+_0x1e6239['description']),_0x1803b3[_0xd06b28(0x16a)]=_0x1803b3[_0xd06b28(0x16a)][_0xd06b28(0x140)](_0x1e6239['routes']),_0x42d0d4[_0x2de0fc]=_0x1803b3):_0x42d0d4[_0x2de0fc]=_0x1e6239;}}}return _0x42d0d4;}exports[a8_0x41abf6(0x17c)]=getRoutes;function getJoiRequest(_0x3f3ddc){const _0x3c8c45=a8_0x41abf6,_0xfd6f49=[];for(let _0x569637 in _0x3f3ddc){const _0xb9c8a9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x52f61b=typeof _0x3f3ddc[_0x569637][_0x3c8c45(0x153)]==_0x3c8c45(0x138)?_0x3f3ddc[_0x569637][_0x3c8c45(0x153)]():_0x3f3ddc[_0x569637];_0xb9c8a9[_0x3c8c45(0x161)]=_0x569637,_0xb9c8a9[_0x3c8c45(0x15e)]=_0x52f61b[_0x3c8c45(0x15e)],_0xb9c8a9[_0x3c8c45(0x191)]=(0x0,lodash_1['get'])(_0x52f61b,_0x3c8c45(0x145),_0x569637),_0xb9c8a9[_0x3c8c45(0x14d)]=(0x0,lodash_1[_0x3c8c45(0x179)])(_0x52f61b,_0x3c8c45(0x18b),''),_0xb9c8a9[_0x3c8c45(0x15d)]=(0x0,lodash_1[_0x3c8c45(0x179)])(_0x52f61b,_0x3c8c45(0x17d),'')==_0x3c8c45(0x15d),_0xb9c8a9[_0x3c8c45(0x159)]=(0x0,lodash_1[_0x3c8c45(0x179)])(_0x52f61b,_0x3c8c45(0x185),'');if(_0x52f61b[_0x3c8c45(0x15e)]==_0x3c8c45(0x150))_0xb9c8a9[_0x3c8c45(0x18f)]=getJoiRequest(_0x52f61b[_0x3c8c45(0x146)]);else _0x52f61b[_0x3c8c45(0x15e)]=='array'&&_0x52f61b[_0x3c8c45(0x14f)]&&Array[_0x3c8c45(0x189)](_0x52f61b[_0x3c8c45(0x14f)])&&_0x52f61b['items'][0x0]&&console[_0x3c8c45(0x171)](_0x569637+_0x3c8c45(0x147),_0x52f61b);_0x52f61b['allow']&&Array['isArray'](_0x52f61b[_0x3c8c45(0x18a)])&&_0x52f61b[_0x3c8c45(0x18a)]['length']>0x0&&(_0xb9c8a9['description']='只允许:['+_0x52f61b[_0x3c8c45(0x18a)][_0x3c8c45(0x14e)](',')+'];'+_0xb9c8a9[_0x3c8c45(0x159)]);if(_0xb9c8a9['key']&&_0xb9c8a9['type']){const _0x27380f={};for(const _0x457757 of _0x52f61b[_0x3c8c45(0x149)]||[]){if(_0x457757['name']===_0x3c8c45(0x156)&&_0x457757[_0x3c8c45(0x17f)])_0x27380f['min']=_0x457757[_0x3c8c45(0x17f)][_0x3c8c45(0x174)];else _0x457757[_0x3c8c45(0x154)]==='max'&&(_0x27380f['max']=_0x457757['args']['limit']);}_0xb9c8a9[_0x3c8c45(0x149)]=_0x27380f;}_0xb9c8a9[_0x3c8c45(0x161)]&&_0xb9c8a9[_0x3c8c45(0x191)]&&_0xfd6f49['push'](_0xb9c8a9);}return _0xfd6f49;}function a8_0xe765(){const _0x34f6a6=['WEB_ROUTER_PARAM_KEY','route','file','children','push','title','@midwayjs/decorator','2327655GxmznR','File','function','PARAM','string','path','740184gzKpEw','27363KSYGUy','../types/action','HEADERS','concat','length','lodash','request','indexOf','flags.label','keys','-array','noreq','rules','boolean','Boolean','String','default','join','items','object','method','756353YxEFeE','describe','name','parameterIndex','min','metadata','propertyData','description','444UpErNP','replace','pprefix','required','type','8110MjMOhO','INJECT_CUSTOM_PARAM','key','RouteParamTypes','filepath','Object','startsWith','__esModule','summary','header','prefix','routes','5313IHrZmY','body','routerOptions','number','filter','requestMethod','log','9VZUWqQ','split','limit','3072fqEcxc','文件上传-','1vrcnbB','test','get','Number','2058aCLhrb','getRoutes','flags.presence','tagName','args','RULES_KEY','64572BfMhyX','getClassMetadata','@anncic-api/validator','module','flags.description','query','defineProperty','264auPVKP','isArray','allow','flags.default'];a8_0xe765=function(){return _0x34f6a6;};return a8_0xe765();}function convertSchemaType(_0x12ddb9){const _0xaf5751=a8_0x41abf6;switch(_0x12ddb9){case _0xaf5751(0x164):return _0xaf5751(0x150);case _0xaf5751(0x14b):return _0xaf5751(0x14a);case _0xaf5751(0x17a):return _0xaf5751(0x16e);case _0xaf5751(0x14c):return _0xaf5751(0x13a);case _0xaf5751(0x137):return _0xaf5751(0x18e);default:return'string';}}function convertTypeToString(_0x3ed0bc){const _0xc7753d=a8_0x41abf6;switch(_0x3ed0bc){case decorator_1[_0xc7753d(0x162)][_0xc7753d(0x13f)]:return _0xc7753d(0x168);case decorator_1[_0xc7753d(0x162)]['QUERY']:return _0xc7753d(0x186);case decorator_1[_0xc7753d(0x162)][_0xc7753d(0x139)]:return'path';case decorator_1[_0xc7753d(0x162)]['BODY']:return _0xc7753d(0x16c);case decorator_1[_0xc7753d(0x162)]['FIELDS']:case decorator_1['RouteParamTypes']['FILESSTREAM']:case decorator_1[_0xc7753d(0x162)]['FILESTREAM']:return'file';default:return _0xc7753d(0x168);}}
|
|
1
|
+
'use strict';const a8_0x5b930f=a8_0x1112;(function(_0x6196af,_0x59e0f8){const _0x1cd538=a8_0x1112,_0x2b1a5b=_0x6196af();while(!![]){try{const _0x21fd16=-parseInt(_0x1cd538(0x211))/0x1+-parseInt(_0x1cd538(0x1ff))/0x2+parseInt(_0x1cd538(0x1c9))/0x3*(-parseInt(_0x1cd538(0x1f1))/0x4)+-parseInt(_0x1cd538(0x1eb))/0x5+-parseInt(_0x1cd538(0x1e2))/0x6+parseInt(_0x1cd538(0x21b))/0x7+-parseInt(_0x1cd538(0x1f3))/0x8*(-parseInt(_0x1cd538(0x213))/0x9);if(_0x21fd16===_0x59e0f8)break;else _0x2b1a5b['push'](_0x2b1a5b['shift']());}catch(_0x5f4b88){_0x2b1a5b['push'](_0x2b1a5b['shift']());}}}(a8_0x4c1d,0x52bf5));Object[a8_0x5b930f(0x1db)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x5b930f(0x1f4)),validator_1=require(a8_0x5b930f(0x1f5)),decorator_1=require(a8_0x5b930f(0x205)),decorator_2=require(a8_0x5b930f(0x205)),decorator_3=require(a8_0x5b930f(0x205)),action_1=require(a8_0x5b930f(0x1f6));function getRoutes(_0x3d1b1b={'prefix':'/','module':![]}){const _0xfa3e89=a8_0x5b930f;var _0x3940bc,_0x47dd94;const _0x57a5a2=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x1857cb={},_0x3ca476=Array['isArray'](_0x3d1b1b['filter']||[])?_0x3d1b1b[_0xfa3e89(0x216)]||[]:[_0x3d1b1b[_0xfa3e89(0x216)]];_0x16c35c:for(const _0x3c939f of _0x57a5a2){let _0x229f12=(0x0,decorator_3[_0xfa3e89(0x1fa)])(action_1['ACTION_KEY'],_0x3c939f),_0xe4ea39=(0x0,decorator_3[_0xfa3e89(0x1fa)])(action_1[_0xfa3e89(0x221)],_0x3c939f);if(_0x229f12&&_0xe4ea39){let _0xa746c0=_0x229f12[_0xfa3e89(0x220)],_0x556808={};if(_0x3d1b1b[_0xfa3e89(0x217)]&&(0x0,lodash_1[_0xfa3e89(0x1e9)])(_0x229f12,_0xfa3e89(0x217),![])!=_0x3d1b1b[_0xfa3e89(0x217)])continue _0x16c35c;else{if(_0x3d1b1b[_0xfa3e89(0x217)]===![]&&!!(0x0,lodash_1[_0xfa3e89(0x1e9)])(_0x229f12,'module',null))continue _0x16c35c;}if(_0x3d1b1b[_0xfa3e89(0x220)]&&!_0xa746c0[_0xfa3e89(0x1d7)](_0x3d1b1b[_0xfa3e89(0x220)]))continue _0x16c35c;_0xa746c0!=='/'?(_0x556808[_0xfa3e89(0x1f2)]=(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x1ea)][_0xfa3e89(0x1cb)])||(/^\//[_0xfa3e89(0x210)](_0xa746c0)?_0xa746c0['split']('/')[0x1]:_0xa746c0),_0x556808[_0xfa3e89(0x1d3)]=(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x1ea)][_0xfa3e89(0x1d3)])||_0x556808['summary'],_0x556808[_0xfa3e89(0x1c7)]=[]):(_0x556808[_0xfa3e89(0x1f2)]=(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x1ea)]['tagName'])||_0xfa3e89(0x1e5),_0x556808['description']=(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x1ea)][_0xfa3e89(0x1d3)])||'',_0x556808[_0xfa3e89(0x1c7)]=[]);_0x3d1b1b[_0xfa3e89(0x20d)]&&(_0x556808[_0xfa3e89(0x20d)]=_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x20d)]);(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12[_0xfa3e89(0x1ca)])&&(_0x556808[_0xfa3e89(0x220)]=_0x229f12[_0xfa3e89(0x1ca)]);(_0x229f12===null||_0x229f12===void 0x0?void 0x0:_0x229f12['module'])&&(_0x556808[_0xfa3e89(0x217)]=_0x229f12[_0xfa3e89(0x217)]);let _0x33d3d8=(0x0,decorator_3[_0xfa3e89(0x1fa)])(decorator_2[_0xfa3e89(0x1c8)],_0x3c939f)||{};if(typeof _0xe4ea39[Symbol['iterator']]==='function')for(let _0x42af61 of _0xe4ea39){let _0x2cc6d8={};_0x2cc6d8[_0xfa3e89(0x208)]=_0x42af61['requestMethod'],_0x2cc6d8[_0xfa3e89(0x20f)]=(_0xa746c0+_0x42af61[_0xfa3e89(0x202)])[_0xfa3e89(0x212)](/\/{1,}/,'/'),_0x2cc6d8[_0xfa3e89(0x1f2)]=(_0x42af61===null||_0x42af61===void 0x0?void 0x0:_0x42af61[_0xfa3e89(0x1e4)])||_0x556808[_0xfa3e89(0x1f2)]||_0xfa3e89(0x1e5),_0x2cc6d8[_0xfa3e89(0x1d3)]=(_0x42af61===null||_0x42af61===void 0x0?void 0x0:_0x42af61[_0xfa3e89(0x1d3)])||'',_0x2cc6d8[_0xfa3e89(0x20c)]=[];if(!(0x0,lodash_1[_0xfa3e89(0x1d7)])(_0x2cc6d8['route'],_0xfa3e89(0x20a))&&!(0x0,lodash_1[_0xfa3e89(0x1d7)])(_0x2cc6d8[_0xfa3e89(0x20f)],'/static/apitest')&&_0x3ca476[_0xfa3e89(0x1fe)](_0x2cc6d8['route'])===-0x1){if(!(_0x3d1b1b===null||_0x3d1b1b===void 0x0?void 0x0:_0x3d1b1b[_0xfa3e89(0x215)])){let _0x1665ee=(0x0,decorator_3[_0xfa3e89(0x1cc)])(new _0x3c939f(),_0x42af61[_0xfa3e89(0x208)]);for(const _0x5984be in _0x1665ee){let _0x1584d7=(_0x3940bc=_0x33d3d8[_0x42af61[_0xfa3e89(0x208)]])===null||_0x3940bc===void 0x0?void 0x0:_0x3940bc[_0xfa3e89(0x1d6)](_0x12c0a0=>_0x12c0a0['parameterIndex']==_0x5984be&&_0x12c0a0[_0xfa3e89(0x20b)]===decorator_2[_0xfa3e89(0x1f8)]&&(_0x12c0a0===null||_0x12c0a0===void 0x0?void 0x0:_0x12c0a0[_0xfa3e89(0x1d9)]));if(_0x1584d7===null||_0x1584d7===void 0x0?void 0x0:_0x1584d7[_0xfa3e89(0x1d9)]){let _0x32f374=convertTypeToString(_0x1584d7['metadata'][_0xfa3e89(0x20e)]||0x0);if([_0xfa3e89(0x1e7),_0xfa3e89(0x1d5)][_0xfa3e89(0x1fe)](_0x32f374)!=-0x1&&_0x1584d7[_0xfa3e89(0x1d9)][_0xfa3e89(0x1d8)][_0xfa3e89(0x1fe)](':')==-0x1&&!_0x2cc6d8[_0xfa3e89(0x20c)]['find'](_0xd5fda=>_0xd5fda['key']==_0x1584d7[_0xfa3e89(0x1d9)][_0xfa3e89(0x1d8)]))_0x2cc6d8[_0xfa3e89(0x20c)][_0xfa3e89(0x204)]({'key':_0x1584d7[_0xfa3e89(0x1d9)]['propertyData'],'title':_0x1584d7[_0xfa3e89(0x1d9)]['propertyData'],'type':convertSchemaType(_0x1665ee[_0x1584d7[_0xfa3e89(0x1ed)]][_0xfa3e89(0x1dd)]),'required':![],'default':'','desc':''});else{if(_0x32f374==_0xfa3e89(0x1dc)){let _0x22cb43=((_0x47dd94=_0x1584d7===null||_0x1584d7===void 0x0?void 0x0:_0x1584d7[_0xfa3e89(0x1d9)])===null||_0x47dd94===void 0x0?void 0x0:_0x47dd94[_0xfa3e89(0x1d8)])||_0xfa3e89(0x1dc);_0x22cb43[_0xfa3e89(0x1fe)](':')==-0x1&&!_0x2cc6d8['request'][_0xfa3e89(0x1d6)](_0x8bc811=>_0x8bc811['key']==_0x22cb43&&_0x8bc811[_0xfa3e89(0x20e)]==_0xfa3e89(0x1dc))&&_0x2cc6d8[_0xfa3e89(0x20c)][_0xfa3e89(0x204)]({'key':_0x22cb43,'title':'文件上传-'+_0x22cb43,'type':_0xfa3e89(0x1dc),'required':!![],'default':'','desc':''});}}}else{const _0x4f8613=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0xfa3e89(0x1e1)],_0x1665ee[_0x5984be]);_0x4f8613&&_0x2cc6d8[_0xfa3e89(0x20c)][_0xfa3e89(0x204)](...getJoiRequest(_0x4f8613));}}}_0x556808[_0xfa3e89(0x1c7)][_0xfa3e89(0x204)](_0x2cc6d8);}}if(_0x556808[_0xfa3e89(0x1c7)][_0xfa3e89(0x21d)]>0x0){let _0x37a979=_0x1857cb[_0xa746c0];_0x37a979?(_0x37a979[_0xfa3e89(0x1f2)]!=_0x556808[_0xfa3e89(0x1f2)]&&(_0x37a979[_0xfa3e89(0x1f2)]=_0x37a979[_0xfa3e89(0x1f2)]+','+_0x556808['summary']),_0x37a979[_0xfa3e89(0x1d3)]!=_0x556808['description']&&(_0x37a979[_0xfa3e89(0x1d3)]=_0x37a979[_0xfa3e89(0x1d3)]+','+_0x556808[_0xfa3e89(0x1d3)]),_0x37a979[_0xfa3e89(0x1c7)]=_0x37a979['routes']['concat'](_0x556808[_0xfa3e89(0x1c7)]),_0x1857cb[_0xa746c0]=_0x37a979):_0x1857cb[_0xa746c0]=_0x556808;}}}return _0x1857cb;}exports[a8_0x5b930f(0x1e0)]=getRoutes;function a8_0x1112(_0x142a7d,_0x130613){const _0x4c1d8e=a8_0x4c1d();return a8_0x1112=function(_0x1112a8,_0x4b7a6f){_0x1112a8=_0x1112a8-0x1c7;let _0x1ee0a0=_0x4c1d8e[_0x1112a8];return _0x1ee0a0;},a8_0x1112(_0x142a7d,_0x130613);}function getJoiRequest(_0x4a9f45){const _0x4a5e67=a8_0x5b930f,_0x297aa6=[];for(let _0x436954 in _0x4a9f45){const _0x34e4a8={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xdcf550=typeof _0x4a9f45[_0x436954][_0x4a5e67(0x1ce)]=='function'?_0x4a9f45[_0x436954][_0x4a5e67(0x1ce)]():_0x4a9f45[_0x436954];_0x34e4a8['key']=_0x436954,_0x34e4a8[_0x4a5e67(0x20e)]=_0xdcf550[_0x4a5e67(0x20e)],_0x34e4a8[_0x4a5e67(0x21c)]=(0x0,lodash_1[_0x4a5e67(0x1e9)])(_0xdcf550,_0x4a5e67(0x214),_0x436954),_0x34e4a8[_0x4a5e67(0x1e5)]=(0x0,lodash_1['get'])(_0xdcf550,_0x4a5e67(0x1e8),''),_0x34e4a8[_0x4a5e67(0x1e6)]=(0x0,lodash_1[_0x4a5e67(0x1e9)])(_0xdcf550,_0x4a5e67(0x1cf),'')==_0x4a5e67(0x1e6),_0x34e4a8[_0x4a5e67(0x1d3)]=(0x0,lodash_1['get'])(_0xdcf550,_0x4a5e67(0x200),'');if(_0xdcf550[_0x4a5e67(0x20e)]==_0x4a5e67(0x1cd))_0x34e4a8[_0x4a5e67(0x1e3)]=getJoiRequest(_0xdcf550[_0x4a5e67(0x203)]);else _0xdcf550['type']==_0x4a5e67(0x1f9)&&_0xdcf550[_0x4a5e67(0x1fc)]&&Array[_0x4a5e67(0x219)](_0xdcf550[_0x4a5e67(0x1fc)])&&_0xdcf550[_0x4a5e67(0x1fc)][0x0]&&console[_0x4a5e67(0x21a)](_0x436954+'-array',_0xdcf550);_0xdcf550[_0x4a5e67(0x1df)]&&Array[_0x4a5e67(0x219)](_0xdcf550[_0x4a5e67(0x1df)])&&_0xdcf550[_0x4a5e67(0x1df)][_0x4a5e67(0x21d)]>0x0&&(_0x34e4a8[_0x4a5e67(0x1d3)]=_0x4a5e67(0x218)+_0xdcf550[_0x4a5e67(0x1df)]['join'](',')+'];'+_0x34e4a8['description']);if(_0x34e4a8[_0x4a5e67(0x20b)]&&_0x34e4a8[_0x4a5e67(0x20e)]){const _0x150789={};for(const _0x2ab56c of _0xdcf550['rules']||[]){if(_0x2ab56c[_0x4a5e67(0x1dd)]===_0x4a5e67(0x1ee)&&_0x2ab56c[_0x4a5e67(0x21f)])_0x150789[_0x4a5e67(0x1ee)]=_0x2ab56c[_0x4a5e67(0x21f)][_0x4a5e67(0x1d2)];else _0x2ab56c[_0x4a5e67(0x1dd)]===_0x4a5e67(0x1f7)&&(_0x150789[_0x4a5e67(0x1f7)]=_0x2ab56c[_0x4a5e67(0x21f)][_0x4a5e67(0x1d2)]);}_0x34e4a8['rules']=_0x150789;}_0x34e4a8[_0x4a5e67(0x20b)]&&_0x34e4a8['title']&&_0x297aa6[_0x4a5e67(0x204)](_0x34e4a8);}return _0x297aa6;}function convertSchemaType(_0x101060){const _0x26dcd5=a8_0x5b930f;switch(_0x101060){case _0x26dcd5(0x206):return _0x26dcd5(0x1cd);case'Boolean':return _0x26dcd5(0x21e);case _0x26dcd5(0x1d4):return _0x26dcd5(0x201);case'String':return _0x26dcd5(0x1fd);case _0x26dcd5(0x1fb):return'file';default:return _0x26dcd5(0x1fd);}}function a8_0x4c1d(){const _0x2ae49a=['3338976zIwLAt','children','routerName','default','required','query','flags.default','get','routerOptions','82690afkHTx','BODY','parameterIndex','min','FIELDS','HEADERS','2240332YgkWWs','summary','8YObOmO','lodash','@anncic-api/validator','../types/action','max','WEB_ROUTER_PARAM_KEY','array','getClassMetadata','File','items','string','indexOf','515842VOxcku','flags.description','number','path','keys','push','@midwayjs/decorator','Object','QUERY','method','FILESSTREAM','static/apitest','key','request','filepath','type','route','test','509523KSMdhl','replace','17191476uUDOid','flags.label','noreq','filter','module','只允许:[','isArray','log','2305310MPuZba','title','length','boolean','args','prefix','ACTION_ROUTE_KEY','routes','INJECT_CUSTOM_PARAM','3gnNhMO','pprefix','tagName','getMethodParamTypes','object','describe','flags.presence','RouteParamTypes','header','limit','description','Number','body','find','startsWith','propertyData','metadata','PARAM','defineProperty','file','name','FILESTREAM','allow','getRoutes','RULES_KEY'];a8_0x4c1d=function(){return _0x2ae49a;};return a8_0x4c1d();}function convertTypeToString(_0x539f6f){const _0xf2240d=a8_0x5b930f;switch(_0x539f6f){case decorator_1['RouteParamTypes'][_0xf2240d(0x1f0)]:return _0xf2240d(0x1d1);case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x207)]:return _0xf2240d(0x1e7);case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x1da)]:return'path';case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x1ec)]:return _0xf2240d(0x1d5);case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x1ef)]:case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x209)]:case decorator_1[_0xf2240d(0x1d0)][_0xf2240d(0x1de)]:return _0xf2240d(0x1dc);default:return _0xf2240d(0x1d1);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x561085=a9_0x5a5b;(function(_0x36135e,_0x393ec0){var _0x113670=a9_0x5a5b,_0x5038b6=_0x36135e();while(!![]){try{var _0x5ea075=parseInt(_0x113670(0x153))/0x1+parseInt(_0x113670(0x182))/0x2+-parseInt(_0x113670(0x172))/0x3+parseInt(_0x113670(0x169))/0x4*(parseInt(_0x113670(0x165))/0x5)+parseInt(_0x113670(0x158))/0x6+-parseInt(_0x113670(0x156))/0x7*(-parseInt(_0x113670(0x15c))/0x8)+-parseInt(_0x113670(0x155))/0x9*(parseInt(_0x113670(0x152))/0xa);if(_0x5ea075===_0x393ec0)break;else _0x5038b6['push'](_0x5038b6['shift']());}catch(_0x2a5599){_0x5038b6['push'](_0x5038b6['shift']());}}}(a9_0xd1c7,0x306b1));var __createBinding=this&&this[a9_0x561085(0x17a)]||(Object[a9_0x561085(0x167)]?function(_0x1db0bf,_0x55d251,_0x5c5542,_0x53ad65){var _0x48a978=a9_0x561085;if(_0x53ad65===undefined)_0x53ad65=_0x5c5542;var _0x5045a3=Object[_0x48a978(0x17c)](_0x55d251,_0x5c5542);(!_0x5045a3||(_0x48a978(0x163)in _0x5045a3?!_0x55d251['__esModule']:_0x5045a3[_0x48a978(0x15d)]||_0x5045a3[_0x48a978(0x181)]))&&(_0x5045a3={'enumerable':!![],'get':function(){return _0x55d251[_0x5c5542];}}),Object['defineProperty'](_0x1db0bf,_0x53ad65,_0x5045a3);}:function(_0x2e568e,_0x1f21d3,_0x25f3fb,_0xe16b86){if(_0xe16b86===undefined)_0xe16b86=_0x25f3fb;_0x2e568e[_0xe16b86]=_0x1f21d3[_0x25f3fb];}),__exportStar=this&&this[a9_0x561085(0x168)]||function(_0x131de9,_0x5f17ae){var _0x540a43=a9_0x561085;for(var _0x12e2a9 in _0x131de9)if(_0x12e2a9!==_0x540a43(0x15f)&&!Object[_0x540a43(0x157)][_0x540a43(0x16f)][_0x540a43(0x17d)](_0x5f17ae,_0x12e2a9))__createBinding(_0x5f17ae,_0x131de9,_0x12e2a9);};Object[a9_0x561085(0x159)](exports,a9_0x561085(0x179),{'value':!![]}),exports[a9_0x561085(0x175)]=exports[a9_0x561085(0x17f)]=exports[a9_0x561085(0x14e)]=exports[a9_0x561085(0x15b)]=exports['Provide']=exports[a9_0x561085(0x15a)]=exports[a9_0x561085(0x16b)]=exports[a9_0x561085(0x178)]=exports[a9_0x561085(0x176)]=exports['Headers']=exports['Query']=exports[a9_0x561085(0x180)]=exports[a9_0x561085(0x14c)]=exports['Fields']=exports[a9_0x561085(0x17e)]=exports[a9_0x561085(0x173)]=exports['Configuration']=exports['ValidatorService']=exports['ValidatorError']=exports['ExcelService']=exports[a9_0x561085(0x151)]=exports['EventService']=exports[a9_0x561085(0x15e)]=exports['QueueService']=exports[a9_0x561085(0x170)]=exports[a9_0x561085(0x187)]=exports[a9_0x561085(0x16a)]=exports[a9_0x561085(0x189)]=exports[a9_0x561085(0x14d)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x561085(0x159)](exports,a9_0x561085(0x175),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x561085(0x162)),exports),__exportStar(require(a9_0x561085(0x16e)),exports);var ActionApi_1=require(a9_0x561085(0x14b));Object[a9_0x561085(0x159)](exports,a9_0x561085(0x14d),{'enumerable':!![],'get':function(){var _0x54563a=a9_0x561085;return ActionApi_1[_0x54563a(0x14d)];}});var Action_1=require(a9_0x561085(0x17b));Object['defineProperty'](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x561085(0x160));Object[a9_0x561085(0x159)](exports,a9_0x561085(0x16a),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x561085(0x161));Object['defineProperty'](exports,'getRoutes',{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x561085(0x188));Object[a9_0x561085(0x159)](exports,a9_0x561085(0x170),{'enumerable':!![],'get':function(){var _0x37e348=a9_0x561085;return ApiError_1[_0x37e348(0x170)];}});var task_1=require(a9_0x561085(0x154));function a9_0x5a5b(_0x325182,_0x169aeb){var _0xd1c7d5=a9_0xd1c7();return a9_0x5a5b=function(_0x5a5bd6,_0x241e43){_0x5a5bd6=_0x5a5bd6-0x14b;var _0x1da9d9=_0xd1c7d5[_0x5a5bd6];return _0x1da9d9;},a9_0x5a5b(_0x325182,_0x169aeb);}Object[a9_0x561085(0x159)](exports,a9_0x561085(0x186),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require('@anncic-api/cache');Object[a9_0x561085(0x159)](exports,a9_0x561085(0x15e),{'enumerable':!![],'get':function(){var _0x19b7c0=a9_0x561085;return cache_1[_0x19b7c0(0x15e)];}});var event_1=require(a9_0x561085(0x166));Object[a9_0x561085(0x159)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x5199c9=a9_0x561085;return event_1[_0x5199c9(0x177)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,a9_0x561085(0x151),{'enumerable':!![],'get':function(){var _0xdbfea5=a9_0x561085;return ApiService_1[_0xdbfea5(0x151)];}});var ExcelService_1=require(a9_0x561085(0x185));Object[a9_0x561085(0x159)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x461da4=a9_0x561085;return ExcelService_1[_0x461da4(0x16c)];}});var validator_1=require(a9_0x561085(0x184));Object[a9_0x561085(0x159)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x2fd58a=a9_0x561085;return validator_1[_0x2fd58a(0x150)];}}),Object[a9_0x561085(0x159)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x70bc1b=a9_0x561085;return validator_1[_0x70bc1b(0x171)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a9_0x561085(0x16d));Object[a9_0x561085(0x159)](exports,'File',{'enumerable':!![],'get':function(){var _0x41d6e9=a9_0x561085;return decorator_1[_0x41d6e9(0x173)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x17e),{'enumerable':!![],'get':function(){var _0x36e5f6=a9_0x561085;return decorator_1[_0x36e5f6(0x17e)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x14f),{'enumerable':!![],'get':function(){var _0x2882d3=a9_0x561085;return decorator_1[_0x2882d3(0x14f)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x14c),{'enumerable':!![],'get':function(){var _0x4fb3a3=a9_0x561085;return decorator_1[_0x4fb3a3(0x14c)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x180),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object['defineProperty'](exports,a9_0x561085(0x164),{'enumerable':!![],'get':function(){var _0x22d832=a9_0x561085;return decorator_1[_0x22d832(0x164)];}}),Object[a9_0x561085(0x159)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x2596f8=a9_0x561085;return decorator_1[_0x2596f8(0x183)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x176),{'enumerable':!![],'get':function(){var _0x230e1c=a9_0x561085;return decorator_1[_0x230e1c(0x176)];}});function a9_0xd1c7(){var _0x5d25f9=['create','__exportStar','4SdLQVZ','Apitest','Config','ExcelService','@midwayjs/decorator','./service/ApitestService','hasOwnProperty','ApiError','ValidatorService','680328HoFJzz','File','Provide','getAppsConfig','Init','EventService','App','__esModule','__createBinding','./decorator/Action','getOwnPropertyDescriptor','call','Files','ScopeEnum','Param','configurable','462318BaScgH','Headers','@anncic-api/validator','./service/ExcelService','QueueService','getRoutes','./exception/ApiError','Action','./decorator/ActionApi','Body','Api','Scope','Fields','ValidatorError','ApiService','30fPHZVI','84779XufHtu','@midwayjs/task','1915857QgbDno','21vXGdCP','prototype','2013600uzlItx','defineProperty','Logger','Inject','394752agIQEr','writable','CacheService','default','./decorator/ActionApitest','./helper/getRoutes','./types/common','get','Query','1320730sBMToV','@anncic-api/event'];a9_0xd1c7=function(){return _0x5d25f9;};return a9_0xd1c7();}var decorator_2=require(a9_0x561085(0x16d));Object[a9_0x561085(0x159)](exports,a9_0x561085(0x178),{'enumerable':!![],'get':function(){var _0x2e6f83=a9_0x561085;return decorator_2[_0x2e6f83(0x178)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x16b),{'enumerable':!![],'get':function(){var _0x2434b2=a9_0x561085;return decorator_2[_0x2434b2(0x16b)];}}),Object['defineProperty'](exports,a9_0x561085(0x15a),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x174),{'enumerable':!![],'get':function(){var _0xf42a2b=a9_0x561085;return decorator_2[_0xf42a2b(0x174)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x15b),{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x14e),{'enumerable':!![],'get':function(){var _0xa82019=a9_0x561085;return decorator_2[_0xa82019(0x14e)];}}),Object[a9_0x561085(0x159)](exports,a9_0x561085(0x17f),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}}),global[a9_0x561085(0x175)]=getAppsConfig_1[a9_0x561085(0x175)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x5964d0=a10_0x2e6f;(function(_0x1f0e17,_0x445519){var _0x4b29ca=a10_0x2e6f,_0x127079=_0x1f0e17();while(!![]){try{var _0x3c4dfb=parseInt(_0x4b29ca(0x12b))/0x1*(parseInt(_0x4b29ca(0x127))/0x2)+parseInt(_0x4b29ca(0x120))/0x3+parseInt(_0x4b29ca(0x12e))/0x4+-parseInt(_0x4b29ca(0x11e))/0x5+parseInt(_0x4b29ca(0x126))/0x6+-parseInt(_0x4b29ca(0x13d))/0x7*(-parseInt(_0x4b29ca(0x12a))/0x8)+-parseInt(_0x4b29ca(0x110))/0x9;if(_0x3c4dfb===_0x445519)break;else _0x127079['push'](_0x127079['shift']());}catch(_0x5bbe8e){_0x127079['push'](_0x127079['shift']());}}}(a10_0x2c06,0xec775));function a10_0x2e6f(_0x3d366c,_0x2c44c0){var _0x2c06a6=a10_0x2c06();return a10_0x2e6f=function(_0x2e6f9d,_0x522c7){_0x2e6f9d=_0x2e6f9d-0x110;var _0x43d219=_0x2c06a6[_0x2e6f9d];return _0x43d219;},a10_0x2e6f(_0x3d366c,_0x2c44c0);}var __decorate=this&&this[a10_0x5964d0(0x133)]||function(_0x4b9478,_0x3e8e2f,_0x25ea3c,_0x2ecc42){var _0x51db69=a10_0x5964d0,_0x310cee=arguments[_0x51db69(0x128)],_0x355301=_0x310cee<0x3?_0x3e8e2f:_0x2ecc42===null?_0x2ecc42=Object[_0x51db69(0x13a)](_0x3e8e2f,_0x25ea3c):_0x2ecc42,_0x23e7c3;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x51db69(0x121))_0x355301=Reflect['decorate'](_0x4b9478,_0x3e8e2f,_0x25ea3c,_0x2ecc42);else{for(var _0x461140=_0x4b9478['length']-0x1;_0x461140>=0x0;_0x461140--)if(_0x23e7c3=_0x4b9478[_0x461140])_0x355301=(_0x310cee<0x3?_0x23e7c3(_0x355301):_0x310cee>0x3?_0x23e7c3(_0x3e8e2f,_0x25ea3c,_0x355301):_0x23e7c3(_0x3e8e2f,_0x25ea3c))||_0x355301;}return _0x310cee>0x3&&_0x355301&&Object[_0x51db69(0x13e)](_0x3e8e2f,_0x25ea3c,_0x355301),_0x355301;},__metadata=this&&this['__metadata']||function(_0x393061,_0x179551){var _0x415c23=a10_0x5964d0;if(typeof Reflect===_0x415c23(0x11c)&&typeof Reflect[_0x415c23(0x136)]==='function')return Reflect['metadata'](_0x393061,_0x179551);};Object[a10_0x5964d0(0x13e)](exports,a10_0x5964d0(0x131),{'value':!![]}),exports[a10_0x5964d0(0x11f)]=void 0x0;function a10_0x2c06(){var _0x24ac3f=['HEADERS_LACK','timeout','getOwnPropertyDescriptor','logintime','config','7xUCQIB','defineProperty','MD5','getcheck','toString','HEADERS_CHECKCODE','anncicapi','devices','Config','device','entries','17733321iyCpJF','password','push','checksign','@midwayjs/decorator','TIMEOUT','fromEntries','crypto-js','HEADERS_SIGNATURE','map','../exception/ApiError','token','object','requesttime','5483110KZFjAJ','ApiService','4483203kNROOr','function','secret=','HEADERS_DEVICE','checkcode','now','2519778GcidFF','4tTTFOo','length','secret','6253656dJOtah','459332tmfmMa','缺少头信息:signature','prototype','1683284fwziYl','design:type','getsign','__esModule','Provide','__decorate','ApiError','Singleton','metadata','toLowerCase'];a10_0x2c06=function(){return _0x24ac3f;};return a10_0x2c06();}const crypto_js_1=require(a10_0x5964d0(0x117)),decorator_1=require(a10_0x5964d0(0x114)),ApiError_1=require(a10_0x5964d0(0x11a));let ApiService=class ApiService{[a10_0x5964d0(0x111)](_0x26c08f){var _0x1c7c61=a10_0x5964d0,_0x4fb465;return _0x26c08f?(0x0,crypto_js_1[_0x1c7c61(0x13f)])(_0x26c08f+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x26c08f)[_0x1c7c61(0x141)]()+((_0x4fb465=this['config'])===null||_0x4fb465===void 0x0?void 0x0:_0x4fb465[_0x1c7c61(0x111)]))[_0x1c7c61(0x141)]())[_0x1c7c61(0x141)]():'';}[a10_0x5964d0(0x140)](_0x4654e0,_0x4e8f82,_0x11e81e=Date[a10_0x5964d0(0x125)]()){var _0x6fe9a0=a10_0x5964d0;return{'Token':_0x4654e0,'Logintime':_0x11e81e,'Checkcode':this[_0x6fe9a0(0x124)](_0x4654e0,_0x4e8f82,_0x11e81e)};}[a10_0x5964d0(0x130)](_0x3f75ec={}){var _0x5a53c9=a10_0x5964d0;const _0x1faaae=[],_0x137ae5=Object[_0x5a53c9(0x116)](Object['entries'](_0x3f75ec)[_0x5a53c9(0x119)](_0x384ae3=>[_0x384ae3[0x0][_0x5a53c9(0x137)](),_0x384ae3[0x1]]));for(let _0x33ee4c of[_0x5a53c9(0x146),_0x5a53c9(0x11d),'token',_0x5a53c9(0x13b),'checkcode']){if(typeof _0x137ae5[_0x33ee4c]=='undefined')throw new AnnError(ApiError_1[_0x5a53c9(0x134)][_0x5a53c9(0x138)],{'message':'缺少头信息:'+_0x33ee4c});_0x1faaae[_0x5a53c9(0x112)](_0x33ee4c+'='+_0x137ae5[_0x33ee4c]);}if(Math['abs'](_0x137ae5[_0x5a53c9(0x11d)])-Date[_0x5a53c9(0x125)]()>this[_0x5a53c9(0x13c)][_0x5a53c9(0x139)])throw new AnnError(ApiError_1[_0x5a53c9(0x134)][_0x5a53c9(0x115)]);if(!this['config'][_0x5a53c9(0x144)][_0x137ae5[_0x5a53c9(0x146)]]||!this[_0x5a53c9(0x13c)][_0x5a53c9(0x144)][_0x137ae5[_0x5a53c9(0x146)]][_0x5a53c9(0x129)]||!this[_0x5a53c9(0x13c)][_0x5a53c9(0x144)][_0x137ae5[_0x5a53c9(0x146)]][_0x5a53c9(0x124)])throw new AnnError(ApiError_1[_0x5a53c9(0x134)]['HEADERS_DEVICE']);if(_0x137ae5[_0x5a53c9(0x11b)]&&_0x137ae5[_0x5a53c9(0x124)]!=this[_0x5a53c9(0x124)](_0x137ae5[_0x5a53c9(0x11b)],_0x137ae5['device'],_0x137ae5[_0x5a53c9(0x13b)]))throw new AnnError(ApiError_1[_0x5a53c9(0x134)][_0x5a53c9(0x142)]);return _0x1faaae['push'](_0x5a53c9(0x122)+this[_0x5a53c9(0x13c)][_0x5a53c9(0x144)][_0x137ae5[_0x5a53c9(0x146)]]['secret']),(0x0,crypto_js_1[_0x5a53c9(0x13f)])(_0x1faaae['sort']()['join'](''))['toString']();}['checkcode'](_0x442d81,_0x3dda87,_0x34c961=Date[a10_0x5964d0(0x125)]()){var _0x16ba81=a10_0x5964d0,_0x148537,_0x50d458,_0x1a30b7;if(!((_0x148537=this['config'])===null||_0x148537===void 0x0?void 0x0:_0x148537[_0x16ba81(0x144)][_0x3dda87])||!((_0x1a30b7=(_0x50d458=this[_0x16ba81(0x13c)])===null||_0x50d458===void 0x0?void 0x0:_0x50d458['devices'][_0x3dda87])===null||_0x1a30b7===void 0x0?void 0x0:_0x1a30b7[_0x16ba81(0x124)]))throw new AnnError(ApiError_1['ApiError'][_0x16ba81(0x123)]);return(0x0,crypto_js_1[_0x16ba81(0x13f)])(_0x442d81+(0x0,crypto_js_1[_0x16ba81(0x13f)])(_0x34c961+this[_0x16ba81(0x13c)]['devices'][_0x3dda87][_0x16ba81(0x124)])[_0x16ba81(0x141)]())[_0x16ba81(0x141)]();}[a10_0x5964d0(0x113)](_0x16dfc8={}){var _0x38b539=a10_0x5964d0;const _0x148c2a=Object[_0x38b539(0x116)](Object[_0x38b539(0x147)](_0x16dfc8)[_0x38b539(0x119)](_0xcfaa1=>[_0xcfaa1[0x0]['toLowerCase'](),_0xcfaa1[0x1]]));if(!(_0x148c2a===null||_0x148c2a===void 0x0?void 0x0:_0x148c2a['signature']))throw new AnnError(ApiError_1['ApiError'][_0x38b539(0x138)],{'message':_0x38b539(0x12c)});if((_0x148c2a===null||_0x148c2a===void 0x0?void 0x0:_0x148c2a['signature'])!=this[_0x38b539(0x130)](_0x148c2a))throw new AnnError(ApiError_1[_0x38b539(0x134)][_0x38b539(0x118)]);return!![];}};__decorate([(0x0,decorator_1[a10_0x5964d0(0x145)])(a10_0x5964d0(0x143)),__metadata(a10_0x5964d0(0x12f),Object)],ApiService[a10_0x5964d0(0x12d)],'config',void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x5964d0(0x132)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum'][a10_0x5964d0(0x135)])],ApiService),exports[a10_0x5964d0(0x11f)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0xb89066=a11_0x1eae;(function(_0x477f3b,_0x599736){const _0x4cb47b=a11_0x1eae,_0x4dbec0=_0x477f3b();while(!![]){try{const _0x4e467e=parseInt(_0x4cb47b(0x104))/0x1*(parseInt(_0x4cb47b(0xf4))/0x2)+-parseInt(_0x4cb47b(0x109))/0x3+-parseInt(_0x4cb47b(0x100))/0x4+-parseInt(_0x4cb47b(0xec))/0x5+parseInt(_0x4cb47b(0xf1))/0x6+-parseInt(_0x4cb47b(0x11c))/0x7*(parseInt(_0x4cb47b(0xe7))/0x8)+parseInt(_0x4cb47b(0xed))/0x9*(parseInt(_0x4cb47b(0xfc))/0xa);if(_0x4e467e===_0x599736)break;else _0x4dbec0['push'](_0x4dbec0['shift']());}catch(_0x4d1dae){_0x4dbec0['push'](_0x4dbec0['shift']());}}}(a11_0x1693,0x1a940));var __decorate=this&&this[a11_0xb89066(0x115)]||function(_0x4e80b3,_0x49def0,_0x297e1d,_0x2a0c69){const _0x1dacf2=a11_0xb89066;var _0x937787=arguments[_0x1dacf2(0x11b)],_0x568012=_0x937787<0x3?_0x49def0:_0x2a0c69===null?_0x2a0c69=Object[_0x1dacf2(0x10b)](_0x49def0,_0x297e1d):_0x2a0c69,_0x12929c;if(typeof Reflect==='object'&&typeof Reflect[_0x1dacf2(0x111)]===_0x1dacf2(0x10f))_0x568012=Reflect[_0x1dacf2(0x111)](_0x4e80b3,_0x49def0,_0x297e1d,_0x2a0c69);else{for(var _0x94b840=_0x4e80b3[_0x1dacf2(0x11b)]-0x1;_0x94b840>=0x0;_0x94b840--)if(_0x12929c=_0x4e80b3[_0x94b840])_0x568012=(_0x937787<0x3?_0x12929c(_0x568012):_0x937787>0x3?_0x12929c(_0x49def0,_0x297e1d,_0x568012):_0x12929c(_0x49def0,_0x297e1d))||_0x568012;}return _0x937787>0x3&&_0x568012&&Object[_0x1dacf2(0x107)](_0x49def0,_0x297e1d,_0x568012),_0x568012;},__metadata=this&&this[a11_0xb89066(0x10d)]||function(_0x5f5be2,_0x5d546f){const _0x45003b=a11_0xb89066;if(typeof Reflect===_0x45003b(0x101)&&typeof Reflect['metadata']===_0x45003b(0x10f))return Reflect[_0x45003b(0xd4)](_0x5f5be2,_0x5d546f);},__param=this&&this[a11_0xb89066(0x110)]||function(_0x10ee84,_0x1cb411){return function(_0x293917,_0x2399f0){_0x1cb411(_0x293917,_0x2399f0,_0x10ee84);};};Object[a11_0xb89066(0x107)](exports,a11_0xb89066(0xea),{'value':!![]}),exports[a11_0xb89066(0xf2)]=exports[a11_0xb89066(0xfe)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a11_0xb89066(0xda)),decorator_2=require(a11_0xb89066(0xda)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a11_0xb89066(0x117)](_0x3409c5){const _0x27a676=a11_0xb89066,_0x46c9d2=(0x0,getRoutes_1[_0x27a676(0xef)])(_0x3409c5),_0x2d5177=[];for(let _0x48fc7c in _0x46c9d2){for(let _0x92e086 in _0x46c9d2[_0x48fc7c][_0x27a676(0xe4)]){let _0x4291d7=_0x46c9d2[_0x48fc7c][_0x27a676(0xe4)][_0x92e086],_0x4b602f=[];for(let _0x24f043 in _0x4291d7['request']){_0x4b602f[_0x27a676(0xdc)](_0x4291d7[_0x27a676(0x102)][_0x24f043]);}_0x2d5177[_0x27a676(0xdc)]({'title':_0x46c9d2[_0x48fc7c]['summary']+':'+_0x4291d7[_0x27a676(0xd6)],'prefix':_0x46c9d2[_0x48fc7c][_0x27a676(0xfa)],'router':_0x4291d7[_0x27a676(0xee)],'method':_0x4291d7[_0x27a676(0x112)],'describe':_0x4291d7[_0x27a676(0xf7)]||'','filepath':_0x46c9d2[_0x48fc7c][_0x27a676(0x10c)]||'','request':_0x4b602f});}}const _0x309c25=(0x0,path_1[_0x27a676(0xfb)])(__dirname,_0x27a676(0x105));return(0x0,fs_1['readFileSync'])(_0x309c25,{'encoding':_0x27a676(0xe1)})[_0x27a676(0x113)](/__res__/g,_0x27a676(0xdf))[_0x27a676(0x113)](_0x27a676(0x103),JSON[_0x27a676(0x10a)](_0x2d5177))[_0x27a676(0x113)](_0x27a676(0xcd),JSON[_0x27a676(0x10a)](this[_0x27a676(0xd8)][_0x27a676(0xe8)]));}};__decorate([(0x0,decorator_2['Config'])('anncicapi'),__metadata(a11_0xb89066(0xd3),Object)],ApitestService[a11_0xb89066(0xe3)],a11_0xb89066(0xd8),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])('apitest'),(0x0,decorator_2[a11_0xb89066(0xf6)])(decorator_2[a11_0xb89066(0xe6)][a11_0xb89066(0xd2)])],ApitestService),exports[a11_0xb89066(0xfe)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0xb89066(0xe9)](){const _0x32371a=a11_0xb89066;if(this[_0x32371a(0xf3)]){const _0xb4278b={'module':![]};return this[_0x32371a(0xe2)]['isDevelopmentEnvironment']()&&(_0xb4278b[_0x32371a(0x10c)]=!![]),await this[_0x32371a(0xfe)]['apidoc'](_0xb4278b);}return'';}async[a11_0xb89066(0xf0)](_0x926b31){const _0x4a826c=a11_0xb89066;if(this[_0x4a826c(0xf3)]){const _0x13f861={'module':_0x926b31};return this[_0x4a826c(0xe2)][_0x4a826c(0xd7)]()&&(_0x13f861[_0x4a826c(0x10c)]=!![]),await this['ApitestService'][_0x4a826c(0x117)](_0x13f861);}return'';}async[a11_0xb89066(0xd5)](){const _0x4b3d50=a11_0xb89066;if((0x0,path_1[_0x4b3d50(0xde)])(this[_0x4b3d50(0x106)][_0x4b3d50(0x102)][_0x4b3d50(0xfd)])){var _0x210d7f=(0x0,path_1['join'])(__dirname,'../../public/'+this[_0x4b3d50(0x106)][_0x4b3d50(0x102)][_0x4b3d50(0xfd)][_0x4b3d50(0x113)](_0x4b3d50(0xdf),'/'));if(_0x210d7f[_0x4b3d50(0x118)](_0x210d7f[_0x4b3d50(0x11b)]-0xb)!=_0x4b3d50(0xe0)){this[_0x4b3d50(0x106)][_0x4b3d50(0x114)](_0x4b3d50(0x108),'public,\x20max-age=604800');if((0x0,path_1[_0x4b3d50(0xde)])(this['ctx']['request']['url'])==_0x4b3d50(0xeb))this['ctx'][_0x4b3d50(0x114)]('content-type',_0x4b3d50(0xdd));else(0x0,path_1[_0x4b3d50(0xde)])(this['ctx'][_0x4b3d50(0x102)][_0x4b3d50(0xfd)])==_0x4b3d50(0xce)&&this['ctx'][_0x4b3d50(0x114)](_0x4b3d50(0x11a),_0x4b3d50(0xf5));return(0x0,fs_1['existsSync'])(_0x210d7f)&&(0x0,fs_1[_0x4b3d50(0xf9)])(_0x210d7f,{'encoding':'utf-8'});}}return'';}};function a11_0x1eae(_0x150573,_0x2031b1){const _0x1693a2=a11_0x1693();return a11_0x1eae=function(_0x1eae9c,_0x12bac2){_0x1eae9c=_0x1eae9c-0xcd;let _0x253ccd=_0x1693a2[_0x1eae9c];return _0x253ccd;},a11_0x1eae(_0x150573,_0x2031b1);}__decorate([(0x0,decorator_2[a11_0xb89066(0x119)])(),__metadata(a11_0xb89066(0xd3),Object)],ApitestStaticController[a11_0xb89066(0xe3)],'ctx',void 0x0),__decorate([(0x0,decorator_2[a11_0xb89066(0x119)])(),__metadata(a11_0xb89066(0xd3),core_1[a11_0xb89066(0xd1)])],ApitestStaticController[a11_0xb89066(0xe3)],a11_0xb89066(0xe2),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0xb89066(0xe3)],a11_0xb89066(0xfe),void 0x0),__decorate([(0x0,decorator_2[a11_0xb89066(0xd0)])('apitest'),__metadata(a11_0xb89066(0xd3),Boolean)],ApitestStaticController[a11_0xb89066(0xe3)],'apitest',void 0x0),__decorate([(0x0,decorator_2[a11_0xb89066(0xd0)])(a11_0xb89066(0xdb)),__metadata(a11_0xb89066(0xd3),Object)],ApitestStaticController[a11_0xb89066(0xe3)],a11_0xb89066(0xd8),void 0x0),__decorate([(0x0,decorator_1[a11_0xb89066(0xcf)])('/apitest'),__metadata(a11_0xb89066(0xd3),Function),__metadata(a11_0xb89066(0xff),[]),__metadata(a11_0xb89066(0xf8),Promise)],ApitestStaticController[a11_0xb89066(0xe3)],a11_0xb89066(0xe9),null),__decorate([(0x0,decorator_1[a11_0xb89066(0xcf)])(a11_0xb89066(0xe5)),__param(0x0,(0x0,decorator_1[a11_0xb89066(0x10e)])(a11_0xb89066(0x116))),__metadata(a11_0xb89066(0xd3),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0xb89066(0xf8),Promise)],ApitestStaticController[a11_0xb89066(0xe3)],'apitestmodule',null),__decorate([(0x0,decorator_1[a11_0xb89066(0xcf)])('/apiteststatic/*'),__metadata(a11_0xb89066(0xd3),Function),__metadata(a11_0xb89066(0xff),[]),__metadata(a11_0xb89066(0xf8),Promise)],ApitestStaticController['prototype'],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2['Scope'])(decorator_2['ScopeEnum'][a11_0xb89066(0xd9)])],ApitestStaticController),exports[a11_0xb89066(0xf2)]=ApitestStaticController;function a11_0x1693(){const _0x385981=['/apiteststatic/','/index.html','utf-8','Environment','prototype','routes','/apitest-:module','ScopeEnum','6568yLHeqs','devices','apitesthtml','__esModule','.js','1060745KRWAWz','9uzoSwi','route','getRoutes','apitestmodule','827124aXJOXt','ApitestStaticController','apitest','16uZAuIz','text/css;\x20charset=utf-8','Scope','description','design:returntype','readFileSync','prefix','join','6074930KPfjeZ','url','ApitestService','design:paramtypes','578552VVHXup','object','request','__apiList__','12386yyBhmm','../../public/index.html','ctx','defineProperty','cache-control','599418IMPZuq','stringify','getOwnPropertyDescriptor','filepath','__metadata','Param','function','__param','decorate','method','replace','set','__decorate','module','apidoc','substring','Inject','content-type','length','1526bymVXS','__devices__','.css','Get','Config','MidwayEnvironmentService','Singleton','design:type','metadata','apiteststatic','summary','isDevelopmentEnvironment','config','Request','@midwayjs/decorator','anncicapi','push','application/javascript;\x20charset=utf-8','extname'];a11_0x1693=function(){return _0x385981;};return a11_0x1693();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x15c878=a12_0x36e7;(function(_0x54f65a,_0x4fbfda){const _0xc2d29=a12_0x36e7,_0x171d1c=_0x54f65a();while(!![]){try{const _0x3f8e6=-parseInt(_0xc2d29(0x1ac))/0x1*(-parseInt(_0xc2d29(0x1a1))/0x2)+parseInt(_0xc2d29(0x1b8))/0x3+parseInt(_0xc2d29(0x1a9))/0x4*(parseInt(_0xc2d29(0x190))/0x5)+parseInt(_0xc2d29(0x17e))/0x6*(-parseInt(_0xc2d29(0x19f))/0x7)+-parseInt(_0xc2d29(0x197))/0x8*(parseInt(_0xc2d29(0x178))/0x9)+parseInt(_0xc2d29(0x195))/0xa+-parseInt(_0xc2d29(0x1a6))/0xb*(parseInt(_0xc2d29(0x18d))/0xc);if(_0x3f8e6===_0x4fbfda)break;else _0x171d1c['push'](_0x171d1c['shift']());}catch(_0x888e78){_0x171d1c['push'](_0x171d1c['shift']());}}}(a12_0x20ab,0xf36e1));var __decorate=this&&this[a12_0x15c878(0x1a2)]||function(_0x2343b0,_0x5e1d5d,_0x59ee1c,_0x55a7fa){const _0x26a1de=a12_0x15c878;var _0x55ac43=arguments['length'],_0x31dd3e=_0x55ac43<0x3?_0x5e1d5d:_0x55a7fa===null?_0x55a7fa=Object[_0x26a1de(0x180)](_0x5e1d5d,_0x59ee1c):_0x55a7fa,_0x9b2fcf;if(typeof Reflect===_0x26a1de(0x19c)&&typeof Reflect[_0x26a1de(0x1b4)]===_0x26a1de(0x17b))_0x31dd3e=Reflect[_0x26a1de(0x1b4)](_0x2343b0,_0x5e1d5d,_0x59ee1c,_0x55a7fa);else{for(var _0x4aab0a=_0x2343b0[_0x26a1de(0x1bc)]-0x1;_0x4aab0a>=0x0;_0x4aab0a--)if(_0x9b2fcf=_0x2343b0[_0x4aab0a])_0x31dd3e=(_0x55ac43<0x3?_0x9b2fcf(_0x31dd3e):_0x55ac43>0x3?_0x9b2fcf(_0x5e1d5d,_0x59ee1c,_0x31dd3e):_0x9b2fcf(_0x5e1d5d,_0x59ee1c))||_0x31dd3e;}return _0x55ac43>0x3&&_0x31dd3e&&Object[_0x26a1de(0x181)](_0x5e1d5d,_0x59ee1c,_0x31dd3e),_0x31dd3e;},__metadata=this&&this[a12_0x15c878(0x1af)]||function(_0x21e860,_0x209cf4){const _0x43755c=a12_0x15c878;if(typeof Reflect==='object'&&typeof Reflect[_0x43755c(0x1a4)]==='function')return Reflect[_0x43755c(0x1a4)](_0x21e860,_0x209cf4);};Object['defineProperty'](exports,a12_0x15c878(0x18a),{'value':!![]}),exports[a12_0x15c878(0x18f)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x15c878(0x1ba)),koasend=require(a12_0x15c878(0x196)),decorator_1=require(a12_0x15c878(0x187));let ExcelService=class ExcelService{async[a12_0x15c878(0x1a8)](_0x3a2bf9,_0x417f29,_0x585aee=[0x0]){const _0x1fabab=a12_0x15c878;var _0x24e214,_0x2e9e45;const _0x324313=new exceljs[(_0x1fabab(0x19d))](),_0x55e606=[];let _0x3aa148=_0x3a2bf9[_0x1fabab(0x1b3)](/(\\|\/)/g,'/')[_0x1fabab(0x1b3)](/\/{2,}/g,'/');!(_0x3aa148===null||_0x3aa148===void 0x0?void 0x0:_0x3aa148['startsWith']('/'))&&(_0x3aa148=this[_0x1fabab(0x1b2)]['getAppDir']()+'/'+_0x3aa148);try{await _0x324313[_0x1fabab(0x179)][_0x1fabab(0x1b5)](_0x3aa148);}catch(_0x2d2ffd){return console[_0x1fabab(0x1b9)](_0x1fabab(0x184)+_0x3aa148+_0x1fabab(0x1a0)),_0x55e606;}for(const _0x57ea6f of _0x585aee){const _0x89f472=lodash[_0x1fabab(0x1a7)](_0x57ea6f)?((_0x24e214=_0x324313[_0x1fabab(0x1b0)])===null||_0x24e214===void 0x0?void 0x0:_0x24e214[_0x57ea6f])||undefined:_0x324313[_0x1fabab(0x18b)](_0x57ea6f);if(_0x89f472){var _0x2082da=0x1;const _0x45c47b=_0x89f472['getRow'](0x1),_0x1b2ef9=await new Promise(_0x43f925=>{const _0x2a0164=_0x1fabab,_0x525549={};_0x45c47b[_0x2a0164(0x1aa)]((_0x937b32,_0x2df536)=>{const _0x151af1=_0x2a0164;for(const _0x17fb70 of _0x417f29){if(_0x937b32[_0x151af1(0x17c)]==_0x17fb70['header'])_0x2082da=0x2,_0x525549[_0x17fb70[_0x151af1(0x18c)]]={'header':_0x937b32[_0x151af1(0x192)],'handler':_0x17fb70[_0x151af1(0x1bb)]};else{if(!_0x525549[_0x17fb70[_0x151af1(0x18c)]])try{const _0x16683b=_0x45c47b[_0x151af1(0x191)](_0x17fb70[_0x151af1(0x189)]);_0x16683b&&(_0x525549[_0x17fb70[_0x151af1(0x18c)]]={'header':_0x16683b[_0x151af1(0x192)],'handler':_0x17fb70[_0x151af1(0x1bb)]});}catch{}}}_0x45c47b['cellCount']==_0x2df536&&_0x43f925(_0x525549);});});for(const _0x20435a of _0x89f472[_0x1fabab(0x1ab)](_0x2082da,_0x89f472['rowCount'])){const _0x972e4e={};for(const _0x4c0fde in _0x1b2ef9){_0x1b2ef9[_0x4c0fde]['header']&&(typeof((_0x2e9e45=_0x1b2ef9[_0x4c0fde])===null||_0x2e9e45===void 0x0?void 0x0:_0x2e9e45[_0x1fabab(0x1bb)])=='function'?_0x972e4e[_0x4c0fde]=_0x1b2ef9[_0x4c0fde][_0x1fabab(0x1bb)](_0x20435a[_0x1fabab(0x191)](lodash[_0x1fabab(0x1a5)](''+_0x1b2ef9[_0x4c0fde][_0x1fabab(0x189)],'\x20'))['toString']()):_0x972e4e[_0x4c0fde]=_0x20435a[_0x1fabab(0x191)](_0x1b2ef9[_0x4c0fde]['header'])[_0x1fabab(0x198)]());}Object[_0x1fabab(0x185)](_0x972e4e)[_0x1fabab(0x1bc)]>0x0&&_0x55e606['push'](_0x972e4e);}}}return _0x55e606;}async[a12_0x15c878(0x17d)](_0x1f851c,_0x5d4aa6,_0x20cd34,_0x133fe4=a12_0x15c878(0x1b7)){const _0x518a37=a12_0x15c878;var _0x2233ca,_0x2e67b4;const _0x5cc6a8=new exceljs[(_0x518a37(0x19d))](),_0x19eb40={},_0x4c811d=[],_0x1d2ce8=_0x5cc6a8[_0x518a37(0x182)](_0x518a37(0x1be),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0xaef64 in _0x5d4aa6){_0x19eb40[_0x5d4aa6[_0xaef64][_0x518a37(0x18c)]]=_0x5d4aa6[_0xaef64]['header'],_0x4c811d[_0x518a37(0x1ad)]({'header':_0x5d4aa6[_0xaef64]['header'],'key':(_0x2233ca=_0x5d4aa6[_0xaef64])===null||_0x2233ca===void 0x0?void 0x0:_0x2233ca[_0x518a37(0x18c)][_0x518a37(0x1b3)](/\./g,'_')});}_0x1d2ce8[_0x518a37(0x19e)]=_0x4c811d;for(const _0x15f710 of _0x20cd34){const _0x25998a={};for(const _0x7ae0f9 in _0x5d4aa6){typeof((_0x2e67b4=_0x5d4aa6[_0x7ae0f9])===null||_0x2e67b4===void 0x0?void 0x0:_0x2e67b4[_0x518a37(0x1bb)])=='function'?_0x25998a[_0x5d4aa6[_0x7ae0f9][_0x518a37(0x18c)]['replace'](/\./g,'_')]=await _0x5d4aa6[_0x7ae0f9][_0x518a37(0x1bb)](_0x15f710):_0x25998a[_0x5d4aa6[_0x7ae0f9]['key'][_0x518a37(0x1b3)](/\./g,'_')]=lodash[_0x518a37(0x183)](_0x15f710,_0x5d4aa6[_0x7ae0f9][_0x518a37(0x18c)],'');}_0x1d2ce8[_0x518a37(0x188)](_0x25998a);}let _0x1d8e2b='';const _0x4f2fab=_0x1f851c+'-'+lodash['random'](0x2710,0x1869f)+_0x518a37(0x19b);if(_0x133fe4&&_0x133fe4[_0x518a37(0x1b1)]('/'))_0x1d8e2b=_0x133fe4+'/'+_0x4f2fab;else _0x133fe4&&!_0x133fe4[_0x518a37(0x1b1)]('/')&&!_0x133fe4[_0x518a37(0x1b1)]('\x5c')?_0x1d8e2b=this['app'][_0x518a37(0x193)]()+'/'+_0x133fe4+'/'+_0x4f2fab:_0x1d8e2b=this[_0x518a37(0x1b2)][_0x518a37(0x193)]()+_0x518a37(0x17a);return(_0x1d8e2b['endsWith']('/')||_0x1d8e2b[_0x518a37(0x186)]('\x5c'))&&(_0x1d8e2b=_0x1d8e2b['substring'](0x0,_0x1d8e2b[_0x518a37(0x1bc)]-0x1)),_0x1d8e2b=_0x1d8e2b[_0x518a37(0x1b3)](/(\\|\/)/g,'/')[_0x518a37(0x1b3)](/\/{2,}/g,'/'),!fs[_0x518a37(0x1a3)](_0x1d8e2b)&&fs[_0x518a37(0x1b6)](_0x1d8e2b,{'recursive':!![]}),await _0x5cc6a8[_0x518a37(0x179)][_0x518a37(0x1bd)]((_0x1d8e2b+'/'+_0x4f2fab)['replace'](/(\\|\/)/g,'/')[_0x518a37(0x1b3)](/\/{2,}/g,'/')),{'filename':_0x4f2fab,'filepath':_0x1d8e2b};}async[a12_0x15c878(0x199)](_0x1667f0,_0x535e4e){await koasend(_0x1667f0,'/public/xlsx/'+_0x535e4e);}};function a12_0x36e7(_0x125586,_0x937771){const _0x20ab58=a12_0x20ab();return a12_0x36e7=function(_0x36e7de,_0x116ad9){_0x36e7de=_0x36e7de-0x178;let _0x31dcee=_0x20ab58[_0x36e7de];return _0x31dcee;},a12_0x36e7(_0x125586,_0x937771);}__decorate([(0x0,decorator_1[a12_0x15c878(0x19a)])(),__metadata(a12_0x15c878(0x18e),Object)],ExcelService['prototype'],a12_0x15c878(0x1b2),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x15c878(0x1ae)])(),(0x0,decorator_1[a12_0x15c878(0x194)])(decorator_1[a12_0x15c878(0x17f)]['Singleton'])],ExcelService),exports[a12_0x15c878(0x18f)]=ExcelService;function a12_0x20ab(){const _0x5e58ba=['3238806Ihfgid','log','exceljs','handler','length','writeFile','Sheet\x201','1926jbdJOR','xlsx','/public/xlsx','function','value','export','437604MMLsVZ','ScopeEnum','getOwnPropertyDescriptor','defineProperty','addWorksheet','get','Api\x20Excel\x20Error:\x20','keys','endsWith','@midwayjs/decorator','addRow','header','__esModule','getWorksheet','key','3083268zeKzwn','design:type','ExcelService','143450Ittngd','getCell','col','getAppDir','Scope','17858600ITQJzH','koa-send','53856lPILab','toString','download','App','.xlsx','object','Workbook','columns','119jbUoco','\x20is\x20read\x20fail','1332322tqGlzQ','__decorate','existsSync','metadata','trim','22aquRJK','isNumber','parse','92znCmKC','eachCell','findRows','1fBtKjM','push','Provide','__metadata','worksheets','startsWith','app','replace','decorate','readFile','mkdirSync','public/xlsx'];a12_0x20ab=function(){return _0x5e58ba;};return a12_0x20ab();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a13_0x4cdf(){var _0x119098=['__esModule','47645tnBBAQ','793368kocYgV','ACTION_ROUTE_KEY','anncic-api:apps:config','anncic-api:action','APPSCONFIG_KEY','612FwVtJf','580329KjRVhl','anncic-api:action:route','14838gqpduK','AppsConfigTmp','2593206cccCPq','1172996KiCRtj','2078000ApNWcN','ACTION_KEY','81EqDKnu'];a13_0x4cdf=function(){return _0x119098;};return a13_0x4cdf();}var a13_0x310d03=a13_0x3f5f;function a13_0x3f5f(_0x1d5b11,_0x555877){var _0x4cdf77=a13_0x4cdf();return a13_0x3f5f=function(_0x3f5ffb,_0x150c2d){_0x3f5ffb=_0x3f5ffb-0x186;var _0x3b1799=_0x4cdf77[_0x3f5ffb];return _0x3b1799;},a13_0x3f5f(_0x1d5b11,_0x555877);}(function(_0x25c9d6,_0x46cf9a){var _0x1a5297=a13_0x3f5f,_0x3226e2=_0x25c9d6();while(!![]){try{var _0xccdbc1=-parseInt(_0x1a5297(0x192))/0x1+-parseInt(_0x1a5297(0x194))/0x2*(parseInt(_0x1a5297(0x189))/0x3)+parseInt(_0x1a5297(0x186))/0x4+-parseInt(_0x1a5297(0x18b))/0x5*(-parseInt(_0x1a5297(0x191))/0x6)+parseInt(_0x1a5297(0x196))/0x7+-parseInt(_0x1a5297(0x187))/0x8+-parseInt(_0x1a5297(0x18c))/0x9;if(_0xccdbc1===_0x46cf9a)break;else _0x3226e2['push'](_0x3226e2['shift']());}catch(_0x2aafe6){_0x3226e2['push'](_0x3226e2['shift']());}}}(a13_0x4cdf,0x7bcf1));Object['defineProperty'](exports,a13_0x310d03(0x18a),{'value':!![]}),exports[a13_0x310d03(0x195)]=exports[a13_0x310d03(0x190)]=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a13_0x310d03(0x188)]=a13_0x310d03(0x18f),exports[a13_0x310d03(0x18d)]=a13_0x310d03(0x193),exports[a13_0x310d03(0x190)]=a13_0x310d03(0x18e);class AppsConfigTmp{}exports[a13_0x310d03(0x195)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x402f3f=a14_0x270c;function a14_0x5c33(){var _0x121a5a=['72129TTRJQs','RuleType','trim','min','136dRjtJf','_order','排序方式','_size','integer','decorate','string','分页数量','metadata','__esModule','652qSoZHp','6364260rlpYJu','__metadata','number','383625CFCsoO','__decorate','Rule','getOwnPropertyDescriptor','_page','1:是;0:否','@anncic-api/validator','625824zciMOO','design:type','length','PageDTO','6335rANsJp','110WjhVoM','8511012ZfRJif','12892010RKfXPc','是否倒序','prototype','defineProperty','第一页为1,第二页为2'];a14_0x5c33=function(){return _0x121a5a;};return a14_0x5c33();}(function(_0xf87662,_0x2b6602){var _0x2dc41a=a14_0x270c,_0x4d3a30=_0xf87662();while(!![]){try{var _0x39d29a=-parseInt(_0x2dc41a(0x18d))/0x1+parseInt(_0x2dc41a(0x192))/0x2*(parseInt(_0x2dc41a(0x174))/0x3)+-parseInt(_0x2dc41a(0x182))/0x4*(-parseInt(_0x2dc41a(0x191))/0x5)+-parseInt(_0x2dc41a(0x193))/0x6+parseInt(_0x2dc41a(0x183))/0x7+parseInt(_0x2dc41a(0x178))/0x8*(-parseInt(_0x2dc41a(0x186))/0x9)+parseInt(_0x2dc41a(0x194))/0xa;if(_0x39d29a===_0x2b6602)break;else _0x4d3a30['push'](_0x4d3a30['shift']());}catch(_0x284798){_0x4d3a30['push'](_0x4d3a30['shift']());}}}(a14_0x5c33,0xe9f6c));var __decorate=this&&this[a14_0x402f3f(0x187)]||function(_0xaa88b0,_0x40d75d,_0x16a945,_0x12db21){var _0x131bee=a14_0x402f3f,_0x4142f3=arguments[_0x131bee(0x18f)],_0x379f02=_0x4142f3<0x3?_0x40d75d:_0x12db21===null?_0x12db21=Object[_0x131bee(0x189)](_0x40d75d,_0x16a945):_0x12db21,_0x55a27c;if(typeof Reflect==='object'&&typeof Reflect[_0x131bee(0x17d)]==='function')_0x379f02=Reflect[_0x131bee(0x17d)](_0xaa88b0,_0x40d75d,_0x16a945,_0x12db21);else{for(var _0x550b18=_0xaa88b0[_0x131bee(0x18f)]-0x1;_0x550b18>=0x0;_0x550b18--)if(_0x55a27c=_0xaa88b0[_0x550b18])_0x379f02=(_0x4142f3<0x3?_0x55a27c(_0x379f02):_0x4142f3>0x3?_0x55a27c(_0x40d75d,_0x16a945,_0x379f02):_0x55a27c(_0x40d75d,_0x16a945))||_0x379f02;}return _0x4142f3>0x3&&_0x379f02&&Object[_0x131bee(0x172)](_0x40d75d,_0x16a945,_0x379f02),_0x379f02;},__metadata=this&&this[a14_0x402f3f(0x184)]||function(_0x4d29a6,_0x42915b){var _0x4fdbac=a14_0x402f3f;if(typeof Reflect==='object'&&typeof Reflect[_0x4fdbac(0x180)]==='function')return Reflect[_0x4fdbac(0x180)](_0x4d29a6,_0x42915b);};function a14_0x270c(_0xd58269,_0x103436){var _0x5c3323=a14_0x5c33();return a14_0x270c=function(_0x270c64,_0x540f82){_0x270c64=_0x270c64-0x171;var _0x4af011=_0x5c3323[_0x270c64];return _0x4af011;},a14_0x270c(_0xd58269,_0x103436);}Object[a14_0x402f3f(0x172)](exports,a14_0x402f3f(0x181),{'value':!![]}),exports[a14_0x402f3f(0x190)]=void 0x0;const validator_1=require(a14_0x402f3f(0x18c));class PageDTO{}__decorate([(0x0,validator_1[a14_0x402f3f(0x188)])('分页',validator_1['RuleType'][a14_0x402f3f(0x185)]()[a14_0x402f3f(0x17c)]()[a14_0x402f3f(0x177)](0x1),a14_0x402f3f(0x173)),__metadata('design:type',Number)],PageDTO[a14_0x402f3f(0x171)],a14_0x402f3f(0x18a),void 0x0),__decorate([(0x0,validator_1[a14_0x402f3f(0x188)])(a14_0x402f3f(0x17f),validator_1[a14_0x402f3f(0x175)][a14_0x402f3f(0x185)]()[a14_0x402f3f(0x17c)]()[a14_0x402f3f(0x177)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x402f3f(0x171)],a14_0x402f3f(0x17b),void 0x0),__decorate([(0x0,validator_1[a14_0x402f3f(0x188)])(a14_0x402f3f(0x17a),validator_1[a14_0x402f3f(0x175)][a14_0x402f3f(0x17e)]()[a14_0x402f3f(0x176)]()),__metadata(a14_0x402f3f(0x18e),String)],PageDTO[a14_0x402f3f(0x171)],a14_0x402f3f(0x179),void 0x0),__decorate([(0x0,validator_1[a14_0x402f3f(0x188)])(a14_0x402f3f(0x195),validator_1[a14_0x402f3f(0x175)][a14_0x402f3f(0x185)]()[a14_0x402f3f(0x17c)]()['valid'](0x0,0x1),a14_0x402f3f(0x18b)),__metadata(a14_0x402f3f(0x18e),Number)],PageDTO['prototype'],'_isreverse',void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
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.21",
|
|
21
|
+
"@anncic-api/core": "^1.1.21",
|
|
22
|
+
"@anncic-api/event": "^1.1.21",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.21",
|
|
24
|
+
"@anncic-api/validator": "^1.1.21",
|
|
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.21",
|
|
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": "4946b752735d6323795e5e2734d3a2cfa47f1b78"
|
|
45
43
|
}
|