anncic-api 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x5935ae=a0_0x2582;function a0_0x2582(_0xab2e8,_0x1d4f54){var _0x130d99=a0_0x130d();return a0_0x2582=function(_0x25827c,_0x56d041){_0x25827c=_0x25827c-0x1c7;var _0x34e4dc=_0x130d99[_0x25827c];return _0x34e4dc;},a0_0x2582(_0xab2e8,_0x1d4f54);}(function(_0x53803c,_0xcd3a9){var _0x4722d9=a0_0x2582,_0x2c800c=_0x53803c();while(!![]){try{var _0x99f36d=parseInt(_0x4722d9(0x1c7))/0x1*(parseInt(_0x4722d9(0x1d5))/0x2)+-parseInt(_0x4722d9(0x1d9))/0x3*(parseInt(_0x4722d9(0x1ce))/0x4)+-parseInt(_0x4722d9(0x1d3))/0x5+-parseInt(_0x4722d9(0x1d4))/0x6+-parseInt(_0x4722d9(0x1cf))/0x7*(-parseInt(_0x4722d9(0x1d0))/0x8)+-parseInt(_0x4722d9(0x1cc))/0x9*(parseInt(_0x4722d9(0x1d2))/0xa)+parseInt(_0x4722d9(0x1d1))/0xb;if(_0x99f36d===_0xcd3a9)break;else _0x2c800c['push'](_0x2c800c['shift']());}catch(_0x33ada3){_0x2c800c['push'](_0x2c800c['shift']());}}}(a0_0x130d,0x55a82));Object[a0_0x5935ae(0x1cd)](exports,a0_0x5935ae(0x1cb),{'value':!![]}),exports[a0_0x5935ae(0x1d6)]=_0x492c2b=>{var _0x20ad8e=a0_0x5935ae;return{'apitest':!![],'keys':_0x492c2b[_0x20ad8e(0x1c8)],'anncicapi':{'timeout':0x1388,'password':_0x20ad8e(0x1d8),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x20ad8e(0x1c9)}}},'upload':{'tmpdir':_0x492c2b[_0x20ad8e(0x1ca)]+_0x20ad8e(0x1d7),'cleanTimeout':0x5265c00}};};function a0_0x130d(){var _0x9728d4=['zhiulanuiy7892387985hnoi','33ZHFXeM','1013BnFewm','name','dhauo1234420123gg3234901','appDir','__esModule','9DggziR','defineProperty','214772frLXxn','77021PgPuAZ','376QTlNmx','10738563gUpbJz','804740RWhsPQ','1687225MDQAPm','2226144TakiEF','468eLHZwR','default','/runtime/.upload'];a0_0x130d=function(){return _0x9728d4;};return a0_0x130d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0x17a6(_0x24405c,_0x2b37a3){var _0xe47a9f=a1_0xe47a();return a1_0x17a6=function(_0x17a63c,_0x3a2dc7){_0x17a63c=_0x17a63c-0x1ab;var _0x3cf1fa=_0xe47a9f[_0x17a63c];return _0x3cf1fa;},a1_0x17a6(_0x24405c,_0x2b37a3);}var a1_0x44a91e=a1_0x17a6;(function(_0xcae403,_0x21cc43){var _0x4c8052=a1_0x17a6,_0x1b3611=_0xcae403();while(!![]){try{var _0x44549d=-parseInt(_0x4c8052(0x1b6))/0x1+-parseInt(_0x4c8052(0x1b4))/0x2+parseInt(_0x4c8052(0x1b3))/0x3*(parseInt(_0x4c8052(0x1af))/0x4)+parseInt(_0x4c8052(0x1b7))/0x5*(parseInt(_0x4c8052(0x1ae))/0x6)+-parseInt(_0x4c8052(0x1ab))/0x7*(parseInt(_0x4c8052(0x1b1))/0x8)+parseInt(_0x4c8052(0x1ad))/0x9*(parseInt(_0x4c8052(0x1b0))/0xa)+parseInt(_0x4c8052(0x1ac))/0xb;if(_0x44549d===_0x21cc43)break;else _0x1b3611['push'](_0x1b3611['shift']());}catch(_0x7804a2){_0x1b3611['push'](_0x1b3611['shift']());}}}(a1_0xe47a,0x22bd6));function a1_0xe47a(){var _0x1c7e14=['3133713ayTjCf','81WydiiZ','12gZABwW','236WcQUSn','51340ZITnpG','104DMeQvP','defineProperty','5703NEKwVn','481258oYWqVW','default','244193pCTFvF','462075fDUjnI','__esModule','518xFtNUb'];a1_0xe47a=function(){return _0x1c7e14;};return a1_0xe47a();}Object[a1_0x44a91e(0x1b2)](exports,a1_0x44a91e(0x1b8),{'value':!![]}),exports[a1_0x44a91e(0x1b5)]={'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';function a2_0x3ea8(_0xa363d4,_0x3a9983){const _0x4b197c=a2_0x4b19();return a2_0x3ea8=function(_0x3ea875,_0xf97f41){_0x3ea875=_0x3ea875-0xde;let _0x7b9e64=_0x4b197c[_0x3ea875];return _0x7b9e64;},a2_0x3ea8(_0xa363d4,_0x3a9983);}const a2_0x2fb0a5=a2_0x3ea8;(function(_0x1f7607,_0x1c14ed){const _0x5728f2=a2_0x3ea8,_0x465f80=_0x1f7607();while(!![]){try{const _0x3243c8=parseInt(_0x5728f2(0x108))/0x1+parseInt(_0x5728f2(0x136))/0x2*(parseInt(_0x5728f2(0xe6))/0x3)+-parseInt(_0x5728f2(0x12b))/0x4*(-parseInt(_0x5728f2(0x141))/0x5)+-parseInt(_0x5728f2(0x133))/0x6*(parseInt(_0x5728f2(0x11c))/0x7)+parseInt(_0x5728f2(0x144))/0x8+-parseInt(_0x5728f2(0x124))/0x9+parseInt(_0x5728f2(0x10e))/0xa*(-parseInt(_0x5728f2(0xee))/0xb);if(_0x3243c8===_0x1c14ed)break;else _0x465f80['push'](_0x465f80['shift']());}catch(_0x191f8a){_0x465f80['push'](_0x465f80['shift']());}}}(a2_0x4b19,0xa3d32));var __decorate=this&&this[a2_0x2fb0a5(0xe7)]||function(_0xc801b3,_0x372f0b,_0x1bf69b,_0x195471){const _0x37dac9=a2_0x2fb0a5;var _0x2dc799=arguments[_0x37dac9(0x123)],_0x320801=_0x2dc799<0x3?_0x372f0b:_0x195471===null?_0x195471=Object['getOwnPropertyDescriptor'](_0x372f0b,_0x1bf69b):_0x195471,_0x541856;if(typeof Reflect===_0x37dac9(0xf2)&&typeof Reflect[_0x37dac9(0x112)]==='function')_0x320801=Reflect[_0x37dac9(0x112)](_0xc801b3,_0x372f0b,_0x1bf69b,_0x195471);else{for(var _0x307a2e=_0xc801b3[_0x37dac9(0x123)]-0x1;_0x307a2e>=0x0;_0x307a2e--)if(_0x541856=_0xc801b3[_0x307a2e])_0x320801=(_0x2dc799<0x3?_0x541856(_0x320801):_0x2dc799>0x3?_0x541856(_0x372f0b,_0x1bf69b,_0x320801):_0x541856(_0x372f0b,_0x1bf69b))||_0x320801;}return _0x2dc799>0x3&&_0x320801&&Object['defineProperty'](_0x372f0b,_0x1bf69b,_0x320801),_0x320801;},__metadata=this&&this[a2_0x2fb0a5(0x11f)]||function(_0x2a30f4,_0x3d242b){const _0x4467d1=a2_0x2fb0a5;if(typeof Reflect==='object'&&typeof Reflect[_0x4467d1(0x127)]===_0x4467d1(0xe3))return Reflect[_0x4467d1(0x127)](_0x2a30f4,_0x3d242b);};Object[a2_0x2fb0a5(0xf8)](exports,a2_0x2fb0a5(0x10c),{'value':!![]}),exports[a2_0x2fb0a5(0xe2)]=void 0x0;const decorator_1=require(a2_0x2fb0a5(0x13e)),core_1=require(a2_0x2fb0a5(0x106)),ApiError_1=require(a2_0x2fb0a5(0xff)),ApiService_1=require(a2_0x2fb0a5(0xf3)),action_1=require(a2_0x2fb0a5(0x12f)),fs=require('fs'),koa=require(a2_0x2fb0a5(0x117)),i18n=require('@midwayjs/i18n'),task=require(a2_0x2fb0a5(0x11b)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x2fb0a5(0xe9)),crossDomain=require(a2_0x2fb0a5(0xf4)),bodyXml=require(a2_0x2fb0a5(0x137)),bodyParser=require(a2_0x2fb0a5(0x116)),ConfigDefault=require(a2_0x2fb0a5(0x10d)),ConfigProduction=require(a2_0x2fb0a5(0xf1)),anncic=require(a2_0x2fb0a5(0x111)),anncicEvent=require(a2_0x2fb0a5(0x11a)),anncicTypeorm=require(a2_0x2fb0a5(0xf0)),anncicValidator=require(a2_0x2fb0a5(0x12a)),anncicHelper=require(a2_0x2fb0a5(0xf7));function a2_0x4b19(){const _0x125b83=['application','./types/action','DEFAULT','anncic-api','request','378wYyAlF','Inject','isArray','2drchbb','koa-xml-body','forEach','devices','prototype','headers','tmpdir','MidwayEnvironmentService','@midwayjs/decorator','defineProperties','useMiddleware','1463770PSFZye','checkConfigKeys','config','7779944JYJOVl','REQUEST_OBJ_CTX_KEY','Configuration','device','anncicapi','CustomConfiguration','function','checksign','bodyParser','3089013ZecAjM','__decorate','query','@midwayjs/static-file','staticFile','mkdirSync','Anncic-api\x20static-file\x20:\x20mkdir\x20','ApiService','22UiRPQW','getApplications','@anncic-api/typeorm','./config/config.production','object','./service/ApiService','@midwayjs/cross-domain','handlerActionRoute','target','anncic-apihelper','defineProperty','keys','beforeRoute','_matchedRoute','getConfiguration','apimit','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./exception/ApiError','registerMethodHandler','body','dirs','MidwayDecoratorService','ACTION_ROUTE_KEY','key','@midwayjs/core','HEADERS_SIGNATURE','1184206MNVcqD','onReady','decorator','existsSync','__esModule','./config/config.default','9133290fZFYGl','dir','isNull','@anncic-api/core','decorate','bodyXml','environment','get','koa-bodyparser','@midwayjs/koa','ApiError','input','@anncic-api/event','@midwayjs/task','9751WsTpOT','design:type','string','__metadata','hanlderApplications','addObject','MidwayApplicationManager','length','8043129duIkMr','filterConfig','MidwayConfigService','metadata','koa','log','@anncic-api/validator','4qVlbvo','context','upload'];a2_0x4b19=function(){return _0x125b83;};return a2_0x4b19();}let CustomConfiguration=class CustomConfiguration{async[a2_0x2fb0a5(0x109)](){const _0x5e39dc=a2_0x2fb0a5;await this[_0x5e39dc(0x125)](),await this['checkConfigKeys'](),await this[_0x5e39dc(0xf5)](),await this[_0x5e39dc(0x120)]();}async[a2_0x2fb0a5(0x142)](){}async['handlerActionRoute'](){const _0x3575ea=a2_0x2fb0a5,_0x40ec57=this['config'][_0x3575ea(0xfc)]();this[_0x3575ea(0x10a)][_0x3575ea(0x100)](action_1[_0x3575ea(0x104)],_0x12f41c=>{const _0x40f686=_0x3575ea,_0x4a0926=_0x12f41c[_0x40f686(0x127)];return{'before':async _0x27c0bc=>{const _0x4f15f5=_0x40f686;var _0x5a6dac,_0x4ed41e,_0xac5a0f,_0xdb12ed,_0x5556a0;const _0x4b758f=(_0x5a6dac=_0x27c0bc===null||_0x27c0bc===void 0x0?void 0x0:_0x27c0bc[_0x4f15f5(0xf6)])===null||_0x5a6dac===void 0x0?void 0x0:_0x5a6dac[core_1[_0x4f15f5(0xde)]];if(_0x4b758f){if((_0x4a0926===null||_0x4a0926===void 0x0?void 0x0:_0x4a0926[_0x4f15f5(0xfd)])&&!this['ApiService'][_0x4f15f5(0xe4)]((_0x4ed41e=_0x4b758f===null||_0x4b758f===void 0x0?void 0x0:_0x4b758f[_0x4f15f5(0x132)])===null||_0x4ed41e===void 0x0?void 0x0:_0x4ed41e['headers']))throw new AnnError(ApiError_1[_0x4f15f5(0x118)][_0x4f15f5(0x107)]);((_0xac5a0f=_0x4b758f[_0x4f15f5(0x13b)])===null||_0xac5a0f===void 0x0?void 0x0:_0xac5a0f[_0x4f15f5(0xe0)])&&((_0x5556a0=(_0xdb12ed=_0x40ec57===null||_0x40ec57===void 0x0?void 0x0:_0x40ec57[_0x4f15f5(0xe1)])===null||_0xdb12ed===void 0x0?void 0x0:_0xdb12ed[_0x4f15f5(0x139)])===null||_0x5556a0===void 0x0?void 0x0:_0x5556a0[_0x4b758f[_0x4f15f5(0x13b)][_0x4f15f5(0xe0)]])&&(typeof _0x40ec57[_0x4f15f5(0xe1)][_0x4f15f5(0x139)][_0x4b758f['headers'][_0x4f15f5(0xe0)]][_0x4f15f5(0xfa)]==_0x4f15f5(0xe3)&&await _0x40ec57[_0x4f15f5(0xe1)][_0x4f15f5(0x139)][_0x4b758f[_0x4f15f5(0x13b)]['device']][_0x4f15f5(0xfa)]((_0x4b758f===null||_0x4b758f===void 0x0?void 0x0:_0x4b758f[_0x4f15f5(0xfb)])||undefined,_0x4a0926,_0x4b758f));}},'afterThrow':(_0x4142f5,_0x5b1978)=>{throw _0x5b1978;}};});}async[a2_0x2fb0a5(0x120)](){const _0x459e47=a2_0x2fb0a5;this[_0x459e47(0x12e)][_0x459e47(0xef)]([_0x459e47(0x128)])[_0x459e47(0x138)](_0x4fe2e7=>{const _0x339f97=_0x459e47;_0x4fe2e7['useMiddleware'](bodyXml(this[_0x339f97(0x143)][_0x339f97(0xfc)](_0x339f97(0x113)))),_0x4fe2e7[_0x339f97(0x140)](bodyParser(this[_0x339f97(0x143)]['getConfiguration'](_0x339f97(0xe5)))),(_0x4fe2e7===null||_0x4fe2e7===void 0x0?void 0x0:_0x4fe2e7[_0x339f97(0x12c)])&&Object[_0x339f97(0x13f)](_0x4fe2e7['context'],{'ok':{'value':function(_0x3ceffe,_0x56da8e,_0x5ac8b2=0x0){return{'code':_0x5ac8b2,'data':_0x3ceffe,'extra':_0x56da8e};}},'err':{'value':function(_0x538882,_0x13ec34,_0x226372=0x1){return{'code':_0x226372,'extra':_0x13ec34,'msg':_0x538882};}},'input':{'value':function(_0x4c8c8a,_0x2244f0){const _0x8b1ca7=_0x339f97;var _0x3e6bfb;const _0x3cbf24=lodash['defaultsDeep']({},this[_0x8b1ca7(0x132)][_0x8b1ca7(0x101)]||this[_0x8b1ca7(0x132)][((_0x3e6bfb=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x3e6bfb===void 0x0?void 0x0:_0x3e6bfb[_0x8b1ca7(0x105)])||_0x8b1ca7(0x101)]||{},this['request'][_0x8b1ca7(0xe8)]||{});return _0x4c8c8a?lodash[_0x8b1ca7(0x115)](_0x3cbf24,_0x4c8c8a,_0x2244f0):_0x3cbf24;}},'when':{'value':async function(_0x2b2cef,_0x4d2fbd){const _0x17e98d=_0x339f97,_0x329426=this[_0x17e98d(0x119)](_0x2b2cef,null);if(!lodash[_0x17e98d(0x110)](_0x329426))return await _0x4d2fbd(_0x329426);}},'only':{'value':function(_0x5aa302){const _0x5e1e11=_0x339f97,_0x5e1b11={};for(let _0x404733=0x0;_0x404733<_0x5aa302[_0x5e1e11(0x123)];_0x404733++){lodash[_0x5e1e11(0x135)](_0x5aa302[_0x404733])&&_0x5aa302[_0x404733]['length']>0x0&&lodash['isString'](_0x5aa302[_0x404733][0x0])&&(_0x5e1b11[_0x5aa302[_0x404733][0x0]]=this[_0x5e1e11(0x119)](_0x5aa302[_0x404733][0x0],_0x5aa302[_0x404733][_0x5e1e11(0x123)]>0x1?_0x5aa302[_0x404733][0x1]:null));}return _0x5e1b11;}}});});}async[a2_0x2fb0a5(0x125)](){const _0x1b2b6e=a2_0x2fb0a5;var _0x1d6bd1,_0x239b82,_0x112e09,_0x45a547,_0x46e66f,_0x5c424a;const _0x37ed1f=this[_0x1b2b6e(0x143)]['getConfiguration']();((_0x239b82=(_0x1d6bd1=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0xe1)])===null||_0x1d6bd1===void 0x0?void 0x0:_0x1d6bd1[_0x1b2b6e(0x139)])===null||_0x239b82===void 0x0?void 0x0:_0x239b82[_0x1b2b6e(0x130)])&&Object[_0x1b2b6e(0xf9)](_0x37ed1f[_0x1b2b6e(0xe1)][_0x1b2b6e(0x139)])['length']>0x1&&delete _0x37ed1f['anncicapi'][_0x1b2b6e(0x139)]['DEFAULT'];if((_0x112e09=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0xea)])===null||_0x112e09===void 0x0?void 0x0:_0x112e09['dirs'])for(const _0x32016b in _0x37ed1f['staticFile'][_0x1b2b6e(0x102)]){((_0x45a547=_0x37ed1f[_0x1b2b6e(0xea)]['dirs'][_0x32016b])===null||_0x45a547===void 0x0?void 0x0:_0x45a547[_0x1b2b6e(0x10f)])&&typeof((_0x46e66f=_0x37ed1f[_0x1b2b6e(0xea)]['dirs'][_0x32016b])===null||_0x46e66f===void 0x0?void 0x0:_0x46e66f[_0x1b2b6e(0x10f)])==_0x1b2b6e(0x11e)&&!fs[_0x1b2b6e(0x10b)](_0x37ed1f[_0x1b2b6e(0xea)][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)])&&(fs[_0x1b2b6e(0xeb)](_0x37ed1f[_0x1b2b6e(0xea)][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)],{'recursive':!![]}),console[_0x1b2b6e(0x129)](_0x1b2b6e(0xec)+_0x37ed1f['staticFile'][_0x1b2b6e(0x102)][_0x32016b][_0x1b2b6e(0x10f)]));}((_0x5c424a=_0x37ed1f===null||_0x37ed1f===void 0x0?void 0x0:_0x37ed1f[_0x1b2b6e(0x12d)])===null||_0x5c424a===void 0x0?void 0x0:_0x5c424a[_0x1b2b6e(0x13c)])&&!fs['existsSync'](_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)])&&(fs[_0x1b2b6e(0xeb)](_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)],{'recursive':!![]}),console[_0x1b2b6e(0x129)](_0x1b2b6e(0xfe)+_0x37ed1f[_0x1b2b6e(0x12d)][_0x1b2b6e(0x13c)])),this[_0x1b2b6e(0x143)][_0x1b2b6e(0x121)](_0x37ed1f);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a2_0x2fb0a5(0x126)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0x143),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata('design:type',core_1[a2_0x2fb0a5(0x103)])],CustomConfiguration['prototype'],a2_0x2fb0a5(0x10a),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata(a2_0x2fb0a5(0x11d),core_1[a2_0x2fb0a5(0x122)])],CustomConfiguration['prototype'],a2_0x2fb0a5(0x12e),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata(a2_0x2fb0a5(0x11d),core_1[a2_0x2fb0a5(0x13d)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x2fb0a5(0x134)])(),__metadata('design:type',ApiService_1[a2_0x2fb0a5(0xed)])],CustomConfiguration[a2_0x2fb0a5(0x13a)],a2_0x2fb0a5(0xed),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2fb0a5(0xdf)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x2fb0a5(0x131),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x2ea222=a3_0x3c09;(function(_0x142ba4,_0x203a9a){const _0x25d266=a3_0x3c09,_0xb1e64=_0x142ba4();while(!![]){try{const _0x5528c9=parseInt(_0x25d266(0x140))/0x1+parseInt(_0x25d266(0x154))/0x2*(-parseInt(_0x25d266(0x152))/0x3)+parseInt(_0x25d266(0x15b))/0x4*(parseInt(_0x25d266(0x15d))/0x5)+parseInt(_0x25d266(0x165))/0x6+parseInt(_0x25d266(0x15c))/0x7+-parseInt(_0x25d266(0x162))/0x8*(-parseInt(_0x25d266(0x13e))/0x9)+-parseInt(_0x25d266(0x141))/0xa;if(_0x5528c9===_0x203a9a)break;else _0xb1e64['push'](_0xb1e64['shift']());}catch(_0x1de279){_0xb1e64['push'](_0xb1e64['shift']());}}}(a3_0xac38,0x39bc5));function a3_0x3c09(_0x3296dc,_0x53099e){const _0xac38ae=a3_0xac38();return a3_0x3c09=function(_0x3c0901,_0x1ce444){_0x3c0901=_0x3c0901-0x137;let _0x41a836=_0xac38ae[_0x3c0901];return _0x41a836;},a3_0x3c09(_0x3296dc,_0x53099e);}Object[a3_0x2ea222(0x146)](exports,a3_0x2ea222(0x157),{'value':!![]}),exports['parseRoute']=exports[a3_0x2ea222(0x16a)]=void 0x0;function a3_0xac38(){const _0x54336d=['split','Action','prefix','../types/action','push','/controller/文件下','tagName','rootpath','saveModule','filter','middleware','endsWith','replace','153YVNelb','toLowerCase','282389rhdeDv','5861090twUiHw','join','apps/','isArray','/config.','defineProperty','AppsConfigTmp','app/controller/','Controller','parseRoute','trim','splice','match','indexOf','startsWith','route','APPSCONFIG_KEY','66IcoVhW','length','19678ydKSFI','filepath','module','__esModule','/controller/','middlewareIgnore','ACTION_KEY','1728812CgxYKR','106183uJPqPl','5LPtnIu','/apps/','-action','-controller','\x20文件请放在apps/','66088wcESCG','getClassMetadata','saveClassMetadata','1013124rjGJjd','substring','existsSync','@midwayjs/decorator'];a3_0xac38=function(){return _0x54336d;};return a3_0xac38();}const fs=require('fs'),decorator_1=require(a3_0x2ea222(0x168)),action_1=require(a3_0x2ea222(0x16c));function Action(_0x4cc29f,_0x1732ab,_0x45dece={'middleware':[],'sensitive':!![]}){return _0x24baff=>{const _0x1b1297=a3_0x3c09;_0x45dece[_0x1b1297(0x137)]=_0x1732ab;const _0x9dfb2a=parseRoute(_0x4cc29f);if(_0x9dfb2a[_0x1b1297(0x156)]){_0x45dece['prefix']=_0x45dece[_0x1b1297(0x16b)]?'/'+_0x9dfb2a[_0x1b1297(0x156)]+'/'+_0x45dece[_0x1b1297(0x16b)]:'/'+_0x9dfb2a[_0x1b1297(0x150)];_0x9dfb2a[_0x1b1297(0x16b)]&&(_0x45dece[_0x1b1297(0x16b)]='/'+_0x9dfb2a['prefix']+'/'+_0x45dece[_0x1b1297(0x16b)]);if(fs[_0x1b1297(0x167)](_0x9dfb2a['rootpath']+_0x1b1297(0x15e)+_0x9dfb2a[_0x1b1297(0x156)]+_0x1b1297(0x145)+(lodash[_0x1b1297(0x13c)](_0x9dfb2a[_0x1b1297(0x155)],'ts')?'ts':'js'))){const _0x2f6b81=include(_0x9dfb2a[_0x1b1297(0x138)]+_0x1b1297(0x15e)+_0x9dfb2a[_0x1b1297(0x156)]+_0x1b1297(0x145)+(lodash['endsWith'](_0x9dfb2a[_0x1b1297(0x155)],'ts')?'ts':'js'));if(_0x2f6b81[_0x1b1297(0x13b)]&&lodash[_0x1b1297(0x144)](_0x2f6b81['middleware'])&&_0x2f6b81['middleware'][_0x1b1297(0x153)]>0x0)for(let _0x1d8c23 in _0x2f6b81[_0x1b1297(0x13b)]){_0x2f6b81[_0x1b1297(0x159)]['indexOf'](_0x2f6b81['middleware'][_0x1d8c23])==-0x1&&_0x45dece[_0x1b1297(0x13b)][_0x1b1297(0x16d)](_0x2f6b81[_0x1b1297(0x13b)][_0x1d8c23]);}const _0x293978=(0x0,decorator_1[_0x1b1297(0x163)])(action_1[_0x1b1297(0x151)],action_1[_0x1b1297(0x147)])||{};_0x293978[''+_0x9dfb2a[_0x1b1297(0x156)]]=_0x2f6b81,(0x0,decorator_1[_0x1b1297(0x164)])(action_1['APPSCONFIG_KEY'],_0x293978,action_1[_0x1b1297(0x147)]);}_0x45dece[_0x1b1297(0x16b)]=_0x45dece[_0x1b1297(0x16b)][_0x1b1297(0x13f)]()[_0x1b1297(0x13d)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x1b1297(0x139)])(action_1[_0x1b1297(0x15a)],_0x24baff),(0x0,decorator_1[_0x1b1297(0x149)])(_0x45dece[_0x1b1297(0x16b)],_0x45dece)(_0x24baff),(0x0,decorator_1[_0x1b1297(0x164)])(action_1['ACTION_KEY'],{'prefix':_0x45dece[_0x1b1297(0x16b)],'pprefix':_0x9dfb2a['prefix'],'module':_0x9dfb2a[_0x1b1297(0x156)],'filepath':_0x9dfb2a[_0x1b1297(0x155)],'routerOptions':_0x45dece},_0x24baff);}else _0x45dece[_0x1b1297(0x16b)]=_0x45dece[_0x1b1297(0x16b)]?'/'+_0x45dece[_0x1b1297(0x16b)]:'/'+_0x9dfb2a['route'],_0x9dfb2a[_0x1b1297(0x16b)]&&(_0x45dece['prefix']='/'+_0x9dfb2a[_0x1b1297(0x16b)]+'/'+_0x45dece[_0x1b1297(0x16b)]),_0x45dece['prefix']=_0x45dece['prefix']['toLowerCase']()[_0x1b1297(0x13d)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x1b1297(0x15a)],_0x24baff),(0x0,decorator_1[_0x1b1297(0x149)])(_0x45dece[_0x1b1297(0x16b)],_0x45dece)(_0x24baff),(0x0,decorator_1[_0x1b1297(0x164)])(action_1[_0x1b1297(0x15a)],{'prefix':_0x45dece['prefix'],'module':_0x9dfb2a['module'],'pprefix':_0x9dfb2a['prefix'],'filepath':_0x9dfb2a[_0x1b1297(0x155)],'routerOptions':_0x45dece},_0x24baff);};}exports['Action']=Action;function parseRoute(_0x1aefd8){const _0x2bd00f=a3_0x2ea222;_0x1aefd8=_0x1aefd8[_0x2bd00f(0x13d)](/(\\|\/)/g,'/');const _0x22c400=process['cwd']()[_0x2bd00f(0x13d)](/(\\|\/)/g,'/'),_0x3b98ae=_0x1aefd8[_0x2bd00f(0x166)](0x0,_0x22c400[_0x2bd00f(0x153)]+_0x1aefd8[_0x2bd00f(0x166)](_0x22c400[_0x2bd00f(0x153)]+0x1)[_0x2bd00f(0x14e)]('/')+0x1),_0x29a47f=_0x1aefd8[_0x2bd00f(0x166)](_0x3b98ae[_0x2bd00f(0x153)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x2dd4e6={'route':'','prefix':![],'module':![],'rootpath':_0x3b98ae,'filepath':_0x29a47f};if(_0x29a47f[_0x2bd00f(0x14f)](_0x2bd00f(0x148))){const _0x2e1d7c=_0x29a47f[_0x2bd00f(0x166)](_0x2bd00f(0x148)[_0x2bd00f(0x153)])[_0x2bd00f(0x169)]('/')[_0x2bd00f(0x13a)](_0x1c639c=>_0x1c639c&&_0x1c639c[_0x2bd00f(0x14b)]());return _0x2e1d7c[_0x2bd00f(0x153)]>0x1&&(_0x2dd4e6[_0x2bd00f(0x16b)]=_0x2e1d7c[0x0][_0x2bd00f(0x13f)](),_0x2e1d7c[_0x2bd00f(0x14c)](0x0,0x1)),_0x2dd4e6[_0x2bd00f(0x150)]=('/'+_0x2e1d7c['join']('/'))[_0x2bd00f(0x13d)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x2bd00f(0x14d)](/[\/|A-Z]*[^A-Z]+/g)[_0x2bd00f(0x142)]('-')[_0x2bd00f(0x13f)]()[_0x2bd00f(0x13d)](/\/\-/g,'/'),_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x13c)](_0x2bd00f(0x15f))&&(_0x2dd4e6[_0x2bd00f(0x150)]=_0x2dd4e6['route'][_0x2bd00f(0x166)](0x0,_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x153)]-0x7)),_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x13c)](_0x2bd00f(0x160))&&(_0x2dd4e6[_0x2bd00f(0x150)]=_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x166)](0x0,_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x153)]-0xb)),_0x2dd4e6;}else{if(_0x29a47f[_0x2bd00f(0x14f)]('apps/')){const _0x366e2c=_0x29a47f[_0x2bd00f(0x166)](0x0,_0x29a47f[_0x2bd00f(0x14e)]('/apps/')+0x5),_0x52df2d=_0x29a47f[_0x2bd00f(0x166)](_0x366e2c[_0x2bd00f(0x153)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x2bd00f(0x169)]('/')[0x0];if(_0x29a47f['startsWith'](_0x2bd00f(0x143)+_0x52df2d+'/controller/')){const _0x42e379=_0x29a47f[_0x2bd00f(0x166)]((_0x366e2c+'/'+_0x52df2d+_0x2bd00f(0x158))[_0x2bd00f(0x153)])[_0x2bd00f(0x169)]('/')[_0x2bd00f(0x13a)](_0x5c85d2=>_0x5c85d2&&_0x5c85d2[_0x2bd00f(0x14b)]());return _0x42e379[_0x2bd00f(0x153)]>0x1&&(_0x2dd4e6[_0x2bd00f(0x16b)]=_0x42e379[0x0][_0x2bd00f(0x13f)](),_0x42e379[_0x2bd00f(0x14c)](0x0,0x1)),_0x2dd4e6[_0x2bd00f(0x156)]=_0x52df2d,_0x2dd4e6[_0x2bd00f(0x150)]=('/'+_0x52df2d+'/'+_0x42e379['join']('/'))[_0x2bd00f(0x13d)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x2bd00f(0x14d)](/[\/|A-Z]*[^A-Z]+/g)[_0x2bd00f(0x142)]('-')[_0x2bd00f(0x13f)]()[_0x2bd00f(0x13d)](/\/\-/g,'/'),_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x13c)](_0x2bd00f(0x15f))&&(_0x2dd4e6[_0x2bd00f(0x150)]=_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x166)](0x0,_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x153)]-0x7)),_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x13c)](_0x2bd00f(0x160))&&(_0x2dd4e6['route']=_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x166)](0x0,_0x2dd4e6[_0x2bd00f(0x150)][_0x2bd00f(0x153)]-0xb)),_0x2dd4e6;}throw new Error(_0x29a47f+_0x2bd00f(0x161)+_0x52df2d+_0x2bd00f(0x16e));}}throw new Error(_0x29a47f+'\x20文件请放在app/controller/文件下');}exports[a3_0x2ea222(0x14a)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x1e7e3a=a4_0x3fdc;(function(_0x3087f9,_0x1ec967){const _0x1db756=a4_0x3fdc,_0x1fbebd=_0x3087f9();while(!![]){try{const _0x2280b3=-parseInt(_0x1db756(0x14b))/0x1+-parseInt(_0x1db756(0x15d))/0x2*(parseInt(_0x1db756(0x14c))/0x3)+-parseInt(_0x1db756(0x149))/0x4+parseInt(_0x1db756(0x155))/0x5+parseInt(_0x1db756(0x158))/0x6+-parseInt(_0x1db756(0x15f))/0x7+parseInt(_0x1db756(0x14a))/0x8;if(_0x2280b3===_0x1ec967)break;else _0x1fbebd['push'](_0x1fbebd['shift']());}catch(_0x1be384){_0x1fbebd['push'](_0x1fbebd['shift']());}}}(a4_0x171f,0xebd17));function a4_0x171f(){const _0x3776cd=['validationOptions','../types/action','5660825jZBhTL','length','routerName','1478808aDDBrf','__esModule','toLowerCase','description','filter','738284hcmdvO','createCustomMethodDecorator','12036738MbpkZN','ACTION_ROUTE_KEY','apimit','middleware','3494964rQtIQH','40529032WWKbGJ','1039866CjSVVA','15yVcVjY','RequestMapping','Api','delete','del','middlewareIgnore','defineProperty'];a4_0x171f=function(){return _0x3776cd;};return a4_0x171f();}function a4_0x3fdc(_0x22f852,_0x1d6f70){const _0x171f42=a4_0x171f();return a4_0x3fdc=function(_0x3fdcf1,_0x5200e4){_0x3fdcf1=_0x3fdcf1-0x148;let _0x1d86e0=_0x171f42[_0x3fdcf1];return _0x1d86e0;},a4_0x3fdc(_0x22f852,_0x1d6f70);}Object[a4_0x1e7e3a(0x152)](exports,a4_0x1e7e3a(0x159),{'value':!![]}),exports[a4_0x1e7e3a(0x14e)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x1e7e3a(0x154));function Api(_0x7fb0ce,_0x2e7b07='get',_0x18dd4c='/',_0x1a3854={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x41de46,_0x4a4dfe,_0x4909dd)=>{const _0x8f894f=a4_0x3fdc;var _0x1ae39d,_0x177f50,_0x226f92;!_0x1a3854[_0x8f894f(0x148)]&&(_0x1a3854[_0x8f894f(0x148)]=[]);!((_0x1ae39d=_0x1a3854===null||_0x1a3854===void 0x0?void 0x0:_0x1a3854['validate'])===null||_0x1ae39d===void 0x0?void 0x0:_0x1ae39d[_0x8f894f(0x153)])&&(_0x1a3854['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0x177f50=_0x1a3854===null||_0x1a3854===void 0x0?void 0x0:_0x1a3854['middleware'])===null||_0x177f50===void 0x0?void 0x0:_0x177f50[_0x8f894f(0x156)])>0x0&&((_0x226f92=_0x1a3854===null||_0x1a3854===void 0x0?void 0x0:_0x1a3854[_0x8f894f(0x151)])===null||_0x226f92===void 0x0?void 0x0:_0x226f92['length'])>0x0)for(let _0x15b57c in _0x1a3854['middleware']){_0x1a3854[_0x8f894f(0x151)]['indexOf'](_0x1a3854[_0x8f894f(0x148)][_0x15b57c])!==-0x1&&(_0x1a3854[_0x8f894f(0x148)][_0x15b57c]=null);}_0x1a3854['routerName']=_0x7fb0ce,(0x0,validator_1['Validator'])(_0x1a3854['validate'])(_0x41de46,_0x4a4dfe,_0x4909dd),(0x0,decorator_1[_0x8f894f(0x14d)])(Object['assign'](_0x1a3854,{'path':_0x18dd4c,'requestMethod':(_0x2e7b07==_0x8f894f(0x150)?_0x8f894f(0x14f):_0x2e7b07)[_0x8f894f(0x15a)]()}))(_0x41de46,_0x4a4dfe,_0x4909dd),(0x0,decorator_1['attachClassMetadata'])(action_1[_0x8f894f(0x160)],{'path':_0x18dd4c,'method':_0x4a4dfe,'apimit':_0x1a3854[_0x8f894f(0x161)],'routerName':_0x1a3854[_0x8f894f(0x157)],'description':_0x1a3854[_0x8f894f(0x15b)],'middleware':(_0x1a3854[_0x8f894f(0x148)]||[])[_0x8f894f(0x15c)](_0x4aa37a=>!!_0x4aa37a),'requestMethod':(_0x2e7b07=='del'?'delete':_0x2e7b07)[_0x8f894f(0x15a)]()},_0x41de46),(0x0,decorator_1[_0x8f894f(0x15e)])(action_1[_0x8f894f(0x160)],{'path':_0x18dd4c,'method':_0x4a4dfe,'apimit':_0x1a3854[_0x8f894f(0x161)],'routerName':_0x1a3854[_0x8f894f(0x157)],'description':_0x1a3854[_0x8f894f(0x15b)],'middleware':(_0x1a3854[_0x8f894f(0x148)]||[])[_0x8f894f(0x15c)](_0x63fd50=>!!_0x63fd50),'requestMethod':(_0x2e7b07==_0x8f894f(0x150)?'delete':_0x2e7b07)[_0x8f894f(0x15a)]()})(_0x41de46,_0x4a4dfe,_0x4909dd);};}exports[a4_0x1e7e3a(0x14e)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0xd2f11b=a5_0x5789;(function(_0xff2c7d,_0x41eafc){const _0x496aae=a5_0x5789,_0x54ce97=_0xff2c7d();while(!![]){try{const _0x7e1229=parseInt(_0x496aae(0x113))/0x1+-parseInt(_0x496aae(0x10b))/0x2*(parseInt(_0x496aae(0x118))/0x3)+-parseInt(_0x496aae(0x111))/0x4+parseInt(_0x496aae(0x106))/0x5*(-parseInt(_0x496aae(0x11a))/0x6)+-parseInt(_0x496aae(0x108))/0x7*(parseInt(_0x496aae(0x103))/0x8)+-parseInt(_0x496aae(0x116))/0x9+parseInt(_0x496aae(0x10f))/0xa*(parseInt(_0x496aae(0x11d))/0xb);if(_0x7e1229===_0x41eafc)break;else _0x54ce97['push'](_0x54ce97['shift']());}catch(_0x4e16f6){_0x54ce97['push'](_0x54ce97['shift']());}}}(a5_0x5a40,0x4ab20));Object[a5_0xd2f11b(0x11e)](exports,a5_0xd2f11b(0x10e),{'value':!![]}),exports[a5_0xd2f11b(0x11b)]=void 0x0;function a5_0x5789(_0x1d7578,_0x16515b){const _0x5a403c=a5_0x5a40();return a5_0x5789=function(_0x578966,_0x338fc1){_0x578966=_0x578966-0x102;let _0x52f319=_0x5a403c[_0x578966];return _0x52f319;},a5_0x5789(_0x1d7578,_0x16515b);}const decorator_1=require(a5_0xd2f11b(0x10d)),core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0xd2f11b(0x104));function Apitest(_0x1b9192=a5_0xd2f11b(0x10c),_0x4dec83){return(_0x1ab377,_0x485e81,_0x4bde9f)=>{const _0x2c9fb0=a5_0x5789;return(0x0,decorator_1[_0x2c9fb0(0x117)])({'path':_0x1b9192,'requestMethod':_0x2c9fb0(0x109)})(_0x1ab377,_0x485e81,_0x4bde9f),_0x4bde9f[_0x2c9fb0(0x119)]=async function(..._0x48641a){const _0x10c85d=_0x2c9fb0;var _0x481afe;const _0x3ebac9=(_0x481afe=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x481afe===void 0x0?void 0x0:_0x481afe[_0x10c85d(0x112)];if(_0x3ebac9&&_0x3ebac9[_0x10c85d(0x102)]('apitest')){const _0x530b1f=await _0x3ebac9[_0x10c85d(0x115)]()[_0x10c85d(0x107)](ApitestService_1[_0x10c85d(0x10a)]),_0x1af224=await _0x3ebac9[_0x10c85d(0x115)]()['getAsync'](core_1[_0x10c85d(0x110)]);return _0x1af224[_0x10c85d(0x114)]()&&(_0x4dec83[_0x10c85d(0x11c)]=!![]),await _0x530b1f[_0x10c85d(0x105)](_0x4dec83);}return'';},_0x4bde9f;};}exports['Apitest']=Apitest;function a5_0x5a40(){const _0x49f309=['1094oPfxNZ','/apitest','@midwayjs/decorator','__esModule','3035390zpWARr','MidwayEnvironmentService','851348TfvNNL','app','433363ZvhRxo','isDevelopmentEnvironment','getApplicationContext','1090197YGlxtK','RequestMapping','2649iWKhwS','value','6NQXuHZ','Apitest','filepath','55ejiyfs','defineProperty','getConfig','4186024kanqLZ','../service/ApitestService','apidoc','1524410peiTcV','getAsync','7PnXZPy','get','ApitestService'];a5_0x5a40=function(){return _0x49f309;};return a5_0x5a40();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x26f97e=a6_0x5dd9;(function(_0x400dcf,_0x5d1b52){var _0x4cf6b4=a6_0x5dd9,_0x1b7621=_0x400dcf();while(!![]){try{var _0x5aea6c=parseInt(_0x4cf6b4(0x1b4))/0x1*(parseInt(_0x4cf6b4(0x1b8))/0x2)+parseInt(_0x4cf6b4(0x1a1))/0x3+-parseInt(_0x4cf6b4(0x1b7))/0x4*(parseInt(_0x4cf6b4(0x1a8))/0x5)+parseInt(_0x4cf6b4(0x1b2))/0x6+parseInt(_0x4cf6b4(0x19e))/0x7+-parseInt(_0x4cf6b4(0x1ac))/0x8*(-parseInt(_0x4cf6b4(0x1ae))/0x9)+-parseInt(_0x4cf6b4(0x1a4))/0xa;if(_0x5aea6c===_0x5d1b52)break;else _0x1b7621['push'](_0x1b7621['shift']());}catch(_0x246215){_0x1b7621['push'](_0x1b7621['shift']());}}}(a6_0x5f37,0xc67f5));var __decorate=this&&this[a6_0x26f97e(0x1aa)]||function(_0x3cd081,_0xf75c7f,_0x1ba577,_0x2ba003){var _0x38d37f=a6_0x26f97e,_0x2f260d=arguments[_0x38d37f(0x1a9)],_0x214bad=_0x2f260d<0x3?_0xf75c7f:_0x2ba003===null?_0x2ba003=Object[_0x38d37f(0x19c)](_0xf75c7f,_0x1ba577):_0x2ba003,_0x113141;if(typeof Reflect===_0x38d37f(0x1b1)&&typeof Reflect['decorate']===_0x38d37f(0x1af))_0x214bad=Reflect[_0x38d37f(0x1b3)](_0x3cd081,_0xf75c7f,_0x1ba577,_0x2ba003);else{for(var _0x4877d4=_0x3cd081[_0x38d37f(0x1a9)]-0x1;_0x4877d4>=0x0;_0x4877d4--)if(_0x113141=_0x3cd081[_0x4877d4])_0x214bad=(_0x2f260d<0x3?_0x113141(_0x214bad):_0x2f260d>0x3?_0x113141(_0xf75c7f,_0x1ba577,_0x214bad):_0x113141(_0xf75c7f,_0x1ba577))||_0x214bad;}return _0x2f260d>0x3&&_0x214bad&&Object['defineProperty'](_0xf75c7f,_0x1ba577,_0x214bad),_0x214bad;},__metadata=this&&this[a6_0x26f97e(0x1a2)]||function(_0x24c467,_0x563096){var _0x4f4d9c=a6_0x26f97e;if(typeof Reflect===_0x4f4d9c(0x1b1)&&typeof Reflect[_0x4f4d9c(0x19d)]===_0x4f4d9c(0x1af))return Reflect[_0x4f4d9c(0x19d)](_0x24c467,_0x563096);};Object['defineProperty'](exports,a6_0x26f97e(0x1a7),{'value':!![]}),exports[a6_0x26f97e(0x1a3)]=void 0x0;class ApiError{}function a6_0x5dd9(_0x201824,_0x515251){var _0x5f37b3=a6_0x5f37();return a6_0x5dd9=function(_0x5dd9b6,_0x328c2d){_0x5dd9b6=_0x5dd9b6-0x19c;var _0x5d8a60=_0x5f37b3[_0x5dd9b6];return _0x5d8a60;},a6_0x5dd9(_0x201824,_0x515251);}function a6_0x5f37(){var _0x12dc8e=['11376925lwjKtK','请求头信息不完整','design:type','1212294RsuZgN','__metadata','ApiError','21896700EMaDYy','HEADERS_DEVICE','HEADERS_LACK','__esModule','166035gPfarq','length','__decorate','signature验证失败','6143608kmecbK','HEADERS_CHECKCODE','9RQfclq','function','网络繁忙,请稍后重试','object','1528158iJbMQJ','decorate','3PAZszo','TIMEOUT','HEADERS_SIGNATURE','20YyXLdu','77822QcddeW','getOwnPropertyDescriptor','metadata'];a6_0x5f37=function(){return _0x12dc8e;};return a6_0x5f37();}ApiError['TIMEOUT']=0x18a89,ApiError[a6_0x26f97e(0x1a6)]=0x18a8a,ApiError[a6_0x26f97e(0x1a5)]=0x18a8b,ApiError[a6_0x26f97e(0x1ad)]=0x18a8c,ApiError[a6_0x26f97e(0x1b6)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x26f97e(0x1b0)),__metadata('design:type',Object)],ApiError,a6_0x26f97e(0x1b5),void 0x0),__decorate([AnnErrorMsg(a6_0x26f97e(0x19f)),__metadata(a6_0x26f97e(0x1a0),Object)],ApiError,a6_0x26f97e(0x1a6),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x26f97e(0x1a0),Object)],ApiError,a6_0x26f97e(0x1a5),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x26f97e(0x1a0),Object)],ApiError,a6_0x26f97e(0x1ad),void 0x0),__decorate([AnnErrorMsg(a6_0x26f97e(0x1ab)),__metadata(a6_0x26f97e(0x1a0),Object)],ApiError,a6_0x26f97e(0x1b6),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x1c50f0=a7_0x4bd1;(function(_0x3b0946,_0x434800){const _0x1b6877=a7_0x4bd1,_0x580401=_0x3b0946();while(!![]){try{const _0x4108e1=-parseInt(_0x1b6877(0x1ad))/0x1+-parseInt(_0x1b6877(0x1ae))/0x2+parseInt(_0x1b6877(0x1a8))/0x3*(-parseInt(_0x1b6877(0x1a2))/0x4)+parseInt(_0x1b6877(0x1a6))/0x5+-parseInt(_0x1b6877(0x1a3))/0x6+-parseInt(_0x1b6877(0x1af))/0x7+parseInt(_0x1b6877(0x1a7))/0x8;if(_0x4108e1===_0x434800)break;else _0x580401['push'](_0x580401['shift']());}catch(_0x669d7f){_0x580401['push'](_0x580401['shift']());}}}(a7_0x2880,0xd596d));function a7_0x4bd1(_0x4dbfa1,_0x1880e1){const _0x288047=a7_0x2880();return a7_0x4bd1=function(_0x4bd1c8,_0x2c7975){_0x4bd1c8=_0x4bd1c8-0x1a1;let _0x5b5a6d=_0x288047[_0x4bd1c8];return _0x5b5a6d;},a7_0x4bd1(_0x4dbfa1,_0x1880e1);}function a7_0x2880(){const _0x1219bb=['25327288WidjJS','30093FjaVyU','getAppsConfig','@midwayjs/decorator','../types/action','APPSCONFIG_KEY','500392LHgLji','2220814DwHFqY','2048312AjFAMc','getClassMetadata','AppsConfigTmp','392tWWdrI','2235342VyfJSG','__esModule','get','4839800AxoVin'];a7_0x2880=function(){return _0x1219bb;};return a7_0x2880();}Object['defineProperty'](exports,a7_0x1c50f0(0x1a4),{'value':!![]}),exports[a7_0x1c50f0(0x1a9)]=void 0x0;const decorator_1=require(a7_0x1c50f0(0x1aa)),action_1=require(a7_0x1c50f0(0x1ab));function getAppsConfig(_0x50ae7a){const _0x5b9559=a7_0x1c50f0,_0x6aca1=(0x0,decorator_1[_0x5b9559(0x1b0)])(action_1[_0x5b9559(0x1ac)],action_1[_0x5b9559(0x1a1)])||{};return _0x50ae7a?lodash[_0x5b9559(0x1a5)](_0x6aca1,_0x50ae7a):_0x6aca1;}exports['getAppsConfig']=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';function a8_0x4bd4(){const _0x42e97c=['split','array','object','Boolean','ACTION_ROUTE_KEY','keys','propertyData','string','2525442CdyfFt','min','metadata','default','find','routerOptions','method','log','7amzIuC','tagName','route','summary','defineProperty','allow','number','11953610xJMgtB','get','ACTION_KEY','filter','noreq','文件上传-','FILESSTREAM','flags.presence','4129425cLuzyN','@midwayjs/decorator','parameterIndex','startsWith','test','WEB_ROUTER_PARAM_KEY','filepath','-array','module','static/apitest','function','297041QjGLrB','INJECT_CUSTOM_PARAM','prefix','rules','38940eQxykL','FILESTREAM','key','push','isArray','getClassMetadata','209078kSmAzr','lodash','args','pprefix','request','header','RULES_KEY','只允许:[','concat','length','body','query','boolean','getRoutes','File','364eGGocP','HEADERS','4557ouKhcd','routes','Number','BODY','flags.default','describe','Object','file','indexOf','path','type','required','QUERY','listModule','requestMethod','max','8iDHcKc','/static/apitest','limit','items','description','flags.description','replace','RouteParamTypes','name','title','children','PARAM','getClassExtendedMetadata'];a8_0x4bd4=function(){return _0x42e97c;};return a8_0x4bd4();}const a8_0xde2c5b=a8_0x150e;(function(_0x3c5ddf,_0x3e59fb){const _0x4f49d7=a8_0x150e,_0x302f5b=_0x3c5ddf();while(!![]){try{const _0x1874b7=-parseInt(_0x4f49d7(0xfb))/0x1+parseInt(_0x4f49d7(0x105))/0x2+-parseInt(_0x4f49d7(0x116))/0x3*(-parseInt(_0x4f49d7(0x114))/0x4)+parseInt(_0x4f49d7(0xff))/0x5+-parseInt(_0x4f49d7(0xd9))/0x6*(parseInt(_0x4f49d7(0xe1))/0x7)+parseInt(_0x4f49d7(0x126))/0x8*(-parseInt(_0x4f49d7(0xf0))/0x9)+parseInt(_0x4f49d7(0xe8))/0xa;if(_0x1874b7===_0x3e59fb)break;else _0x302f5b['push'](_0x302f5b['shift']());}catch(_0x2e3e49){_0x302f5b['push'](_0x302f5b['shift']());}}}(a8_0x4bd4,0x41b58));function a8_0x150e(_0x53f8df,_0x2d9e9f){const _0x4bd4e9=a8_0x4bd4();return a8_0x150e=function(_0x150ed2,_0x35e3ce){_0x150ed2=_0x150ed2-0xd1;let _0x5509b1=_0x4bd4e9[_0x150ed2];return _0x5509b1;},a8_0x150e(_0x53f8df,_0x2d9e9f);}Object[a8_0xde2c5b(0xe5)](exports,'__esModule',{'value':!![]}),exports[a8_0xde2c5b(0x112)]=void 0x0;const lodash_1=require(a8_0xde2c5b(0x106)),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0xde2c5b(0xf1)),decorator_2=require(a8_0xde2c5b(0xf1)),decorator_3=require(a8_0xde2c5b(0xf1)),action_1=require('../types/action');function getRoutes(_0x39478e={'prefix':'/','module':![]}){const _0x3cf742=a8_0xde2c5b;var _0x112e64,_0x281af7;const _0x42a86f=(0x0,decorator_3[_0x3cf742(0x123)])(action_1['ACTION_KEY']),_0x37efe1={},_0x46af04=Array[_0x3cf742(0x103)](_0x39478e[_0x3cf742(0xeb)]||[])?_0x39478e['filter']||[]:[_0x39478e['filter']];_0xe45b38:for(const _0x2e2f87 of _0x42a86f){let _0xc63072=(0x0,decorator_3[_0x3cf742(0x104)])(action_1[_0x3cf742(0xea)],_0x2e2f87),_0x1d0444=(0x0,decorator_3[_0x3cf742(0x104)])(action_1[_0x3cf742(0xd5)],_0x2e2f87);if(_0xc63072&&_0x1d0444){let _0x4a6d7e=_0xc63072[_0x3cf742(0xfd)],_0x406503={};if(_0x39478e['module']&&(0x0,lodash_1[_0x3cf742(0xe9)])(_0xc63072,_0x3cf742(0xf8),![])!=_0x39478e[_0x3cf742(0xf8)])continue _0xe45b38;else{if(_0x39478e[_0x3cf742(0xf8)]===![]&&!!(0x0,lodash_1['get'])(_0xc63072,_0x3cf742(0xf8),null))continue _0xe45b38;}if(_0x39478e[_0x3cf742(0xfd)]&&!_0x4a6d7e[_0x3cf742(0xf3)](_0x39478e[_0x3cf742(0xfd)]))continue _0xe45b38;_0x4a6d7e!=='/'?(_0x406503[_0x3cf742(0xe4)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xde)][_0x3cf742(0xe2)])||(/^\//[_0x3cf742(0xf4)](_0x4a6d7e)?_0x4a6d7e[_0x3cf742(0xd1)]('/')[0x1]:_0x4a6d7e),_0x406503[_0x3cf742(0x12a)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0x12a)])||_0x406503[_0x3cf742(0xe4)],_0x406503[_0x3cf742(0x117)]=[]):(_0x406503[_0x3cf742(0xe4)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0xe2)])||_0x3cf742(0xdc),_0x406503[_0x3cf742(0x12a)]=(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072['routerOptions'][_0x3cf742(0x12a)])||'',_0x406503[_0x3cf742(0x117)]=[]);_0x39478e[_0x3cf742(0xf6)]&&(_0x406503[_0x3cf742(0xf6)]=_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xf6)]);(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0x108)])&&(_0x406503['prefix']=_0xc63072[_0x3cf742(0x108)]);(_0xc63072===null||_0xc63072===void 0x0?void 0x0:_0xc63072[_0x3cf742(0xf8)])&&(_0x406503[_0x3cf742(0xf8)]=_0xc63072[_0x3cf742(0xf8)]);let _0x1cca20=(0x0,decorator_3[_0x3cf742(0x104)])(decorator_2[_0x3cf742(0xfc)],_0x2e2f87)||{};if(typeof _0x1d0444[Symbol['iterator']]===_0x3cf742(0xfa))for(let _0x3a73c0 of _0x1d0444){let _0x4adff2={};_0x4adff2[_0x3cf742(0xdf)]=_0x3a73c0[_0x3cf742(0x124)],_0x4adff2[_0x3cf742(0xe3)]=(_0x4a6d7e+_0x3a73c0[_0x3cf742(0x11f)])[_0x3cf742(0x12c)](/\/{1,}/,'/'),_0x4adff2['summary']=(_0x3a73c0===null||_0x3a73c0===void 0x0?void 0x0:_0x3a73c0['routerName'])||_0x406503[_0x3cf742(0xe4)]||'default',_0x4adff2[_0x3cf742(0x12a)]=(_0x3a73c0===null||_0x3a73c0===void 0x0?void 0x0:_0x3a73c0['description'])||'',_0x4adff2[_0x3cf742(0x109)]=[];if(!(0x0,lodash_1[_0x3cf742(0xf3)])(_0x4adff2[_0x3cf742(0xe3)],_0x3cf742(0xf9))&&!(0x0,lodash_1[_0x3cf742(0xf3)])(_0x4adff2[_0x3cf742(0xe3)],_0x3cf742(0x127))&&_0x46af04[_0x3cf742(0x11e)](_0x4adff2[_0x3cf742(0xe3)])===-0x1){if(!(_0x39478e===null||_0x39478e===void 0x0?void 0x0:_0x39478e[_0x3cf742(0xec)])){let _0x2b61e4=(0x0,decorator_3['getMethodParamTypes'])(new _0x2e2f87(),_0x3a73c0[_0x3cf742(0xdf)]);for(const _0x23c6f8 in _0x2b61e4){let _0x8fadfa=(_0x112e64=_0x1cca20[_0x3a73c0[_0x3cf742(0xdf)]])===null||_0x112e64===void 0x0?void 0x0:_0x112e64[_0x3cf742(0xdd)](_0x398031=>_0x398031[_0x3cf742(0xf2)]==_0x23c6f8&&_0x398031[_0x3cf742(0x101)]===decorator_2[_0x3cf742(0xf5)]&&(_0x398031===null||_0x398031===void 0x0?void 0x0:_0x398031['metadata']));if(_0x8fadfa===null||_0x8fadfa===void 0x0?void 0x0:_0x8fadfa[_0x3cf742(0xdb)]){let _0x2eda12=convertTypeToString(_0x8fadfa[_0x3cf742(0xdb)]['type']||0x0);if([_0x3cf742(0x110),'body'][_0x3cf742(0x11e)](_0x2eda12)!=-0x1&&_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)][_0x3cf742(0x11e)](':')==-0x1&&!_0x4adff2['request'][_0x3cf742(0xdd)](_0x15eabd=>_0x15eabd[_0x3cf742(0x101)]==_0x8fadfa[_0x3cf742(0xdb)]['propertyData']))_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)]({'key':_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)],'title':_0x8fadfa[_0x3cf742(0xdb)][_0x3cf742(0xd7)],'type':convertSchemaType(_0x2b61e4[_0x8fadfa[_0x3cf742(0xf2)]][_0x3cf742(0x12e)]),'required':![],'default':'','desc':''});else{if(_0x2eda12==_0x3cf742(0x11d)){let _0x27d2cd=((_0x281af7=_0x8fadfa===null||_0x8fadfa===void 0x0?void 0x0:_0x8fadfa['metadata'])===null||_0x281af7===void 0x0?void 0x0:_0x281af7[_0x3cf742(0xd7)])||'file';_0x27d2cd[_0x3cf742(0x11e)](':')==-0x1&&!_0x4adff2[_0x3cf742(0x109)]['find'](_0x184516=>_0x184516[_0x3cf742(0x101)]==_0x27d2cd&&_0x184516[_0x3cf742(0x120)]==_0x3cf742(0x11d))&&_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)]({'key':_0x27d2cd,'title':_0x3cf742(0xed)+_0x27d2cd,'type':_0x3cf742(0x11d),'required':!![],'default':'','desc':''});}}}else{const _0x537dd2=(0x0,decorator_3[_0x3cf742(0x132)])(validator_1[_0x3cf742(0x10b)],_0x2b61e4[_0x23c6f8]);_0x537dd2&&_0x4adff2[_0x3cf742(0x109)][_0x3cf742(0x102)](...getJoiRequest(_0x537dd2));}}}_0x406503[_0x3cf742(0x117)]['push'](_0x4adff2);}}if(_0x406503['routes'][_0x3cf742(0x10e)]>0x0){let _0x359327=_0x37efe1[_0x4a6d7e];_0x359327?(_0x359327[_0x3cf742(0xe4)]!=_0x406503['summary']&&(_0x359327['summary']=_0x359327[_0x3cf742(0xe4)]+','+_0x406503[_0x3cf742(0xe4)]),_0x359327[_0x3cf742(0x12a)]!=_0x406503[_0x3cf742(0x12a)]&&(_0x359327[_0x3cf742(0x12a)]=_0x359327['description']+','+_0x406503['description']),_0x359327[_0x3cf742(0x117)]=_0x359327['routes'][_0x3cf742(0x10d)](_0x406503[_0x3cf742(0x117)]),_0x37efe1[_0x4a6d7e]=_0x359327):_0x37efe1[_0x4a6d7e]=_0x406503;}}}return _0x37efe1;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2de8d5){const _0x253e81=a8_0xde2c5b,_0x1cd0ac=[];for(let _0x3b4536 in _0x2de8d5){const _0x581a54={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5d7026=typeof _0x2de8d5[_0x3b4536][_0x253e81(0x11b)]=='function'?_0x2de8d5[_0x3b4536][_0x253e81(0x11b)]():_0x2de8d5[_0x3b4536];_0x581a54[_0x253e81(0x101)]=_0x3b4536,_0x581a54['type']=_0x5d7026[_0x253e81(0x120)],_0x581a54[_0x253e81(0x12f)]=(0x0,lodash_1['get'])(_0x5d7026,'flags.label',_0x3b4536),_0x581a54[_0x253e81(0xdc)]=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0x11a),''),_0x581a54[_0x253e81(0x121)]=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0xef),'')==_0x253e81(0x121),_0x581a54['description']=(0x0,lodash_1[_0x253e81(0xe9)])(_0x5d7026,_0x253e81(0x12b),'');if(_0x5d7026[_0x253e81(0x120)]=='object')_0x581a54[_0x253e81(0x130)]=getJoiRequest(_0x5d7026[_0x253e81(0xd6)]);else _0x5d7026[_0x253e81(0x120)]==_0x253e81(0xd2)&&_0x5d7026['items']&&Array[_0x253e81(0x103)](_0x5d7026[_0x253e81(0x129)])&&_0x5d7026[_0x253e81(0x129)][0x0]&&console[_0x253e81(0xe0)](_0x3b4536+_0x253e81(0xf7),_0x5d7026);_0x5d7026[_0x253e81(0xe6)]&&Array['isArray'](_0x5d7026[_0x253e81(0xe6)])&&_0x5d7026[_0x253e81(0xe6)]['length']>0x0&&(_0x581a54[_0x253e81(0x12a)]=_0x253e81(0x10c)+_0x5d7026[_0x253e81(0xe6)]['join'](',')+'];'+_0x581a54[_0x253e81(0x12a)]);if(_0x581a54['key']&&_0x581a54['type']){const _0x2352ab={};for(const _0x5ce0a2 of _0x5d7026[_0x253e81(0xfe)]||[]){if(_0x5ce0a2[_0x253e81(0x12e)]===_0x253e81(0xda)&&_0x5ce0a2[_0x253e81(0x107)])_0x2352ab[_0x253e81(0xda)]=_0x5ce0a2[_0x253e81(0x107)]['limit'];else _0x5ce0a2['name']===_0x253e81(0x125)&&(_0x2352ab[_0x253e81(0x125)]=_0x5ce0a2[_0x253e81(0x107)][_0x253e81(0x128)]);}_0x581a54['rules']=_0x2352ab;}_0x581a54[_0x253e81(0x101)]&&_0x581a54[_0x253e81(0x12f)]&&_0x1cd0ac['push'](_0x581a54);}return _0x1cd0ac;}function convertSchemaType(_0x2019f7){const _0x2390ca=a8_0xde2c5b;switch(_0x2019f7){case _0x2390ca(0x11c):return _0x2390ca(0xd3);case _0x2390ca(0xd4):return _0x2390ca(0x111);case _0x2390ca(0x118):return _0x2390ca(0xe7);case'String':return _0x2390ca(0xd8);case _0x2390ca(0x113):return _0x2390ca(0x11d);default:return _0x2390ca(0xd8);}}function convertTypeToString(_0x273a05){const _0x28df73=a8_0xde2c5b;switch(_0x273a05){case decorator_1['RouteParamTypes'][_0x28df73(0x115)]:return _0x28df73(0x10a);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x122)]:return _0x28df73(0x110);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x131)]:return _0x28df73(0x11f);case decorator_1[_0x28df73(0x12d)][_0x28df73(0x119)]:return _0x28df73(0x10f);case decorator_1[_0x28df73(0x12d)]['FIELDS']:case decorator_1['RouteParamTypes'][_0x28df73(0xee)]:case decorator_1[_0x28df73(0x12d)][_0x28df73(0x100)]:return _0x28df73(0x11d);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x2a7fb0=a9_0x56f6;(function(_0x352670,_0x3b4ae8){var _0x179796=a9_0x56f6,_0x307b98=_0x352670();while(!![]){try{var _0x435d78=-parseInt(_0x179796(0x103))/0x1*(-parseInt(_0x179796(0xf2))/0x2)+-parseInt(_0x179796(0xed))/0x3+-parseInt(_0x179796(0x11f))/0x4*(parseInt(_0x179796(0x117))/0x5)+parseInt(_0x179796(0xfc))/0x6*(-parseInt(_0x179796(0x104))/0x7)+-parseInt(_0x179796(0x10a))/0x8+-parseInt(_0x179796(0x10b))/0x9+-parseInt(_0x179796(0xf4))/0xa*(-parseInt(_0x179796(0x125))/0xb);if(_0x435d78===_0x3b4ae8)break;else _0x307b98['push'](_0x307b98['shift']());}catch(_0xda31ae){_0x307b98['push'](_0x307b98['shift']());}}}(a9_0x57e0,0x46103));function a9_0x56f6(_0x5c34f3,_0x2ca31a){var _0x57e0b5=a9_0x57e0();return a9_0x56f6=function(_0x56f653,_0x3c5576){_0x56f653=_0x56f653-0xec;var _0x23a174=_0x57e0b5[_0x56f653];return _0x23a174;},a9_0x56f6(_0x5c34f3,_0x2ca31a);}var __createBinding=this&&this['__createBinding']||(Object[a9_0x2a7fb0(0x10e)]?function(_0x167c55,_0x1c8d43,_0x168c30,_0x3fe6f1){var _0x58dd1a=a9_0x2a7fb0;if(_0x3fe6f1===undefined)_0x3fe6f1=_0x168c30;var _0x400503=Object[_0x58dd1a(0xf1)](_0x1c8d43,_0x168c30);(!_0x400503||(_0x58dd1a(0x106)in _0x400503?!_0x1c8d43[_0x58dd1a(0x122)]:_0x400503[_0x58dd1a(0xf8)]||_0x400503['configurable']))&&(_0x400503={'enumerable':!![],'get':function(){return _0x1c8d43[_0x168c30];}}),Object['defineProperty'](_0x167c55,_0x3fe6f1,_0x400503);}:function(_0x47900e,_0x4bfb9b,_0x2d7c1a,_0x47f112){if(_0x47f112===undefined)_0x47f112=_0x2d7c1a;_0x47900e[_0x47f112]=_0x4bfb9b[_0x2d7c1a];}),__exportStar=this&&this[a9_0x2a7fb0(0x114)]||function(_0x5ee73f,_0x1ff885){var _0x36aa06=a9_0x2a7fb0;for(var _0x483b3a in _0x5ee73f)if(_0x483b3a!==_0x36aa06(0x128)&&!Object['prototype'][_0x36aa06(0x101)][_0x36aa06(0xf3)](_0x1ff885,_0x483b3a))__createBinding(_0x1ff885,_0x5ee73f,_0x483b3a);};Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x122),{'value':!![]}),exports[a9_0x2a7fb0(0x11d)]=exports['ScopeEnum']=exports[a9_0x2a7fb0(0x108)]=exports[a9_0x2a7fb0(0xee)]=exports['Provide']=exports[a9_0x2a7fb0(0x11c)]=exports[a9_0x2a7fb0(0xf7)]=exports[a9_0x2a7fb0(0xfa)]=exports[a9_0x2a7fb0(0x11a)]=exports[a9_0x2a7fb0(0x12b)]=exports['Query']=exports['Param']=exports[a9_0x2a7fb0(0x12a)]=exports[a9_0x2a7fb0(0x111)]=exports[a9_0x2a7fb0(0x10f)]=exports['File']=exports[a9_0x2a7fb0(0x102)]=exports[a9_0x2a7fb0(0x110)]=exports[a9_0x2a7fb0(0x11e)]=exports['ExcelService']=exports['ApiService']=exports[a9_0x2a7fb0(0xf6)]=exports['CacheService']=exports['QueueService']=exports['ApiError']=exports[a9_0x2a7fb0(0x10d)]=exports[a9_0x2a7fb0(0xfe)]=exports[a9_0x2a7fb0(0x127)]=exports[a9_0x2a7fb0(0x10c)]=void 0x0;const getAppsConfig_1=require(a9_0x2a7fb0(0x107));Object[a9_0x2a7fb0(0xf5)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x1ee4bb=a9_0x2a7fb0;return getAppsConfig_1[_0x1ee4bb(0x11d)];}}),__exportStar(require(a9_0x2a7fb0(0x124)),exports),__exportStar(require(a9_0x2a7fb0(0x100)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x10c),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require('./decorator/Action');Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x127),{'enumerable':!![],'get':function(){var _0x5750ea=a9_0x2a7fb0;return Action_1[_0x5750ea(0x127)];}});var ActionApitest_1=require(a9_0x2a7fb0(0x113));Object[a9_0x2a7fb0(0xf5)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x34f1d2=a9_0x2a7fb0;return ActionApitest_1[_0x34f1d2(0xfe)];}});var getRoutes_1=require(a9_0x2a7fb0(0xef));Object[a9_0x2a7fb0(0xf5)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x1ccc18=a9_0x2a7fb0;return getRoutes_1[_0x1ccc18(0x10d)];}});var ApiError_1=require(a9_0x2a7fb0(0xf9));Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0xfb),{'enumerable':!![],'get':function(){var _0x51ad7d=a9_0x2a7fb0;return ApiError_1[_0x51ad7d(0xfb)];}});var task_1=require(a9_0x2a7fb0(0x120));Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x109),{'enumerable':!![],'get':function(){var _0x2022db=a9_0x2a7fb0;return task_1[_0x2022db(0x109)];}});var cache_1=require(a9_0x2a7fb0(0x126));Object[a9_0x2a7fb0(0xf5)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x165867=a9_0x2a7fb0;return cache_1[_0x165867(0xec)];}});function a9_0x57e0(){var _0x37e116=['Scope','QueueService','3230656tNxsnd','2311947PbwCvh','Api','getRoutes','create','Files','ValidatorService','Fields','Query','./decorator/ActionApitest','__exportStar','./service/ExcelService','Param','106385nlBtaM','@anncic-api/event','./service/ApiService','Init','File','Logger','getAppsConfig','ValidatorError','28ZkUrdU','@midwayjs/task','@midwayjs/decorator','__esModule','@anncic-api/validator','./types/common','525151IlJOYR','@anncic-api/cache','Action','default','ExcelService','Body','Headers','CacheService','1679358KcuiQJ','Inject','./helper/getRoutes','ApiService','getOwnPropertyDescriptor','1091158LijjUY','call','290VfuTbA','defineProperty','EventService','Config','writable','./exception/ApiError','App','ApiError','1641894gqQxMA','ScopeEnum','Apitest','CustomConfiguration','./service/ApitestService','hasOwnProperty','Configuration','1LaSmLi','7cUDHPH','Provide','get','./helper/getAppsConfig'];a9_0x57e0=function(){return _0x37e116;};return a9_0x57e0();}var event_1=require(a9_0x2a7fb0(0x118));Object['defineProperty'](exports,a9_0x2a7fb0(0xf6),{'enumerable':!![],'get':function(){var _0xcdb0b5=a9_0x2a7fb0;return event_1[_0xcdb0b5(0xf6)];}});var ApiService_1=require(a9_0x2a7fb0(0x119));Object['defineProperty'](exports,a9_0x2a7fb0(0xf0),{'enumerable':!![],'get':function(){var _0x4164fc=a9_0x2a7fb0;return ApiService_1[_0x4164fc(0xf0)];}});var ExcelService_1=require(a9_0x2a7fb0(0x115));Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x129),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x2a7fb0(0x123));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x110),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a9_0x2a7fb0(0xf5)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3085ac=a9_0x2a7fb0;return configuration_1[_0x3085ac(0xff)];}});var decorator_1=require(a9_0x2a7fb0(0x121));Object['defineProperty'](exports,a9_0x2a7fb0(0x11b),{'enumerable':!![],'get':function(){var _0x51396b=a9_0x2a7fb0;return decorator_1[_0x51396b(0x11b)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x10f),{'enumerable':!![],'get':function(){var _0x3f7c20=a9_0x2a7fb0;return decorator_1[_0x3f7c20(0x10f)];}}),Object['defineProperty'](exports,a9_0x2a7fb0(0x111),{'enumerable':!![],'get':function(){var _0x4f3923=a9_0x2a7fb0;return decorator_1[_0x4f3923(0x111)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x12a),{'enumerable':!![],'get':function(){var _0x32baf8=a9_0x2a7fb0;return decorator_1[_0x32baf8(0x12a)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x116),{'enumerable':!![],'get':function(){var _0x5d12f3=a9_0x2a7fb0;return decorator_1[_0x5d12f3(0x116)];}}),Object['defineProperty'](exports,a9_0x2a7fb0(0x112),{'enumerable':!![],'get':function(){var _0x350972=a9_0x2a7fb0;return decorator_1[_0x350972(0x112)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x12b),{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object[a9_0x2a7fb0(0xf5)](exports,'Init',{'enumerable':!![],'get':function(){var _0x6c242e=a9_0x2a7fb0;return decorator_1[_0x6c242e(0x11a)];}});var decorator_2=require(a9_0x2a7fb0(0x121));Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0xfa),{'enumerable':!![],'get':function(){var _0x186262=a9_0x2a7fb0;return decorator_2[_0x186262(0xfa)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0xf7),{'enumerable':!![],'get':function(){var _0x9fcd8f=a9_0x2a7fb0;return decorator_2[_0x9fcd8f(0xf7)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x11c),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x105),{'enumerable':!![],'get':function(){var _0x5ee4f6=a9_0x2a7fb0;return decorator_2[_0x5ee4f6(0x105)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0xee),{'enumerable':!![],'get':function(){var _0xfe736c=a9_0x2a7fb0;return decorator_2[_0xfe736c(0xee)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0x108),{'enumerable':!![],'get':function(){var _0x5cd3c4=a9_0x2a7fb0;return decorator_2[_0x5cd3c4(0x108)];}}),Object[a9_0x2a7fb0(0xf5)](exports,a9_0x2a7fb0(0xfd),{'enumerable':!![],'get':function(){var _0x40e7bb=a9_0x2a7fb0;return decorator_2[_0x40e7bb(0xfd)];}}),global[a9_0x2a7fb0(0x11d)]=getAppsConfig_1[a9_0x2a7fb0(0x11d)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x2f1fb9=a10_0x494a;(function(_0x4ad4b2,_0x141701){var _0x25c957=a10_0x494a,_0x46cc18=_0x4ad4b2();while(!![]){try{var _0x407858=-parseInt(_0x25c957(0x1f1))/0x1*(parseInt(_0x25c957(0x1f9))/0x2)+-parseInt(_0x25c957(0x1f6))/0x3*(parseInt(_0x25c957(0x1dd))/0x4)+parseInt(_0x25c957(0x1fb))/0x5+parseInt(_0x25c957(0x208))/0x6+parseInt(_0x25c957(0x1d5))/0x7+parseInt(_0x25c957(0x1e5))/0x8*(parseInt(_0x25c957(0x1d9))/0x9)+-parseInt(_0x25c957(0x1ee))/0xa*(parseInt(_0x25c957(0x1fe))/0xb);if(_0x407858===_0x141701)break;else _0x46cc18['push'](_0x46cc18['shift']());}catch(_0x31c108){_0x46cc18['push'](_0x46cc18['shift']());}}}(a10_0x3c6a,0xa89a1));var __decorate=this&&this[a10_0x2f1fb9(0x1e4)]||function(_0x5abb5d,_0x285e16,_0x51768b,_0x110f60){var _0x24a36e=a10_0x2f1fb9,_0x21b083=arguments[_0x24a36e(0x1f2)],_0x5ae23b=_0x21b083<0x3?_0x285e16:_0x110f60===null?_0x110f60=Object[_0x24a36e(0x1d4)](_0x285e16,_0x51768b):_0x110f60,_0x57f63b;if(typeof Reflect===_0x24a36e(0x1ec)&&typeof Reflect['decorate']===_0x24a36e(0x1e3))_0x5ae23b=Reflect[_0x24a36e(0x202)](_0x5abb5d,_0x285e16,_0x51768b,_0x110f60);else{for(var _0x3302c3=_0x5abb5d[_0x24a36e(0x1f2)]-0x1;_0x3302c3>=0x0;_0x3302c3--)if(_0x57f63b=_0x5abb5d[_0x3302c3])_0x5ae23b=(_0x21b083<0x3?_0x57f63b(_0x5ae23b):_0x21b083>0x3?_0x57f63b(_0x285e16,_0x51768b,_0x5ae23b):_0x57f63b(_0x285e16,_0x51768b))||_0x5ae23b;}return _0x21b083>0x3&&_0x5ae23b&&Object['defineProperty'](_0x285e16,_0x51768b,_0x5ae23b),_0x5ae23b;},__metadata=this&&this[a10_0x2f1fb9(0x1d6)]||function(_0x46dd2b,_0x462f22){var _0x48bead=a10_0x2f1fb9;if(typeof Reflect===_0x48bead(0x1ec)&&typeof Reflect[_0x48bead(0x1cf)]==='function')return Reflect[_0x48bead(0x1cf)](_0x46dd2b,_0x462f22);};Object[a10_0x2f1fb9(0x1d7)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x2f1fb9(0x1d0)),decorator_1=require(a10_0x2f1fb9(0x1e6)),ApiError_1=require(a10_0x2f1fb9(0x206));function a10_0x494a(_0x16ddd5,_0x45fb9f){var _0x3c6a37=a10_0x3c6a();return a10_0x494a=function(_0x494a31,_0x573d4e){_0x494a31=_0x494a31-0x1cf;var _0x34b5ea=_0x3c6a37[_0x494a31];return _0x34b5ea;},a10_0x494a(_0x16ddd5,_0x45fb9f);}let ApiService=class ApiService{['password'](_0xd15e8c){var _0x331e05=a10_0x2f1fb9,_0x271d55;return _0xd15e8c?(0x0,crypto_js_1[_0x331e05(0x1f3)])(_0xd15e8c+(0x0,crypto_js_1[_0x331e05(0x1f3)])((0x0,crypto_js_1[_0x331e05(0x1f3)])(_0xd15e8c)['toString']()+((_0x271d55=this['config'])===null||_0x271d55===void 0x0?void 0x0:_0x271d55['password']))[_0x331e05(0x201)]())[_0x331e05(0x201)]():'';}[a10_0x2f1fb9(0x1e2)](_0x32f229,_0x1a7515,_0x2e1259=Date[a10_0x2f1fb9(0x1d1)]()){var _0x498ec0=a10_0x2f1fb9;return{'Token':_0x32f229,'Logintime':_0x2e1259,'Checkcode':this[_0x498ec0(0x1e9)](_0x32f229,_0x1a7515,_0x2e1259)};}['getsign'](_0x1fc5f6={}){var _0x5446c1=a10_0x2f1fb9;const _0x2d3e9c=[],_0x1ca63f=Object[_0x5446c1(0x1dc)](Object['entries'](_0x1fc5f6)['map'](_0x3404db=>[_0x3404db[0x0]['toLowerCase'](),_0x3404db[0x1]]));for(let _0x30f926 of[_0x5446c1(0x1fa),_0x5446c1(0x1fd),'token','logintime',_0x5446c1(0x1e9)]){if(typeof _0x1ca63f[_0x30f926]==_0x5446c1(0x1f8))throw new AnnError(ApiError_1[_0x5446c1(0x1e7)]['HEADERS_LACK'],{'message':_0x5446c1(0x1f0)+_0x30f926});_0x2d3e9c['push'](_0x30f926+'='+_0x1ca63f[_0x30f926]);}if(Math[_0x5446c1(0x1ff)](_0x1ca63f[_0x5446c1(0x1fd)])-Date[_0x5446c1(0x1d1)]()>this[_0x5446c1(0x1d3)]['timeout'])throw new AnnError(ApiError_1[_0x5446c1(0x1e7)][_0x5446c1(0x1df)]);if(!this['config'][_0x5446c1(0x1ef)][_0x1ca63f[_0x5446c1(0x1fa)]]||!this[_0x5446c1(0x1d3)][_0x5446c1(0x1ef)][_0x1ca63f[_0x5446c1(0x1fa)]]['secret']||!this[_0x5446c1(0x1d3)]['devices'][_0x1ca63f[_0x5446c1(0x1fa)]][_0x5446c1(0x1e9)])throw new AnnError(ApiError_1[_0x5446c1(0x1e7)][_0x5446c1(0x1f7)]);if(_0x1ca63f['token']&&_0x1ca63f['checkcode']!=this['checkcode'](_0x1ca63f[_0x5446c1(0x1eb)],_0x1ca63f[_0x5446c1(0x1fa)],_0x1ca63f['logintime']))throw new AnnError(ApiError_1[_0x5446c1(0x1e7)][_0x5446c1(0x1f4)]);return _0x2d3e9c['push'](_0x5446c1(0x1e0)+this[_0x5446c1(0x1d3)]['devices'][_0x1ca63f[_0x5446c1(0x1fa)]][_0x5446c1(0x1e1)]),(0x0,crypto_js_1[_0x5446c1(0x1f3)])(_0x2d3e9c[_0x5446c1(0x1ed)]()[_0x5446c1(0x1da)](''))[_0x5446c1(0x201)]();}['checkcode'](_0x3b30e3,_0x13fed4,_0x2c84b6=Date['now']()){var _0xb42e18=a10_0x2f1fb9,_0x1168e1,_0x3301c8,_0x3d27f2;if(!((_0x1168e1=this['config'])===null||_0x1168e1===void 0x0?void 0x0:_0x1168e1[_0xb42e18(0x1ef)][_0x13fed4])||!((_0x3d27f2=(_0x3301c8=this['config'])===null||_0x3301c8===void 0x0?void 0x0:_0x3301c8[_0xb42e18(0x1ef)][_0x13fed4])===null||_0x3d27f2===void 0x0?void 0x0:_0x3d27f2[_0xb42e18(0x1e9)]))throw new AnnError(ApiError_1[_0xb42e18(0x1e7)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0xb42e18(0x1f3)])(_0x3b30e3+(0x0,crypto_js_1[_0xb42e18(0x1f3)])(_0x2c84b6+this[_0xb42e18(0x1d3)][_0xb42e18(0x1ef)][_0x13fed4][_0xb42e18(0x1e9)])[_0xb42e18(0x201)]())[_0xb42e18(0x201)]();}[a10_0x2f1fb9(0x1d2)](_0x28ea95={}){var _0x144627=a10_0x2f1fb9;const _0xbf0084=Object[_0x144627(0x1dc)](Object[_0x144627(0x1db)](_0x28ea95)['map'](_0x2e4d6b=>[_0x2e4d6b[0x0][_0x144627(0x1e8)](),_0x2e4d6b[0x1]]));if(!(_0xbf0084===null||_0xbf0084===void 0x0?void 0x0:_0xbf0084[_0x144627(0x1fc)]))throw new AnnError(ApiError_1[_0x144627(0x1e7)][_0x144627(0x1de)],{'message':'缺少头信息:signature'});if((_0xbf0084===null||_0xbf0084===void 0x0?void 0x0:_0xbf0084[_0x144627(0x1fc)])!=this[_0x144627(0x1d8)](_0xbf0084))throw new AnnError(ApiError_1[_0x144627(0x1e7)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x2f1fb9(0x205)])('anncicapi'),__metadata('design:type',Object)],ApiService[a10_0x2f1fb9(0x207)],a10_0x2f1fb9(0x1d3),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x2f1fb9(0x1ea)])(),(0x0,decorator_1[a10_0x2f1fb9(0x203)])(decorator_1[a10_0x2f1fb9(0x200)][a10_0x2f1fb9(0x1f5)])],ApiService),exports[a10_0x2f1fb9(0x204)]=ApiService;function a10_0x3c6a(){var _0x40488b=['../exception/ApiError','prototype','1728036EGNoLv','metadata','crypto-js','now','checksign','config','getOwnPropertyDescriptor','6461819oWybWJ','__metadata','defineProperty','getsign','17379aGDZZy','join','entries','fromEntries','8HgwxqW','HEADERS_LACK','TIMEOUT','secret=','secret','getcheck','function','__decorate','1472HVGzBA','@midwayjs/decorator','ApiError','toLowerCase','checkcode','Provide','token','object','sort','35510rRCqgG','devices','缺少头信息:','939pmuXzM','length','MD5','HEADERS_CHECKCODE','Singleton','649335jhvjrp','HEADERS_DEVICE','undefined','542midMbQ','device','5378405wEgZEz','signature','requesttime','3916iozBUC','abs','ScopeEnum','toString','decorate','Scope','ApiService','Config'];a10_0x3c6a=function(){return _0x40488b;};return a10_0x3c6a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x261409=a11_0x30cf;(function(_0x17b971,_0x2e9f51){const _0x10df58=a11_0x30cf,_0x243daf=_0x17b971();while(!![]){try{const _0x23bc83=-parseInt(_0x10df58(0x118))/0x1*(-parseInt(_0x10df58(0xff))/0x2)+-parseInt(_0x10df58(0x116))/0x3*(-parseInt(_0x10df58(0xe3))/0x4)+-parseInt(_0x10df58(0x11b))/0x5+parseInt(_0x10df58(0x11d))/0x6+parseInt(_0x10df58(0x115))/0x7*(-parseInt(_0x10df58(0xf1))/0x8)+parseInt(_0x10df58(0x12c))/0x9*(parseInt(_0x10df58(0xf2))/0xa)+parseInt(_0x10df58(0xee))/0xb;if(_0x23bc83===_0x2e9f51)break;else _0x243daf['push'](_0x243daf['shift']());}catch(_0x11f4d7){_0x243daf['push'](_0x243daf['shift']());}}}(a11_0x4816,0xa66f6));var __decorate=this&&this[a11_0x261409(0x120)]||function(_0x179b25,_0x4cba69,_0x489250,_0x2cc21c){const _0x5738c9=a11_0x261409;var _0x352985=arguments[_0x5738c9(0x10c)],_0x4e37df=_0x352985<0x3?_0x4cba69:_0x2cc21c===null?_0x2cc21c=Object['getOwnPropertyDescriptor'](_0x4cba69,_0x489250):_0x2cc21c,_0x49cbdc;if(typeof Reflect===_0x5738c9(0x109)&&typeof Reflect['decorate']===_0x5738c9(0xf4))_0x4e37df=Reflect['decorate'](_0x179b25,_0x4cba69,_0x489250,_0x2cc21c);else{for(var _0x1e4276=_0x179b25[_0x5738c9(0x10c)]-0x1;_0x1e4276>=0x0;_0x1e4276--)if(_0x49cbdc=_0x179b25[_0x1e4276])_0x4e37df=(_0x352985<0x3?_0x49cbdc(_0x4e37df):_0x352985>0x3?_0x49cbdc(_0x4cba69,_0x489250,_0x4e37df):_0x49cbdc(_0x4cba69,_0x489250))||_0x4e37df;}return _0x352985>0x3&&_0x4e37df&&Object[_0x5738c9(0x101)](_0x4cba69,_0x489250,_0x4e37df),_0x4e37df;},__metadata=this&&this[a11_0x261409(0x10f)]||function(_0x564ebb,_0x44827b){const _0x3d8671=a11_0x261409;if(typeof Reflect===_0x3d8671(0x109)&&typeof Reflect[_0x3d8671(0x124)]===_0x3d8671(0xf4))return Reflect['metadata'](_0x564ebb,_0x44827b);},__param=this&&this['__param']||function(_0xc3a456,_0x42834d){return function(_0x5c0e1b,_0x156673){_0x42834d(_0x5c0e1b,_0x156673,_0xc3a456);};};Object[a11_0x261409(0x101)](exports,a11_0x261409(0x100),{'value':!![]}),exports[a11_0x261409(0xf8)]=exports[a11_0x261409(0xfe)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x261409(0x102)),decorator_1=require(a11_0x261409(0x117)),decorator_2=require(a11_0x261409(0x117)),getRoutes_1=require('../helper/getRoutes');function a11_0x30cf(_0x3ff647,_0x3a9c34){const _0x481637=a11_0x4816();return a11_0x30cf=function(_0x30cf50,_0x118022){_0x30cf50=_0x30cf50-0xe3;let _0x3b824e=_0x481637[_0x30cf50];return _0x3b824e;},a11_0x30cf(_0x3ff647,_0x3a9c34);}function a11_0x4816(){const _0x3ff9f3=['public,\x20max-age=604800','Param','3508215wqChFi','/apiteststatic/*','728964FYwqMF','Singleton','content-type','__decorate','Config','apitestmodule','url','metadata','isDevelopmentEnvironment','Provide','replace','MidwayEnvironmentService','design:type','Environment','apitesthtml','1717137eGFRbw','__apiList__','summary','28shONdt','apiteststatic','devices','getRoutes','ctx','push','design:returntype','apidoc','/index.html','substring','/apiteststatic/','3644762EsgAEM','routes','prototype','64DorwBU','10yxABPY','utf-8','function','apitest','request','application/javascript;\x20charset=utf-8','ApitestStaticController','../../public/','Scope','join','extname','description','ApitestService','1465306EHeuVT','__esModule','defineProperty','@midwayjs/core','design:paramtypes','ScopeEnum','Inject','filepath','existsSync','config','object','.css','text/css;\x20charset=utf-8','length','Get','readFileSync','__metadata','method','anncicapi','route','../../public/index.html','set','155953kUcwOW','79419JMDXRv','@midwayjs/decorator','1WMTASf'];a11_0x4816=function(){return _0x3ff9f3;};return a11_0x4816();}let ApitestService=class ApitestService{async[a11_0x261409(0xea)](_0x27a0d2){const _0x2b8717=a11_0x261409,_0x236211=(0x0,getRoutes_1[_0x2b8717(0xe6)])(_0x27a0d2),_0x104bb9=[];for(let _0x1de07c in _0x236211){for(let _0x46c892 in _0x236211[_0x1de07c][_0x2b8717(0xef)]){let _0x4423c4=_0x236211[_0x1de07c]['routes'][_0x46c892],_0x216b6b=[];for(let _0x2c20cc in _0x4423c4['request']){_0x216b6b[_0x2b8717(0xe8)](_0x4423c4[_0x2b8717(0xf6)][_0x2c20cc]);}_0x104bb9[_0x2b8717(0xe8)]({'title':_0x236211[_0x1de07c]['summary']+':'+_0x4423c4[_0x2b8717(0x12e)],'prefix':_0x236211[_0x1de07c]['prefix'],'router':_0x4423c4[_0x2b8717(0x112)],'method':_0x4423c4[_0x2b8717(0x110)],'describe':_0x4423c4[_0x2b8717(0xfd)]||'','filepath':_0x236211[_0x1de07c][_0x2b8717(0x106)]||'','request':_0x216b6b});}}const _0x196293=(0x0,path_1[_0x2b8717(0xfb)])(__dirname,_0x2b8717(0x113));return(0x0,fs_1[_0x2b8717(0x10e)])(_0x196293,{'encoding':_0x2b8717(0xf3)})[_0x2b8717(0x127)](/__res__/g,_0x2b8717(0xed))[_0x2b8717(0x127)](_0x2b8717(0x12d),JSON['stringify'](_0x104bb9))['replace']('__devices__',JSON['stringify'](this[_0x2b8717(0x108)][_0x2b8717(0xe5)]));}};__decorate([(0x0,decorator_2[a11_0x261409(0x121)])(a11_0x261409(0x111)),__metadata('design:type',Object)],ApitestService[a11_0x261409(0xf0)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x261409(0x126)])(a11_0x261409(0xf5)),(0x0,decorator_2['Scope'])(decorator_2[a11_0x261409(0x104)][a11_0x261409(0x11e)])],ApitestService),exports[a11_0x261409(0xfe)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x261409(0x12b)](){const _0xbd2a06=a11_0x261409;if(this[_0xbd2a06(0xf5)]){const _0x3e0917={'module':![]};return this[_0xbd2a06(0x12a)][_0xbd2a06(0x125)]()&&(_0x3e0917[_0xbd2a06(0x106)]=!![]),await this[_0xbd2a06(0xfe)]['apidoc'](_0x3e0917);}return'';}async[a11_0x261409(0x122)](_0x29864a){const _0x2d0e9c=a11_0x261409;if(this[_0x2d0e9c(0xf5)]){const _0x111c46={'module':_0x29864a};return this[_0x2d0e9c(0x12a)][_0x2d0e9c(0x125)]()&&(_0x111c46['filepath']=!![]),await this[_0x2d0e9c(0xfe)][_0x2d0e9c(0xea)](_0x111c46);}return'';}async[a11_0x261409(0xe4)](){const _0x245775=a11_0x261409;if((0x0,path_1[_0x245775(0xfc)])(this['ctx']['request'][_0x245775(0x123)])){var _0xc1b795=(0x0,path_1[_0x245775(0xfb)])(__dirname,_0x245775(0xf9)+this[_0x245775(0xe7)][_0x245775(0xf6)]['url']['replace'](_0x245775(0xed),'/'));if(_0xc1b795[_0x245775(0xec)](_0xc1b795['length']-0xb)!=_0x245775(0xeb)){this[_0x245775(0xe7)]['set']('cache-control',_0x245775(0x119));if((0x0,path_1['extname'])(this[_0x245775(0xe7)]['request'][_0x245775(0x123)])=='.js')this['ctx'][_0x245775(0x114)](_0x245775(0x11f),_0x245775(0xf7));else(0x0,path_1[_0x245775(0xfc)])(this[_0x245775(0xe7)][_0x245775(0xf6)][_0x245775(0x123)])==_0x245775(0x10a)&&this['ctx'][_0x245775(0x114)]('content-type',_0x245775(0x10b));return(0x0,fs_1[_0x245775(0x107)])(_0xc1b795)&&(0x0,fs_1[_0x245775(0x10e)])(_0xc1b795,{'encoding':_0x245775(0xf3)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x261409(0x105)])(),__metadata(a11_0x261409(0x129),Object)],ApitestStaticController[a11_0x261409(0xf0)],a11_0x261409(0xe7),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',core_1[a11_0x261409(0x128)])],ApitestStaticController[a11_0x261409(0xf0)],a11_0x261409(0x12a),void 0x0),__decorate([(0x0,decorator_2[a11_0x261409(0x105)])(),__metadata(a11_0x261409(0x129),ApitestService)],ApitestStaticController[a11_0x261409(0xf0)],a11_0x261409(0xfe),void 0x0),__decorate([(0x0,decorator_2['Config'])(a11_0x261409(0xf5)),__metadata(a11_0x261409(0x129),Boolean)],ApitestStaticController['prototype'],a11_0x261409(0xf5),void 0x0),__decorate([(0x0,decorator_2[a11_0x261409(0x121)])(a11_0x261409(0x111)),__metadata(a11_0x261409(0x129),Object)],ApitestStaticController[a11_0x261409(0xf0)],a11_0x261409(0x108),void 0x0),__decorate([(0x0,decorator_1[a11_0x261409(0x10d)])('/apitest'),__metadata(a11_0x261409(0x129),Function),__metadata(a11_0x261409(0x103),[]),__metadata(a11_0x261409(0xe9),Promise)],ApitestStaticController['prototype'],a11_0x261409(0x12b),null),__decorate([(0x0,decorator_1[a11_0x261409(0x10d)])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a11_0x261409(0x11a)])('module')),__metadata(a11_0x261409(0x129),Function),__metadata(a11_0x261409(0x103),[String]),__metadata(a11_0x261409(0xe9),Promise)],ApitestStaticController[a11_0x261409(0xf0)],'apitestmodule',null),__decorate([(0x0,decorator_1['Get'])(a11_0x261409(0x11c)),__metadata(a11_0x261409(0x129),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x261409(0xe9),Promise)],ApitestStaticController[a11_0x261409(0xf0)],a11_0x261409(0xe4),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a11_0x261409(0xfa)])(decorator_2[a11_0x261409(0x104)]['Request'])],ApitestStaticController),exports[a11_0x261409(0xf8)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x5044a5=a12_0x257a;(function(_0x230672,_0x4e1ea8){const _0x338add=a12_0x257a,_0xf0c299=_0x230672();while(!![]){try{const _0x46387f=parseInt(_0x338add(0xba))/0x1*(-parseInt(_0x338add(0xa3))/0x2)+parseInt(_0x338add(0xbe))/0x3+-parseInt(_0x338add(0xb0))/0x4+parseInt(_0x338add(0x96))/0x5*(parseInt(_0x338add(0x90))/0x6)+parseInt(_0x338add(0xaa))/0x7+parseInt(_0x338add(0xc7))/0x8*(parseInt(_0x338add(0xb1))/0x9)+parseInt(_0x338add(0x98))/0xa*(-parseInt(_0x338add(0xcc))/0xb);if(_0x46387f===_0x4e1ea8)break;else _0xf0c299['push'](_0xf0c299['shift']());}catch(_0xe0cfe){_0xf0c299['push'](_0xf0c299['shift']());}}}(a12_0x5531,0x7770e));function a12_0x5531(){const _0x4244a7=['columns','.xlsx','function','getAppDir','handler','decorate','2VSuNHW','Workbook','App','koa-send','frozen','value','design:type','5554899nNQJYq','/public/xlsx','endsWith','prototype','addRow','header','812596XLtlpv','302238lYyMbe','xlsx','random','addWorksheet','get','getCell','download','trim','Api\x20Excel\x20Error:\x20','417112HbtmBz','ExcelService','app','col','548280rWOtNJ','__decorate','Scope','object','eachCell','rowCount','push','@midwayjs/decorator','key','168SzpqvB','writeFile','startsWith','findRows','existsSync','3303674slaIgd','exceljs','85860DVHFiE','cellCount','__esModule','length','metadata','worksheets','10iTuuyq','defineProperty','20MZCubE','export','replace','mkdirSync','Provide'];a12_0x5531=function(){return _0x4244a7;};return a12_0x5531();}var __decorate=this&&this[a12_0x5044a5(0xbf)]||function(_0x2777e4,_0x572b39,_0xdc22d6,_0x8be266){const _0x1fd041=a12_0x5044a5;var _0x245210=arguments[_0x1fd041(0x93)],_0x1fc521=_0x245210<0x3?_0x572b39:_0x8be266===null?_0x8be266=Object['getOwnPropertyDescriptor'](_0x572b39,_0xdc22d6):_0x8be266,_0x510168;if(typeof Reflect===_0x1fd041(0xc1)&&typeof Reflect[_0x1fd041(0xa2)]===_0x1fd041(0x9f))_0x1fc521=Reflect['decorate'](_0x2777e4,_0x572b39,_0xdc22d6,_0x8be266);else{for(var _0x5bf471=_0x2777e4['length']-0x1;_0x5bf471>=0x0;_0x5bf471--)if(_0x510168=_0x2777e4[_0x5bf471])_0x1fc521=(_0x245210<0x3?_0x510168(_0x1fc521):_0x245210>0x3?_0x510168(_0x572b39,_0xdc22d6,_0x1fc521):_0x510168(_0x572b39,_0xdc22d6))||_0x1fc521;}return _0x245210>0x3&&_0x1fc521&&Object[_0x1fd041(0x97)](_0x572b39,_0xdc22d6,_0x1fc521),_0x1fc521;},__metadata=this&&this['__metadata']||function(_0x1f4cef,_0x13af49){const _0x3b861e=a12_0x5044a5;if(typeof Reflect===_0x3b861e(0xc1)&&typeof Reflect[_0x3b861e(0x94)]===_0x3b861e(0x9f))return Reflect[_0x3b861e(0x94)](_0x1f4cef,_0x13af49);};Object[a12_0x5044a5(0x97)](exports,a12_0x5044a5(0x92),{'value':!![]}),exports[a12_0x5044a5(0xbb)]=void 0x0;function a12_0x257a(_0x1ae7c9,_0xe9fede){const _0x55319f=a12_0x5531();return a12_0x257a=function(_0x257a14,_0x266438){_0x257a14=_0x257a14-0x90;let _0x3289e2=_0x55319f[_0x257a14];return _0x3289e2;},a12_0x257a(_0x1ae7c9,_0xe9fede);}const fs=require('fs'),exceljs=require(a12_0x5044a5(0xcd)),koasend=require(a12_0x5044a5(0xa6)),decorator_1=require(a12_0x5044a5(0xc5));let ExcelService=class ExcelService{async['parse'](_0x43a9cc,_0x5886d8,_0x248879=[0x0]){const _0x4fd09a=a12_0x5044a5;var _0x2c7832,_0x1babef;const _0x3b9c78=new exceljs[(_0x4fd09a(0xa4))](),_0x5a8ba5=[];let _0x35459f=_0x43a9cc[_0x4fd09a(0x9a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x35459f===null||_0x35459f===void 0x0?void 0x0:_0x35459f[_0x4fd09a(0xc9)]('/'))&&(_0x35459f=this[_0x4fd09a(0xbc)][_0x4fd09a(0xa0)]()+'/'+_0x35459f);try{await _0x3b9c78[_0x4fd09a(0xb2)]['readFile'](_0x35459f);}catch(_0x551376){return console['log'](_0x4fd09a(0xb9)+_0x35459f+'\x20is\x20read\x20fail'),_0x5a8ba5;}for(const _0x36a318 of _0x248879){const _0xb6ec01=lodash['isNumber'](_0x36a318)?((_0x2c7832=_0x3b9c78[_0x4fd09a(0x95)])===null||_0x2c7832===void 0x0?void 0x0:_0x2c7832[_0x36a318])||undefined:_0x3b9c78['getWorksheet'](_0x36a318);if(_0xb6ec01){var _0x1259ef=0x1;const _0x242792=_0xb6ec01['getRow'](0x1),_0x4404db=await new Promise(_0x2f97eb=>{const _0x34d66c=_0x4fd09a,_0x50cac6={};_0x242792[_0x34d66c(0xc2)]((_0x33ee77,_0x408121)=>{const _0x3a66c6=_0x34d66c;for(const _0x1d7a62 of _0x5886d8){if(_0x33ee77[_0x3a66c6(0xa8)]==_0x1d7a62['header'])_0x1259ef=0x2,_0x50cac6[_0x1d7a62[_0x3a66c6(0xc6)]]={'header':_0x33ee77[_0x3a66c6(0xbd)],'handler':_0x1d7a62['handler']};else{if(!_0x50cac6[_0x1d7a62['key']])try{const _0x46565c=_0x242792[_0x3a66c6(0xb6)](_0x1d7a62[_0x3a66c6(0xaf)]);_0x46565c&&(_0x50cac6[_0x1d7a62['key']]={'header':_0x46565c['col'],'handler':_0x1d7a62[_0x3a66c6(0xa1)]});}catch{}}}_0x242792[_0x3a66c6(0x91)]==_0x408121&&_0x2f97eb(_0x50cac6);});});for(const _0x41e332 of _0xb6ec01[_0x4fd09a(0xca)](_0x1259ef,_0xb6ec01[_0x4fd09a(0xc3)])){const _0x19c30a={};for(const _0x41d51e in _0x4404db){_0x4404db[_0x41d51e][_0x4fd09a(0xaf)]&&(typeof((_0x1babef=_0x4404db[_0x41d51e])===null||_0x1babef===void 0x0?void 0x0:_0x1babef[_0x4fd09a(0xa1)])=='function'?_0x19c30a[_0x41d51e]=_0x4404db[_0x41d51e]['handler'](_0x41e332[_0x4fd09a(0xb6)](lodash[_0x4fd09a(0xb8)](''+_0x4404db[_0x41d51e]['header'],'\x20'))['toString']()):_0x19c30a[_0x41d51e]=_0x41e332['getCell'](_0x4404db[_0x41d51e][_0x4fd09a(0xaf)])['toString']());}Object['keys'](_0x19c30a)[_0x4fd09a(0x93)]>0x0&&_0x5a8ba5[_0x4fd09a(0xc4)](_0x19c30a);}}}return _0x5a8ba5;}async[a12_0x5044a5(0x99)](_0x44f1ae,_0x301317,_0x5066f6,_0x15e9b3='public/xlsx'){const _0x4d6c47=a12_0x5044a5;var _0x165661,_0x2755a3;const _0x38aa1b=new exceljs['Workbook'](),_0x37a00a={},_0x4b3a77=[],_0x1ecf70=_0x38aa1b[_0x4d6c47(0xb4)]('Sheet\x201',{'views':[{'state':_0x4d6c47(0xa7),'xSplit':0x1}]});for(const _0x5cfbbd in _0x301317){_0x37a00a[_0x301317[_0x5cfbbd][_0x4d6c47(0xc6)]]=_0x301317[_0x5cfbbd]['header'],_0x4b3a77[_0x4d6c47(0xc4)]({'header':_0x301317[_0x5cfbbd]['header'],'key':(_0x165661=_0x301317[_0x5cfbbd])===null||_0x165661===void 0x0?void 0x0:_0x165661[_0x4d6c47(0xc6)][_0x4d6c47(0x9a)](/\./g,'_')});}_0x1ecf70[_0x4d6c47(0x9d)]=_0x4b3a77;for(const _0x4109e4 of _0x5066f6){const _0xd5534b={};for(const _0x5b8c30 in _0x301317){typeof((_0x2755a3=_0x301317[_0x5b8c30])===null||_0x2755a3===void 0x0?void 0x0:_0x2755a3[_0x4d6c47(0xa1)])=='function'?_0xd5534b[_0x301317[_0x5b8c30][_0x4d6c47(0xc6)][_0x4d6c47(0x9a)](/\./g,'_')]=await _0x301317[_0x5b8c30][_0x4d6c47(0xa1)](_0x4109e4):_0xd5534b[_0x301317[_0x5b8c30][_0x4d6c47(0xc6)][_0x4d6c47(0x9a)](/\./g,'_')]=lodash[_0x4d6c47(0xb5)](_0x4109e4,_0x301317[_0x5b8c30][_0x4d6c47(0xc6)],'');}_0x1ecf70[_0x4d6c47(0xae)](_0xd5534b);}let _0x1f3608='';const _0x2ff545=_0x44f1ae+'-'+lodash[_0x4d6c47(0xb3)](0x2710,0x1869f)+_0x4d6c47(0x9e);if(_0x15e9b3&&_0x15e9b3['startsWith']('/'))_0x1f3608=_0x15e9b3+'/'+_0x2ff545;else _0x15e9b3&&!_0x15e9b3[_0x4d6c47(0xc9)]('/')&&!_0x15e9b3[_0x4d6c47(0xc9)]('\x5c')?_0x1f3608=this[_0x4d6c47(0xbc)][_0x4d6c47(0xa0)]()+'/'+_0x15e9b3+'/'+_0x2ff545:_0x1f3608=this[_0x4d6c47(0xbc)][_0x4d6c47(0xa0)]()+_0x4d6c47(0xab);return(_0x1f3608[_0x4d6c47(0xac)]('/')||_0x1f3608[_0x4d6c47(0xac)]('\x5c'))&&(_0x1f3608=_0x1f3608['substring'](0x0,_0x1f3608[_0x4d6c47(0x93)]-0x1)),_0x1f3608=_0x1f3608[_0x4d6c47(0x9a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x4d6c47(0xcb)](_0x1f3608)&&fs[_0x4d6c47(0x9b)](_0x1f3608,{'recursive':!![]}),await _0x38aa1b[_0x4d6c47(0xb2)][_0x4d6c47(0xc8)]((_0x1f3608+'/'+_0x2ff545)[_0x4d6c47(0x9a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x2ff545,'filepath':_0x1f3608};}async[a12_0x5044a5(0xb7)](_0x2bb6af,_0x40dad8){await koasend(_0x2bb6af,'/public/xlsx/'+_0x40dad8);}};__decorate([(0x0,decorator_1[a12_0x5044a5(0xa5)])(),__metadata(a12_0x5044a5(0xa9),Object)],ExcelService[a12_0x5044a5(0xad)],a12_0x5044a5(0xbc),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x5044a5(0x9c)])(),(0x0,decorator_1[a12_0x5044a5(0xc0)])(decorator_1['ScopeEnum']['Singleton'])],ExcelService),exports[a12_0x5044a5(0xbb)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a13_0x5d2df6=a13_0xfe51;(function(_0x49cbd4,_0x3bb1ac){var _0x456e6c=a13_0xfe51,_0x266a4f=_0x49cbd4();while(!![]){try{var _0x5b8006=parseInt(_0x456e6c(0x7f))/0x1*(parseInt(_0x456e6c(0x86))/0x2)+-parseInt(_0x456e6c(0x83))/0x3*(parseInt(_0x456e6c(0x87))/0x4)+-parseInt(_0x456e6c(0x88))/0x5+parseInt(_0x456e6c(0x7c))/0x6+parseInt(_0x456e6c(0x81))/0x7+parseInt(_0x456e6c(0x82))/0x8*(parseInt(_0x456e6c(0x7e))/0x9)+-parseInt(_0x456e6c(0x80))/0xa;if(_0x5b8006===_0x3bb1ac)break;else _0x266a4f['push'](_0x266a4f['shift']());}catch(_0x188915){_0x266a4f['push'](_0x266a4f['shift']());}}}(a13_0x125b,0xacc28));function a13_0x125b(){var _0xf0ccf8=['7830823HJGhDQ','1873448JsGssx','4193634WEuatG','APPSCONFIG_KEY','anncic-api:apps:config','2rGEXoG','4uEzwmh','3492950exUgnw','anncic-api:action','ACTION_KEY','__esModule','1373274vxrzOE','ACTION_ROUTE_KEY','45WIILFp','1041341pfkNiY','7557220DnuGpT'];a13_0x125b=function(){return _0xf0ccf8;};return a13_0x125b();}function a13_0xfe51(_0x6331ac,_0x5e081d){var _0x125bac=a13_0x125b();return a13_0xfe51=function(_0xfe51c8,_0x4719c4){_0xfe51c8=_0xfe51c8-0x7c;var _0x3e1f2a=_0x125bac[_0xfe51c8];return _0x3e1f2a;},a13_0xfe51(_0x6331ac,_0x5e081d);}Object['defineProperty'](exports,a13_0x5d2df6(0x8b),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x5d2df6(0x84)]=exports[a13_0x5d2df6(0x7d)]=exports[a13_0x5d2df6(0x8a)]=void 0x0,exports[a13_0x5d2df6(0x8a)]=a13_0x5d2df6(0x89),exports[a13_0x5d2df6(0x7d)]='anncic-api:action:route',exports[a13_0x5d2df6(0x84)]=a13_0x5d2df6(0x85);class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x50ba90=a14_0x3314;(function(_0x53d88b,_0x3040d9){var _0x4f302b=a14_0x3314,_0x440873=_0x53d88b();while(!![]){try{var _0x4d257d=-parseInt(_0x4f302b(0x160))/0x1*(parseInt(_0x4f302b(0x15f))/0x2)+-parseInt(_0x4f302b(0x151))/0x3+parseInt(_0x4f302b(0x16d))/0x4+parseInt(_0x4f302b(0x16b))/0x5+parseInt(_0x4f302b(0x150))/0x6*(parseInt(_0x4f302b(0x168))/0x7)+parseInt(_0x4f302b(0x152))/0x8+-parseInt(_0x4f302b(0x164))/0x9;if(_0x4d257d===_0x3040d9)break;else _0x440873['push'](_0x440873['shift']());}catch(_0x491b72){_0x440873['push'](_0x440873['shift']());}}}(a14_0x4310,0x6dfe8));function a14_0x4310(){var _0x1cc238=['排序方式','length','string','min','_order','__esModule','trim','第一页为1,第二页为2','Rule','object','valid','8qjtbUZ','3299XPprjK','_isreverse','1:是;0:否','PageDTO','8378145RbShUn','decorate','RuleType','getOwnPropertyDescriptor','56TkiXZF','defineProperty','__decorate','4344590gPpERm','是否倒序','103572YSLSIX','function','分页数量','metadata','number','design:type','integer','192948tiCnQk','1943085ZTqgwn','7122056txHbza','prototype'];a14_0x4310=function(){return _0x1cc238;};return a14_0x4310();}var __decorate=this&&this[a14_0x50ba90(0x16a)]||function(_0x414bf7,_0x58d1d5,_0x12a913,_0x1e94e){var _0x5d96ae=a14_0x50ba90,_0x521774=arguments['length'],_0x1c61c3=_0x521774<0x3?_0x58d1d5:_0x1e94e===null?_0x1e94e=Object[_0x5d96ae(0x167)](_0x58d1d5,_0x12a913):_0x1e94e,_0x1136f0;if(typeof Reflect===_0x5d96ae(0x15d)&&typeof Reflect[_0x5d96ae(0x165)]===_0x5d96ae(0x16e))_0x1c61c3=Reflect[_0x5d96ae(0x165)](_0x414bf7,_0x58d1d5,_0x12a913,_0x1e94e);else{for(var _0x20b9d0=_0x414bf7[_0x5d96ae(0x155)]-0x1;_0x20b9d0>=0x0;_0x20b9d0--)if(_0x1136f0=_0x414bf7[_0x20b9d0])_0x1c61c3=(_0x521774<0x3?_0x1136f0(_0x1c61c3):_0x521774>0x3?_0x1136f0(_0x58d1d5,_0x12a913,_0x1c61c3):_0x1136f0(_0x58d1d5,_0x12a913))||_0x1c61c3;}return _0x521774>0x3&&_0x1c61c3&&Object[_0x5d96ae(0x169)](_0x58d1d5,_0x12a913,_0x1c61c3),_0x1c61c3;},__metadata=this&&this['__metadata']||function(_0xa63448,_0x7bf8e5){var _0x282ab5=a14_0x50ba90;if(typeof Reflect===_0x282ab5(0x15d)&&typeof Reflect['metadata']===_0x282ab5(0x16e))return Reflect[_0x282ab5(0x170)](_0xa63448,_0x7bf8e5);};function a14_0x3314(_0x3b0125,_0x8200f4){var _0x431000=a14_0x4310();return a14_0x3314=function(_0x3314ae,_0x60043a){_0x3314ae=_0x3314ae-0x150;var _0x2c4e6f=_0x431000[_0x3314ae];return _0x2c4e6f;},a14_0x3314(_0x3b0125,_0x8200f4);}Object[a14_0x50ba90(0x169)](exports,a14_0x50ba90(0x159),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a14_0x50ba90(0x15c)])('分页',validator_1[a14_0x50ba90(0x166)]['number']()[a14_0x50ba90(0x173)]()[a14_0x50ba90(0x157)](0x1),a14_0x50ba90(0x15b)),__metadata('design:type',Number)],PageDTO[a14_0x50ba90(0x153)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x50ba90(0x15c)])(a14_0x50ba90(0x16f),validator_1['RuleType'][a14_0x50ba90(0x171)]()['integer']()[a14_0x50ba90(0x157)](0x1)),__metadata(a14_0x50ba90(0x172),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x50ba90(0x15c)])(a14_0x50ba90(0x154),validator_1['RuleType'][a14_0x50ba90(0x156)]()[a14_0x50ba90(0x15a)]()),__metadata(a14_0x50ba90(0x172),String)],PageDTO[a14_0x50ba90(0x153)],a14_0x50ba90(0x158),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x50ba90(0x16c),validator_1[a14_0x50ba90(0x166)]['number']()[a14_0x50ba90(0x173)]()[a14_0x50ba90(0x15e)](0x0,0x1),a14_0x50ba90(0x162)),__metadata(a14_0x50ba90(0x172),Number)],PageDTO['prototype'],a14_0x50ba90(0x161),void 0x0),exports[a14_0x50ba90(0x163)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
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.17",
|
|
21
|
+
"@anncic-api/core": "^1.1.17",
|
|
22
|
+
"@anncic-api/event": "^1.1.17",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.17",
|
|
24
|
+
"@anncic-api/validator": "^1.1.17",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
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.17",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-bodyparser": "^4.3.0",
|
|
35
35
|
"koa-send": "^5.0.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"javascript-obfuscator": "2.19.0",
|
|
42
42
|
"typescript": "^4.7.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "70cdabc7701ca1ceb80fcccbfb5a3cddbf48f9fa"
|
|
45
45
|
}
|