anncic-api 1.1.15 → 1.1.16
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 +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x2fd192=a0_0x1655;(function(_0x3553cf,_0x2e1bef){var _0x4ef663=a0_0x1655,_0x3025df=_0x3553cf();while(!![]){try{var _0x318956=-parseInt(_0x4ef663(0x10d))/0x1*(parseInt(_0x4ef663(0x114))/0x2)+-parseInt(_0x4ef663(0x119))/0x3+-parseInt(_0x4ef663(0x10e))/0x4+-parseInt(_0x4ef663(0x112))/0x5+parseInt(_0x4ef663(0x110))/0x6*(parseInt(_0x4ef663(0x118))/0x7)+parseInt(_0x4ef663(0x117))/0x8+-parseInt(_0x4ef663(0x11b))/0x9*(-parseInt(_0x4ef663(0x10f))/0xa);if(_0x318956===_0x2e1bef)break;else _0x3025df['push'](_0x3025df['shift']());}catch(_0x286e42){_0x3025df['push'](_0x3025df['shift']());}}}(a0_0x3d27,0x5f71e));function a0_0x1655(_0x2c4921,_0x2fbc7e){var _0x3d2788=a0_0x3d27();return a0_0x1655=function(_0x16555a,_0x2bdefd){_0x16555a=_0x16555a-0x10d;var _0x681ce=_0x3d2788[_0x16555a];return _0x681ce;},a0_0x1655(_0x2c4921,_0x2fbc7e);}Object[a0_0x2fd192(0x113)](exports,a0_0x2fd192(0x11a),{'value':!![]}),exports['default']=_0x50975f=>{var _0xc89e55=a0_0x2fd192;return{'apitest':!![],'keys':_0x50975f[_0xc89e55(0x116)],'anncicapi':{'timeout':0x1388,'password':_0xc89e55(0x11c),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x50975f[_0xc89e55(0x111)]+_0xc89e55(0x115),'cleanTimeout':0x5265c00}};};function a0_0x3d27(){var _0x5e4930=['appDir','389065RbMRDx','defineProperty','104rdfPhm','/runtime/.upload','name','465152alPeUc','1981VUpdKO','1520640kEYdSt','__esModule','1564461ILdezw','zhiulanuiy7892387985hnoi','12221PxqJGz','2277352HqdXoK','100ZHyIxR','8142xOiEAk'];a0_0x3d27=function(){return _0x5e4930;};return a0_0x3d27();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x3a88ea=a1_0x3710;function a1_0x3710(_0x1adbd7,_0x55e2bc){var _0x2805bb=a1_0x2805();return a1_0x3710=function(_0x371071,_0x3e7fa4){_0x371071=_0x371071-0xae;var _0x4148f0=_0x2805bb[_0x371071];return _0x4148f0;},a1_0x3710(_0x1adbd7,_0x55e2bc);}(function(_0x26056e,_0x36f915){var _0x18998b=a1_0x3710,_0x335abb=_0x26056e();while(!![]){try{var _0x178287=parseInt(_0x18998b(0xb1))/0x1*(-parseInt(_0x18998b(0xba))/0x2)+-parseInt(_0x18998b(0xb7))/0x3*(-parseInt(_0x18998b(0xae))/0x4)+parseInt(_0x18998b(0xb8))/0x5+parseInt(_0x18998b(0xb6))/0x6+parseInt(_0x18998b(0xb4))/0x7*(-parseInt(_0x18998b(0xb2))/0x8)+-parseInt(_0x18998b(0xaf))/0x9+-parseInt(_0x18998b(0xb0))/0xa*(-parseInt(_0x18998b(0xb5))/0xb);if(_0x178287===_0x36f915)break;else _0x335abb['push'](_0x335abb['shift']());}catch(_0x4fcbab){_0x335abb['push'](_0x335abb['shift']());}}}(a1_0x2805,0x6282e));function a1_0x2805(){var _0x59e6e1=['12esoMEG','7072632qtIgAh','1630270JeXTRH','12613HygFfC','8MSrZHf','default','3869971djpKYJ','11BMvgTq','3229488KWZSTE','312204iVfJhZ','3958945UXPJtv','defineProperty','10FLSmUn'];a1_0x2805=function(){return _0x59e6e1;};return a1_0x2805();}Object[a1_0x3a88ea(0xb9)](exports,'__esModule',{'value':!![]}),exports[a1_0x3a88ea(0xb3)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0xc6c3f2=a2_0x3833;(function(_0x2a9ba3,_0x40f191){const _0x223134=a2_0x3833,_0x1ce171=_0x2a9ba3();while(!![]){try{const _0x244110=-parseInt(_0x223134(0x71))/0x1+parseInt(_0x223134(0x9d))/0x2*(parseInt(_0x223134(0x6b))/0x3)+parseInt(_0x223134(0x92))/0x4+parseInt(_0x223134(0x81))/0x5*(-parseInt(_0x223134(0xbb))/0x6)+parseInt(_0x223134(0x8d))/0x7+-parseInt(_0x223134(0xb0))/0x8+parseInt(_0x223134(0xb1))/0x9;if(_0x244110===_0x40f191)break;else _0x1ce171['push'](_0x1ce171['shift']());}catch(_0x6609eb){_0x1ce171['push'](_0x1ce171['shift']());}}}(a2_0x40e3,0x7ea06));function a2_0x3833(_0x1e0ec6,_0x118610){const _0x40e33a=a2_0x40e3();return a2_0x3833=function(_0x383313,_0x22f953){_0x383313=_0x383313-0x6b;let _0xb417ba=_0x40e33a[_0x383313];return _0xb417ba;},a2_0x3833(_0x1e0ec6,_0x118610);}var __decorate=this&&this['__decorate']||function(_0x5cf662,_0x1eef20,_0x30ddad,_0x30565c){const _0x1acc46=a2_0x3833;var _0x264cab=arguments[_0x1acc46(0xbd)],_0x5dcd58=_0x264cab<0x3?_0x1eef20:_0x30565c===null?_0x30565c=Object[_0x1acc46(0xba)](_0x1eef20,_0x30ddad):_0x30565c,_0x5320ba;if(typeof Reflect===_0x1acc46(0xa2)&&typeof Reflect[_0x1acc46(0x75)]===_0x1acc46(0x85))_0x5dcd58=Reflect[_0x1acc46(0x75)](_0x5cf662,_0x1eef20,_0x30ddad,_0x30565c);else{for(var _0x1c312d=_0x5cf662[_0x1acc46(0xbd)]-0x1;_0x1c312d>=0x0;_0x1c312d--)if(_0x5320ba=_0x5cf662[_0x1c312d])_0x5dcd58=(_0x264cab<0x3?_0x5320ba(_0x5dcd58):_0x264cab>0x3?_0x5320ba(_0x1eef20,_0x30ddad,_0x5dcd58):_0x5320ba(_0x1eef20,_0x30ddad))||_0x5dcd58;}return _0x264cab>0x3&&_0x5dcd58&&Object[_0x1acc46(0xc6)](_0x1eef20,_0x30ddad,_0x5dcd58),_0x5dcd58;},__metadata=this&&this[a2_0xc6c3f2(0x82)]||function(_0x5f5094,_0x46c3b2){const _0x3434c8=a2_0xc6c3f2;if(typeof Reflect===_0x3434c8(0xa2)&&typeof Reflect['metadata']==='function')return Reflect[_0x3434c8(0xa1)](_0x5f5094,_0x46c3b2);};Object[a2_0xc6c3f2(0xc6)](exports,a2_0xc6c3f2(0x86),{'value':!![]}),exports[a2_0xc6c3f2(0xbf)]=void 0x0;const decorator_1=require(a2_0xc6c3f2(0x79)),core_1=require(a2_0xc6c3f2(0x6f)),ApiError_1=require(a2_0xc6c3f2(0x91)),ApiService_1=require(a2_0xc6c3f2(0xbe)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0xc6c3f2(0x80)),i18n=require('@midwayjs/i18n'),task=require(a2_0xc6c3f2(0xb3)),upload=require(a2_0xc6c3f2(0x9e)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0xc6c3f2(0x97)),bodyXml=require(a2_0xc6c3f2(0xb6)),bodyParser=require(a2_0xc6c3f2(0xb9)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0xc6c3f2(0x9b)),anncic=require(a2_0xc6c3f2(0xc4)),anncicEvent=require(a2_0xc6c3f2(0x8a)),anncicTypeorm=require(a2_0xc6c3f2(0x76)),anncicValidator=require(a2_0xc6c3f2(0xc1)),anncicHelper=require(a2_0xc6c3f2(0xa7));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5b368b=a2_0xc6c3f2;await this['filterConfig'](),await this[_0x5b368b(0xac)](),await this['handlerActionRoute'](),await this[_0x5b368b(0x96)]();}async['checkConfigKeys'](){}async[a2_0xc6c3f2(0xa5)](){const _0x38798d=a2_0xc6c3f2,_0x51c7b1=this[_0x38798d(0x94)][_0x38798d(0x88)]();this[_0x38798d(0x6d)][_0x38798d(0xb4)](action_1[_0x38798d(0x83)],_0x268d18=>{const _0x25102b=_0x268d18['metadata'];return{'before':async _0x23e4fc=>{const _0x46ba31=a2_0x3833;var _0x4c5a4f,_0x1c6069,_0x374dc3,_0x3f1588,_0xd5a573;const _0x1ddd30=(_0x4c5a4f=_0x23e4fc===null||_0x23e4fc===void 0x0?void 0x0:_0x23e4fc['target'])===null||_0x4c5a4f===void 0x0?void 0x0:_0x4c5a4f[core_1[_0x46ba31(0x74)]];if(_0x1ddd30){if((_0x25102b===null||_0x25102b===void 0x0?void 0x0:_0x25102b[_0x46ba31(0x84)])&&!this['ApiService'][_0x46ba31(0x77)]((_0x1c6069=_0x1ddd30===null||_0x1ddd30===void 0x0?void 0x0:_0x1ddd30[_0x46ba31(0x9f)])===null||_0x1c6069===void 0x0?void 0x0:_0x1c6069[_0x46ba31(0xc2)]))throw new AnnError(ApiError_1[_0x46ba31(0x8b)][_0x46ba31(0x87)]);((_0x374dc3=_0x1ddd30[_0x46ba31(0xc2)])===null||_0x374dc3===void 0x0?void 0x0:_0x374dc3[_0x46ba31(0xa4)])&&((_0xd5a573=(_0x3f1588=_0x51c7b1===null||_0x51c7b1===void 0x0?void 0x0:_0x51c7b1[_0x46ba31(0x95)])===null||_0x3f1588===void 0x0?void 0x0:_0x3f1588[_0x46ba31(0xaa)])===null||_0xd5a573===void 0x0?void 0x0:_0xd5a573[_0x1ddd30[_0x46ba31(0xc2)][_0x46ba31(0xa4)]])&&(typeof _0x51c7b1[_0x46ba31(0x95)][_0x46ba31(0xaa)][_0x1ddd30[_0x46ba31(0xc2)][_0x46ba31(0xa4)]][_0x46ba31(0xb8)]=='function'&&await _0x51c7b1[_0x46ba31(0x95)][_0x46ba31(0xaa)][_0x1ddd30[_0x46ba31(0xc2)][_0x46ba31(0xa4)]][_0x46ba31(0xb8)]((_0x1ddd30===null||_0x1ddd30===void 0x0?void 0x0:_0x1ddd30[_0x46ba31(0xc0)])||undefined,_0x25102b,_0x1ddd30));}},'afterThrow':(_0x4e2aaa,_0x5792bf)=>{throw _0x5792bf;}};});}async[a2_0xc6c3f2(0x96)](){const _0x469c7f=a2_0xc6c3f2;this['application'][_0x469c7f(0x93)]([_0x469c7f(0xb7)])[_0x469c7f(0x99)](_0x51ef0e=>{const _0x5e1959=_0x469c7f;_0x51ef0e['useMiddleware'](bodyXml(this[_0x5e1959(0x94)][_0x5e1959(0x88)]('bodyXml'))),_0x51ef0e[_0x5e1959(0x7b)](bodyParser(this[_0x5e1959(0x94)]['getConfiguration']('bodyParser'))),(_0x51ef0e===null||_0x51ef0e===void 0x0?void 0x0:_0x51ef0e['context'])&&Object[_0x5e1959(0x8c)](_0x51ef0e[_0x5e1959(0x7e)],{'ok':{'value':function(_0x375b10,_0x1b3224,_0x1e9bc6=0x0){return{'code':_0x1e9bc6,'data':_0x375b10,'extra':_0x1b3224};}},'err':{'value':function(_0x543c84,_0x4c4384,_0x13ff8c=0x1){return{'code':_0x13ff8c,'extra':_0x4c4384,'msg':_0x543c84};}},'input':{'value':function(_0x579da3,_0x4767fc){const _0x252c08=_0x5e1959;var _0x4a77f9;const _0x43a5f1=lodash[_0x252c08(0x98)]({},this[_0x252c08(0x9f)][_0x252c08(0x7d)]||this[_0x252c08(0x9f)][((_0x4a77f9=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x4a77f9===void 0x0?void 0x0:_0x4a77f9[_0x252c08(0x7a)])||_0x252c08(0x7d)]||{},this['request']['query']||{});return _0x579da3?lodash[_0x252c08(0x7f)](_0x43a5f1,_0x579da3,_0x4767fc):_0x43a5f1;}},'when':{'value':async function(_0x5763b1,_0x4c8e32){const _0x565129=_0x5e1959,_0x850f93=this['input'](_0x5763b1,null);if(!lodash[_0x565129(0xbc)](_0x850f93))return await _0x4c8e32(_0x850f93);}},'only':{'value':function(_0x39215c){const _0x1e150d=_0x5e1959,_0x403774={};for(let _0x67d870=0x0;_0x67d870<_0x39215c[_0x1e150d(0xbd)];_0x67d870++){lodash[_0x1e150d(0xc3)](_0x39215c[_0x67d870])&&_0x39215c[_0x67d870][_0x1e150d(0xbd)]>0x0&&lodash['isString'](_0x39215c[_0x67d870][0x0])&&(_0x403774[_0x39215c[_0x67d870][0x0]]=this[_0x1e150d(0x78)](_0x39215c[_0x67d870][0x0],_0x39215c[_0x67d870][_0x1e150d(0xbd)]>0x1?_0x39215c[_0x67d870][0x1]:null));}return _0x403774;}}});});}async[a2_0xc6c3f2(0x7c)](){const _0x39e111=a2_0xc6c3f2;var _0x4205fd,_0x2ddb51,_0x42f301,_0x556d05,_0x69c050,_0x2b35cf;const _0x2832bf=this[_0x39e111(0x94)]['getConfiguration']();((_0x2ddb51=(_0x4205fd=_0x2832bf===null||_0x2832bf===void 0x0?void 0x0:_0x2832bf[_0x39e111(0x95)])===null||_0x4205fd===void 0x0?void 0x0:_0x4205fd[_0x39e111(0xaa)])===null||_0x2ddb51===void 0x0?void 0x0:_0x2ddb51[_0x39e111(0xab)])&&Object['keys'](_0x2832bf['anncicapi']['devices'])['length']>0x1&&delete _0x2832bf[_0x39e111(0x95)]['devices'][_0x39e111(0xab)];if((_0x42f301=_0x2832bf===null||_0x2832bf===void 0x0?void 0x0:_0x2832bf[_0x39e111(0x8e)])===null||_0x42f301===void 0x0?void 0x0:_0x42f301[_0x39e111(0xb5)])for(const _0x16ec2a in _0x2832bf[_0x39e111(0x8e)]['dirs']){((_0x556d05=_0x2832bf['staticFile'][_0x39e111(0xb5)][_0x16ec2a])===null||_0x556d05===void 0x0?void 0x0:_0x556d05[_0x39e111(0xaf)])&&typeof((_0x69c050=_0x2832bf[_0x39e111(0x8e)]['dirs'][_0x16ec2a])===null||_0x69c050===void 0x0?void 0x0:_0x69c050[_0x39e111(0xaf)])=='string'&&!fs['existsSync'](_0x2832bf['staticFile'][_0x39e111(0xb5)][_0x16ec2a]['dir'])&&(fs['mkdirSync'](_0x2832bf[_0x39e111(0x8e)][_0x39e111(0xb5)][_0x16ec2a][_0x39e111(0xaf)],{'recursive':!![]}),console[_0x39e111(0xc5)](_0x39e111(0x70)+_0x2832bf[_0x39e111(0x8e)][_0x39e111(0xb5)][_0x16ec2a][_0x39e111(0xaf)]));}((_0x2b35cf=_0x2832bf===null||_0x2832bf===void 0x0?void 0x0:_0x2832bf['upload'])===null||_0x2b35cf===void 0x0?void 0x0:_0x2b35cf[_0x39e111(0x89)])&&!fs[_0x39e111(0x9c)](_0x2832bf[_0x39e111(0xa3)]['tmpdir'])&&(fs[_0x39e111(0xad)](_0x2832bf['upload'][_0x39e111(0x89)],{'recursive':!![]}),console[_0x39e111(0xc5)](_0x39e111(0x73)+_0x2832bf[_0x39e111(0xa3)]['tmpdir'])),this[_0x39e111(0x94)][_0x39e111(0xa6)](_0x2832bf);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0xc6c3f2(0xae),core_1[a2_0xc6c3f2(0x8f)])],CustomConfiguration[a2_0xc6c3f2(0xa8)],a2_0xc6c3f2(0x94),void 0x0),__decorate([(0x0,decorator_1[a2_0xc6c3f2(0x90)])(),__metadata(a2_0xc6c3f2(0xae),core_1[a2_0xc6c3f2(0x6e)])],CustomConfiguration['prototype'],a2_0xc6c3f2(0x6d),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0xc6c3f2(0xae),core_1[a2_0xc6c3f2(0xa9)])],CustomConfiguration[a2_0xc6c3f2(0xa8)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0xc6c3f2(0x90)])(),__metadata(a2_0xc6c3f2(0xae),core_1[a2_0xc6c3f2(0x72)])],CustomConfiguration[a2_0xc6c3f2(0xa8)],a2_0xc6c3f2(0xa0),void 0x0),__decorate([(0x0,decorator_1[a2_0xc6c3f2(0x90)])(),__metadata('design:type',ApiService_1[a2_0xc6c3f2(0xb2)])],CustomConfiguration[a2_0xc6c3f2(0xa8)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0xc6c3f2(0x9a)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0xc6c3f2(0x6c),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xc6c3f2(0xbf)]=CustomConfiguration;function a2_0x40e3(){const _0xa9b806=['get','@midwayjs/koa','25gDaRQa','__metadata','ACTION_ROUTE_KEY','apimit','function','__esModule','HEADERS_SIGNATURE','getConfiguration','tmpdir','@anncic-api/event','ApiError','defineProperties','4139891EycXtc','staticFile','MidwayConfigService','Inject','./exception/ApiError','1438420rBCRjI','getApplications','config','anncicapi','hanlderApplications','@midwayjs/cross-domain','defaultsDeep','forEach','Configuration','./config/config.production','existsSync','70TVRgMl','@midwayjs/upload','request','environment','metadata','object','upload','device','handlerActionRoute','addObject','anncic-apihelper','prototype','MidwayApplicationManager','devices','DEFAULT','checkConfigKeys','mkdirSync','design:type','dir','6780184oFCwoH','10259397GAQcnA','ApiService','@midwayjs/task','registerMethodHandler','dirs','koa-xml-body','koa','beforeRoute','koa-bodyparser','getOwnPropertyDescriptor','897378VJbUcN','isNull','length','./service/ApiService','CustomConfiguration','_matchedRoute','@anncic-api/validator','headers','isArray','@anncic-api/core','log','defineProperty','41475AwWEFT','anncic-api','decorator','MidwayDecoratorService','@midwayjs/core','Anncic-api\x20static-file\x20:\x20mkdir\x20','460826DyrwKz','MidwayEnvironmentService','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','REQUEST_OBJ_CTX_KEY','decorate','@anncic-api/typeorm','checksign','input','@midwayjs/decorator','key','useMiddleware','filterConfig','body','context'];a2_0x40e3=function(){return _0xa9b806;};return a2_0x40e3();}
|
|
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;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x33c4e0=a3_0x5ef4;(function(_0x5c98b1,_0x4608b9){const _0x4eb970=a3_0x5ef4,_0x317606=_0x5c98b1();while(!![]){try{const _0x1836b1=parseInt(_0x4eb970(0x1d1))/0x1+parseInt(_0x4eb970(0x1f4))/0x2*(-parseInt(_0x4eb970(0x1f6))/0x3)+-parseInt(_0x4eb970(0x1d7))/0x4*(-parseInt(_0x4eb970(0x1e3))/0x5)+parseInt(_0x4eb970(0x1e5))/0x6*(parseInt(_0x4eb970(0x1cd))/0x7)+parseInt(_0x4eb970(0x201))/0x8*(parseInt(_0x4eb970(0x1dd))/0x9)+parseInt(_0x4eb970(0x202))/0xa+-parseInt(_0x4eb970(0x200))/0xb*(parseInt(_0x4eb970(0x1d6))/0xc);if(_0x1836b1===_0x4608b9)break;else _0x317606['push'](_0x317606['shift']());}catch(_0x3594de){_0x317606['push'](_0x317606['shift']());}}}(a3_0x539e,0x9ed58));function a3_0x5ef4(_0x282a8b,_0x97d6dc){const _0x539e13=a3_0x539e();return a3_0x5ef4=function(_0x5ef4cf,_0x13bd05){_0x5ef4cf=_0x5ef4cf-0x1cd;let _0x4fa9f5=_0x539e13[_0x5ef4cf];return _0x4fa9f5;},a3_0x5ef4(_0x282a8b,_0x97d6dc);}Object[a3_0x33c4e0(0x1ea)](exports,a3_0x33c4e0(0x1d5),{'value':!![]}),exports[a3_0x33c4e0(0x1ed)]=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x33c4e0(0x1d3)),action_1=require(a3_0x33c4e0(0x203));function a3_0x539e(){const _0x42c359=['300grsVbV','19672wXKSGG','replace','filepath','APPSCONFIG_KEY','middleware','endsWith','99iptWya','rootpath','app/controller/','trim','ACTION_KEY','-controller','305iJmUUD','saveModule','62022AJmPiz','/controller/','push','indexOf','prefix','defineProperty','split','AppsConfigTmp','parseRoute','/config.','apps/','module','substring','-action','Controller','106794KGhveH','cwd','39wfFBml','isArray','saveClassMetadata','\x20文件请放在app/controller/文件下','getClassMetadata','Action','match','length','startsWith','/apps/','311476dstYph','536744coAOxY','7176940SwqEgu','../types/action','route','35PkPEPr','\x20文件请放在apps/','middlewareIgnore','filter','245245SYYgSr','toLowerCase','@midwayjs/decorator','join','__esModule'];a3_0x539e=function(){return _0x42c359;};return a3_0x539e();}function Action(_0x26eb5d,_0x1b0a32,_0x34d404={'middleware':[],'sensitive':!![]}){return _0x35256a=>{const _0x3c42e1=a3_0x5ef4;_0x34d404['tagName']=_0x1b0a32;const _0x1a1f29=parseRoute(_0x26eb5d);if(_0x1a1f29['module']){_0x34d404['prefix']=_0x34d404[_0x3c42e1(0x1e9)]?'/'+_0x1a1f29[_0x3c42e1(0x1f0)]+'/'+_0x34d404['prefix']:'/'+_0x1a1f29['route'];_0x1a1f29['prefix']&&(_0x34d404[_0x3c42e1(0x1e9)]='/'+_0x1a1f29['prefix']+'/'+_0x34d404['prefix']);if(fs['existsSync'](_0x1a1f29[_0x3c42e1(0x1de)]+'/apps/'+_0x1a1f29[_0x3c42e1(0x1f0)]+_0x3c42e1(0x1ee)+(lodash['endsWith'](_0x1a1f29[_0x3c42e1(0x1d9)],'ts')?'ts':'js'))){const _0x4772bf=include(_0x1a1f29[_0x3c42e1(0x1de)]+_0x3c42e1(0x1ff)+_0x1a1f29[_0x3c42e1(0x1f0)]+_0x3c42e1(0x1ee)+(lodash[_0x3c42e1(0x1dc)](_0x1a1f29[_0x3c42e1(0x1d9)],'ts')?'ts':'js'));if(_0x4772bf[_0x3c42e1(0x1db)]&&lodash[_0x3c42e1(0x1f7)](_0x4772bf[_0x3c42e1(0x1db)])&&_0x4772bf[_0x3c42e1(0x1db)][_0x3c42e1(0x1fd)]>0x0)for(let _0x2c3ff4 in _0x4772bf[_0x3c42e1(0x1db)]){_0x4772bf[_0x3c42e1(0x1cf)][_0x3c42e1(0x1e8)](_0x4772bf[_0x3c42e1(0x1db)][_0x2c3ff4])==-0x1&&_0x34d404[_0x3c42e1(0x1db)][_0x3c42e1(0x1e7)](_0x4772bf[_0x3c42e1(0x1db)][_0x2c3ff4]);}const _0x205d10=(0x0,decorator_1[_0x3c42e1(0x1fa)])(action_1[_0x3c42e1(0x1da)],action_1['AppsConfigTmp'])||{};_0x205d10[''+_0x1a1f29['module']]=_0x4772bf,(0x0,decorator_1[_0x3c42e1(0x1f8)])(action_1[_0x3c42e1(0x1da)],_0x205d10,action_1[_0x3c42e1(0x1ec)]);}_0x34d404[_0x3c42e1(0x1e9)]=_0x34d404['prefix'][_0x3c42e1(0x1d2)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x3c42e1(0x1e1)],_0x35256a),(0x0,decorator_1[_0x3c42e1(0x1f3)])(_0x34d404[_0x3c42e1(0x1e9)],_0x34d404)(_0x35256a),(0x0,decorator_1[_0x3c42e1(0x1f8)])(action_1[_0x3c42e1(0x1e1)],{'prefix':_0x34d404[_0x3c42e1(0x1e9)],'pprefix':_0x1a1f29[_0x3c42e1(0x1e9)],'module':_0x1a1f29['module'],'filepath':_0x1a1f29['filepath'],'routerOptions':_0x34d404},_0x35256a);}else _0x34d404[_0x3c42e1(0x1e9)]=_0x34d404[_0x3c42e1(0x1e9)]?'/'+_0x34d404['prefix']:'/'+_0x1a1f29[_0x3c42e1(0x204)],_0x1a1f29['prefix']&&(_0x34d404[_0x3c42e1(0x1e9)]='/'+_0x1a1f29['prefix']+'/'+_0x34d404[_0x3c42e1(0x1e9)]),_0x34d404['prefix']=_0x34d404[_0x3c42e1(0x1e9)][_0x3c42e1(0x1d2)]()[_0x3c42e1(0x1d8)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x3c42e1(0x1e4)])(action_1[_0x3c42e1(0x1e1)],_0x35256a),(0x0,decorator_1[_0x3c42e1(0x1f3)])(_0x34d404[_0x3c42e1(0x1e9)],_0x34d404)(_0x35256a),(0x0,decorator_1[_0x3c42e1(0x1f8)])(action_1['ACTION_KEY'],{'prefix':_0x34d404[_0x3c42e1(0x1e9)],'module':_0x1a1f29[_0x3c42e1(0x1f0)],'pprefix':_0x1a1f29[_0x3c42e1(0x1e9)],'filepath':_0x1a1f29[_0x3c42e1(0x1d9)],'routerOptions':_0x34d404},_0x35256a);};}exports[a3_0x33c4e0(0x1fb)]=Action;function parseRoute(_0x5f2dc7){const _0x2d6831=a3_0x33c4e0;_0x5f2dc7=_0x5f2dc7[_0x2d6831(0x1d8)](/(\\|\/)/g,'/');const _0x534f62=process[_0x2d6831(0x1f5)]()[_0x2d6831(0x1d8)](/(\\|\/)/g,'/'),_0x161d2e=_0x5f2dc7['substring'](0x0,_0x534f62['length']+_0x5f2dc7[_0x2d6831(0x1f1)](_0x534f62[_0x2d6831(0x1fd)]+0x1)[_0x2d6831(0x1e8)]('/')+0x1),_0x29215a=_0x5f2dc7[_0x2d6831(0x1f1)](_0x161d2e[_0x2d6831(0x1fd)]+0x1)[_0x2d6831(0x1d8)](/(\\|\/)/g,'/'),_0x50d162={'route':'','prefix':![],'module':![],'rootpath':_0x161d2e,'filepath':_0x29215a};if(_0x29215a['startsWith'](_0x2d6831(0x1df))){const _0x4d4597=_0x29215a['substring'](_0x2d6831(0x1df)[_0x2d6831(0x1fd)])[_0x2d6831(0x1eb)]('/')[_0x2d6831(0x1d0)](_0x10c372=>_0x10c372&&_0x10c372[_0x2d6831(0x1e0)]());return _0x4d4597['length']>0x1&&(_0x50d162[_0x2d6831(0x1e9)]=_0x4d4597[0x0][_0x2d6831(0x1d2)](),_0x4d4597['splice'](0x0,0x1)),_0x50d162['route']=('/'+_0x4d4597[_0x2d6831(0x1d4)]('/'))[_0x2d6831(0x1d8)](/(\.ts|\.js)$/,'')[_0x2d6831(0x1d8)](/\/{2,}/g,'/')[_0x2d6831(0x1fc)](/[\/|A-Z]*[^A-Z]+/g)[_0x2d6831(0x1d4)]('-')[_0x2d6831(0x1d2)]()['replace'](/\/\-/g,'/'),_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1dc)](_0x2d6831(0x1f2))&&(_0x50d162[_0x2d6831(0x204)]=_0x50d162[_0x2d6831(0x204)]['substring'](0x0,_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1fd)]-0x7)),_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1dc)]('-controller')&&(_0x50d162[_0x2d6831(0x204)]=_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1f1)](0x0,_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1fd)]-0xb)),_0x50d162;}else{if(_0x29215a[_0x2d6831(0x1fe)](_0x2d6831(0x1ef))){const _0x136162=_0x29215a[_0x2d6831(0x1f1)](0x0,_0x29215a['indexOf'](_0x2d6831(0x1ff))+0x5),_0x1d2c2f=_0x29215a[_0x2d6831(0x1f1)](_0x136162[_0x2d6831(0x1fd)]+0x1)[_0x2d6831(0x1d8)](/(\\|\/)/g,'/')[_0x2d6831(0x1eb)]('/')[0x0];if(_0x29215a[_0x2d6831(0x1fe)]('apps/'+_0x1d2c2f+'/controller/')){const _0x545c81=_0x29215a['substring']((_0x136162+'/'+_0x1d2c2f+_0x2d6831(0x1e6))['length'])[_0x2d6831(0x1eb)]('/')['filter'](_0x6b8f3=>_0x6b8f3&&_0x6b8f3['trim']());return _0x545c81[_0x2d6831(0x1fd)]>0x1&&(_0x50d162['prefix']=_0x545c81[0x0][_0x2d6831(0x1d2)](),_0x545c81['splice'](0x0,0x1)),_0x50d162[_0x2d6831(0x1f0)]=_0x1d2c2f,_0x50d162[_0x2d6831(0x204)]=('/'+_0x1d2c2f+'/'+_0x545c81['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x2d6831(0x1d8)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x2d6831(0x1d2)]()['replace'](/\/\-/g,'/'),_0x50d162['route'][_0x2d6831(0x1dc)](_0x2d6831(0x1f2))&&(_0x50d162[_0x2d6831(0x204)]=_0x50d162['route'][_0x2d6831(0x1f1)](0x0,_0x50d162[_0x2d6831(0x204)]['length']-0x7)),_0x50d162[_0x2d6831(0x204)][_0x2d6831(0x1dc)](_0x2d6831(0x1e2))&&(_0x50d162[_0x2d6831(0x204)]=_0x50d162['route'][_0x2d6831(0x1f1)](0x0,_0x50d162['route'][_0x2d6831(0x1fd)]-0xb)),_0x50d162;}throw new Error(_0x29215a+_0x2d6831(0x1ce)+_0x1d2c2f+'/controller/文件下');}}throw new Error(_0x29215a+_0x2d6831(0x1f9));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x5dab8d=a4_0x4506;(function(_0x2db689,_0x592f21){const _0x4035af=a4_0x4506,_0x3d7825=_0x2db689();while(!![]){try{const _0x19ed5e=parseInt(_0x4035af(0x9f))/0x1*(-parseInt(_0x4035af(0xa6))/0x2)+-parseInt(_0x4035af(0x9e))/0x3+parseInt(_0x4035af(0x9c))/0x4+parseInt(_0x4035af(0xab))/0x5+parseInt(_0x4035af(0x96))/0x6+parseInt(_0x4035af(0xa4))/0x7*(-parseInt(_0x4035af(0xa5))/0x8)+-parseInt(_0x4035af(0xa9))/0x9*(-parseInt(_0x4035af(0x92))/0xa);if(_0x19ed5e===_0x592f21)break;else _0x3d7825['push'](_0x3d7825['shift']());}catch(_0x2787aa){_0x3d7825['push'](_0x3d7825['shift']());}}}(a4_0x2741,0x4ae48));function a4_0x4506(_0x5f5561,_0x3d7d9e){const _0x27410c=a4_0x2741();return a4_0x4506=function(_0x450614,_0x150b8b){_0x450614=_0x450614-0x8c;let _0x4adb66=_0x27410c[_0x450614];return _0x4adb66;},a4_0x4506(_0x5f5561,_0x3d7d9e);}Object[a4_0x5dab8d(0x95)](exports,a4_0x5dab8d(0xa0),{'value':!![]}),exports[a4_0x5dab8d(0x91)]=void 0x0;const validator_1=require(a4_0x5dab8d(0x98)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x5dab8d(0xaa));function Api(_0x32a785,_0xb5ef44='get',_0x204369='/',_0x47ba5d={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x59d93a,_0x3fa296,_0x44df85)=>{const _0xf4a870=a4_0x4506;var _0x361a35,_0x415583,_0x1cd04e;!_0x47ba5d[_0xf4a870(0x97)]&&(_0x47ba5d['middleware']=[]);!((_0x361a35=_0x47ba5d===null||_0x47ba5d===void 0x0?void 0x0:_0x47ba5d[_0xf4a870(0x9b)])===null||_0x361a35===void 0x0?void 0x0:_0x361a35[_0xf4a870(0x8e)])&&(_0x47ba5d[_0xf4a870(0x9b)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xf4a870(0x99)}});if(((_0x415583=_0x47ba5d===null||_0x47ba5d===void 0x0?void 0x0:_0x47ba5d[_0xf4a870(0x97)])===null||_0x415583===void 0x0?void 0x0:_0x415583['length'])>0x0&&((_0x1cd04e=_0x47ba5d===null||_0x47ba5d===void 0x0?void 0x0:_0x47ba5d['middlewareIgnore'])===null||_0x1cd04e===void 0x0?void 0x0:_0x1cd04e[_0xf4a870(0x93)])>0x0)for(let _0x3f78a2 in _0x47ba5d[_0xf4a870(0x97)]){_0x47ba5d[_0xf4a870(0x8c)]['indexOf'](_0x47ba5d[_0xf4a870(0x97)][_0x3f78a2])!==-0x1&&(_0x47ba5d[_0xf4a870(0x97)][_0x3f78a2]=null);}_0x47ba5d[_0xf4a870(0x94)]=_0x32a785,(0x0,validator_1[_0xf4a870(0xa7)])(_0x47ba5d[_0xf4a870(0x9b)])(_0x59d93a,_0x3fa296,_0x44df85),(0x0,decorator_1[_0xf4a870(0xa2)])(Object['assign'](_0x47ba5d,{'path':_0x204369,'requestMethod':(_0xb5ef44==_0xf4a870(0xa8)?_0xf4a870(0x90):_0xb5ef44)[_0xf4a870(0x8d)]()}))(_0x59d93a,_0x3fa296,_0x44df85),(0x0,decorator_1[_0xf4a870(0x8f)])(action_1[_0xf4a870(0x9a)],{'path':_0x204369,'method':_0x3fa296,'apimit':_0x47ba5d[_0xf4a870(0xa3)],'routerName':_0x47ba5d[_0xf4a870(0x94)],'description':_0x47ba5d['description'],'middleware':(_0x47ba5d['middleware']||[])[_0xf4a870(0xa1)](_0x4e2569=>!!_0x4e2569),'requestMethod':(_0xb5ef44=='del'?_0xf4a870(0x90):_0xb5ef44)[_0xf4a870(0x8d)]()},_0x59d93a),(0x0,decorator_1['createCustomMethodDecorator'])(action_1[_0xf4a870(0x9a)],{'path':_0x204369,'method':_0x3fa296,'apimit':_0x47ba5d[_0xf4a870(0xa3)],'routerName':_0x47ba5d[_0xf4a870(0x94)],'description':_0x47ba5d[_0xf4a870(0x9d)],'middleware':(_0x47ba5d[_0xf4a870(0x97)]||[])[_0xf4a870(0xa1)](_0x3af8dc=>!!_0x3af8dc),'requestMethod':(_0xb5ef44=='del'?_0xf4a870(0x90):_0xb5ef44)[_0xf4a870(0x8d)]()})(_0x59d93a,_0x3fa296,_0x44df85);};}function a4_0x2741(){const _0x141881=['toLowerCase','validationOptions','attachClassMetadata','delete','Api','1298280WjVXwS','length','routerName','defineProperty','210030iINCdC','middleware','@anncic-api/validator','utc','ACTION_ROUTE_KEY','validate','1590000wAruAj','description','715014mZMRuK','44887ppWBNw','__esModule','filter','RequestMapping','apimit','7nfSCdS','4545784TJNnNF','12ISrRIf','Validator','del','45TuFIJF','../types/action','1504990QdOEge','middlewareIgnore'];a4_0x2741=function(){return _0x141881;};return a4_0x2741();}exports[a4_0x5dab8d(0x91)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a5_0x37aa(){const _0x48ef95=['@midwayjs/core','getApplicationContext','MidwayEnvironmentService','199612JwuIUH','1KiAmeM','1092108BaEQYN','44026DZfYwZ','Apitest','defineProperty','48BMciSi','__esModule','app','REQUEST_OBJ_CTX_KEY','272982nAdYoK','getConfig','../service/ApitestService','getAsync','filepath','370VokNMY','24KQSPoU','4qBQXAE','119435dAXuUz','11cFZGiK','45891GIVJYO','apidoc','69420SNHrCz','apitest'];a5_0x37aa=function(){return _0x48ef95;};return a5_0x37aa();}const a5_0x4f5b1c=a5_0x2716;(function(_0x44e781,_0x19f8b5){const _0xcc7af1=a5_0x2716,_0x52c31a=_0x44e781();while(!![]){try{const _0x187a31=parseInt(_0xcc7af1(0x183))/0x1*(parseInt(_0xcc7af1(0x185))/0x2)+-parseInt(_0xcc7af1(0x18c))/0x3*(parseInt(_0xcc7af1(0x178))/0x4)+parseInt(_0xcc7af1(0x179))/0x5*(-parseInt(_0xcc7af1(0x177))/0x6)+parseInt(_0xcc7af1(0x182))/0x7*(parseInt(_0xcc7af1(0x188))/0x8)+parseInt(_0xcc7af1(0x17b))/0x9*(parseInt(_0xcc7af1(0x176))/0xa)+parseInt(_0xcc7af1(0x17a))/0xb*(-parseInt(_0xcc7af1(0x184))/0xc)+parseInt(_0xcc7af1(0x17d))/0xd;if(_0x187a31===_0x19f8b5)break;else _0x52c31a['push'](_0x52c31a['shift']());}catch(_0x1af97c){_0x52c31a['push'](_0x52c31a['shift']());}}}(a5_0x37aa,0x1abf9));Object[a5_0x4f5b1c(0x187)](exports,a5_0x4f5b1c(0x189),{'value':!![]}),exports[a5_0x4f5b1c(0x186)]=void 0x0;function a5_0x2716(_0x3b3a91,_0x174fea){const _0x37aa59=a5_0x37aa();return a5_0x2716=function(_0x27164b,_0x2ce001){_0x27164b=_0x27164b-0x176;let _0x36e734=_0x37aa59[_0x27164b];return _0x36e734;},a5_0x2716(_0x3b3a91,_0x174fea);}const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x4f5b1c(0x17f)),ApitestService_1=require(a5_0x4f5b1c(0x18e));function Apitest(_0x216f23='/apitest',_0x37dcb9){return(_0x369afd,_0x45fe20,_0x5ca8f3)=>{return(0x0,decorator_1['RequestMapping'])({'path':_0x216f23,'requestMethod':'get'})(_0x369afd,_0x45fe20,_0x5ca8f3),_0x5ca8f3['value']=async function(..._0x49dcc0){const _0x24b103=a5_0x2716;var _0x56e31b;const _0x19395f=(_0x56e31b=this[core_1[_0x24b103(0x18b)]])===null||_0x56e31b===void 0x0?void 0x0:_0x56e31b[_0x24b103(0x18a)];if(_0x19395f&&_0x19395f[_0x24b103(0x18d)](_0x24b103(0x17e))){const _0x1e97d9=await _0x19395f[_0x24b103(0x180)]()[_0x24b103(0x18f)](ApitestService_1['ApitestService']),_0x1c0fb5=await _0x19395f[_0x24b103(0x180)]()[_0x24b103(0x18f)](core_1[_0x24b103(0x181)]);return _0x1c0fb5['isDevelopmentEnvironment']()&&(_0x37dcb9[_0x24b103(0x190)]=!![]),await _0x1e97d9[_0x24b103(0x17c)](_0x37dcb9);}return'';},_0x5ca8f3;};}exports[a5_0x4f5b1c(0x186)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x1e56(){var _0x12082b=['33XYsoAy','__metadata','design:type','decorate','1938706BolSvS','322744ygdtnE','HEADERS_CHECKCODE','ApiError','HEADERS_LACK','object','length','75823UkPkOr','getOwnPropertyDescriptor','__esModule','HEADERS_DEVICE','TIMEOUT','57678zVxYum','1830cqHkuH','HEADERS_SIGNATURE','metadata','function','135YGCsao','checkcode验证失败','__decorate','4526262IJMuhl','defineProperty','63EeFnEc','17260kAgpkB','32043BbNwBI'];a6_0x1e56=function(){return _0x12082b;};return a6_0x1e56();}function a6_0x1407(_0xbb08d1,_0x2ec0fd){var _0x1e56fd=a6_0x1e56();return a6_0x1407=function(_0x14074a,_0x182691){_0x14074a=_0x14074a-0x11f;var _0x1a8a55=_0x1e56fd[_0x14074a];return _0x1a8a55;},a6_0x1407(_0xbb08d1,_0x2ec0fd);}var a6_0x3244ee=a6_0x1407;(function(_0x24f3e6,_0x3205d1){var _0x1db839=a6_0x1407,_0x5647b4=_0x24f3e6();while(!![]){try{var _0x104202=parseInt(_0x1db839(0x122))/0x1+parseInt(_0x1db839(0x127))/0x2*(parseInt(_0x1db839(0x134))/0x3)+parseInt(_0x1db839(0x132))/0x4*(-parseInt(_0x1db839(0x12c))/0x5)+parseInt(_0x1db839(0x12f))/0x6+parseInt(_0x1db839(0x138))/0x7+-parseInt(_0x1db839(0x139))/0x8*(parseInt(_0x1db839(0x131))/0x9)+-parseInt(_0x1db839(0x128))/0xa*(parseInt(_0x1db839(0x133))/0xb);if(_0x104202===_0x3205d1)break;else _0x5647b4['push'](_0x5647b4['shift']());}catch(_0x19dd90){_0x5647b4['push'](_0x5647b4['shift']());}}}(a6_0x1e56,0x78372));var __decorate=this&&this[a6_0x3244ee(0x12e)]||function(_0x1bd63c,_0x11873d,_0x5624a8,_0x30eef7){var _0x3444e0=a6_0x3244ee,_0x556c62=arguments['length'],_0x62df86=_0x556c62<0x3?_0x11873d:_0x30eef7===null?_0x30eef7=Object[_0x3444e0(0x123)](_0x11873d,_0x5624a8):_0x30eef7,_0x3f9d58;if(typeof Reflect===_0x3444e0(0x120)&&typeof Reflect[_0x3444e0(0x137)]==='function')_0x62df86=Reflect[_0x3444e0(0x137)](_0x1bd63c,_0x11873d,_0x5624a8,_0x30eef7);else{for(var _0x12aa3d=_0x1bd63c[_0x3444e0(0x121)]-0x1;_0x12aa3d>=0x0;_0x12aa3d--)if(_0x3f9d58=_0x1bd63c[_0x12aa3d])_0x62df86=(_0x556c62<0x3?_0x3f9d58(_0x62df86):_0x556c62>0x3?_0x3f9d58(_0x11873d,_0x5624a8,_0x62df86):_0x3f9d58(_0x11873d,_0x5624a8))||_0x62df86;}return _0x556c62>0x3&&_0x62df86&&Object[_0x3444e0(0x130)](_0x11873d,_0x5624a8,_0x62df86),_0x62df86;},__metadata=this&&this[a6_0x3244ee(0x135)]||function(_0x2f82d3,_0x2f3276){var _0x2f6d7c=a6_0x3244ee;if(typeof Reflect===_0x2f6d7c(0x120)&&typeof Reflect[_0x2f6d7c(0x12a)]===_0x2f6d7c(0x12b))return Reflect[_0x2f6d7c(0x12a)](_0x2f82d3,_0x2f3276);};Object['defineProperty'](exports,a6_0x3244ee(0x124),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a6_0x3244ee(0x126)]=0x18a89,ApiError[a6_0x3244ee(0x11f)]=0x18a8a,ApiError[a6_0x3244ee(0x125)]=0x18a8b,ApiError[a6_0x3244ee(0x13a)]=0x18a8c,ApiError[a6_0x3244ee(0x129)]=0x18a8d,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0x3244ee(0x136),Object)],ApiError,a6_0x3244ee(0x126),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x3244ee(0x136),Object)],ApiError,a6_0x3244ee(0x11f),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x3244ee(0x136),Object)],ApiError,a6_0x3244ee(0x125),void 0x0),__decorate([AnnErrorMsg(a6_0x3244ee(0x12d)),__metadata(a6_0x3244ee(0x136),Object)],ApiError,a6_0x3244ee(0x13a),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a6_0x3244ee(0x129),void 0x0),exports[a6_0x3244ee(0x13b)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x480ed6=a7_0x30e6;(function(_0x14811e,_0x587dfb){const _0x41c769=a7_0x30e6,_0x34cdbd=_0x14811e();while(!![]){try{const _0x3e1238=-parseInt(_0x41c769(0x14f))/0x1+parseInt(_0x41c769(0x151))/0x2+parseInt(_0x41c769(0x145))/0x3*(-parseInt(_0x41c769(0x147))/0x4)+-parseInt(_0x41c769(0x153))/0x5*(-parseInt(_0x41c769(0x149))/0x6)+-parseInt(_0x41c769(0x152))/0x7+parseInt(_0x41c769(0x144))/0x8*(-parseInt(_0x41c769(0x155))/0x9)+-parseInt(_0x41c769(0x14c))/0xa*(-parseInt(_0x41c769(0x14b))/0xb);if(_0x3e1238===_0x587dfb)break;else _0x34cdbd['push'](_0x34cdbd['shift']());}catch(_0xcfaa78){_0x34cdbd['push'](_0x34cdbd['shift']());}}}(a7_0x1e91,0x5cb35));function a7_0x30e6(_0x2bf4a2,_0x5c8e2d){const _0x1e9137=a7_0x1e91();return a7_0x30e6=function(_0x30e6be,_0x5185cc){_0x30e6be=_0x30e6be-0x143;let _0xd7a393=_0x1e9137[_0x30e6be];return _0xd7a393;},a7_0x30e6(_0x2bf4a2,_0x5c8e2d);}Object[a7_0x480ed6(0x148)](exports,'__esModule',{'value':!![]}),exports[a7_0x480ed6(0x14a)]=void 0x0;const decorator_1=require(a7_0x480ed6(0x150)),action_1=require(a7_0x480ed6(0x14e));function getAppsConfig(_0x13c7f2){const _0x5145ab=a7_0x480ed6,_0x2e28dc=(0x0,decorator_1[_0x5145ab(0x154)])(action_1[_0x5145ab(0x143)],action_1[_0x5145ab(0x14d)])||{};return _0x13c7f2?lodash[_0x5145ab(0x146)](_0x2e28dc,_0x13c7f2):_0x2e28dc;}function a7_0x1e91(){const _0x213731=['3635464uYkuDH','5HVmYWm','getClassMetadata','18ahKaVR','APPSCONFIG_KEY','1320888WeeMWt','15cYRdvD','get','73204Knaahp','defineProperty','2542692opDyVi','getAppsConfig','1868262QuqvNC','60GTSrVh','AppsConfigTmp','../types/action','377581crbQij','@midwayjs/decorator','511054FqfXqg'];a7_0x1e91=function(){return _0x213731;};return a7_0x1e91();}exports[a7_0x480ed6(0x14a)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x43873b=a8_0x17bd;(function(_0x35e395,_0x5ee330){const _0x44b1ad=a8_0x17bd,_0x564b26=_0x35e395();while(!![]){try{const _0x4f3690=parseInt(_0x44b1ad(0x13c))/0x1*(parseInt(_0x44b1ad(0x181))/0x2)+parseInt(_0x44b1ad(0x160))/0x3*(-parseInt(_0x44b1ad(0x173))/0x4)+-parseInt(_0x44b1ad(0x158))/0x5*(-parseInt(_0x44b1ad(0x176))/0x6)+-parseInt(_0x44b1ad(0x12b))/0x7*(parseInt(_0x44b1ad(0x132))/0x8)+-parseInt(_0x44b1ad(0x13e))/0x9+-parseInt(_0x44b1ad(0x130))/0xa+-parseInt(_0x44b1ad(0x162))/0xb*(-parseInt(_0x44b1ad(0x15e))/0xc);if(_0x4f3690===_0x5ee330)break;else _0x564b26['push'](_0x564b26['shift']());}catch(_0xb57ebd){_0x564b26['push'](_0x564b26['shift']());}}}(a8_0x47c9,0x221da));Object[a8_0x43873b(0x187)](exports,a8_0x43873b(0x15d),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x43873b(0x147)),validator_1=require(a8_0x43873b(0x17c)),decorator_1=require('@midwayjs/decorator'),decorator_2=require('@midwayjs/decorator'),decorator_3=require(a8_0x43873b(0x14d)),action_1=require(a8_0x43873b(0x166));function getRoutes(_0x4e2071={'prefix':'/','module':![]}){const _0x5e1061=a8_0x43873b;var _0x6fe202,_0x3c2344;const _0x331b71=(0x0,decorator_3[_0x5e1061(0x137)])(action_1[_0x5e1061(0x138)]),_0x26fc81={},_0x2b7447=Array[_0x5e1061(0x149)](_0x4e2071[_0x5e1061(0x151)]||[])?_0x4e2071[_0x5e1061(0x151)]||[]:[_0x4e2071['filter']];_0x335fbe:for(const _0x300465 of _0x331b71){let _0x4156e8=(0x0,decorator_3['getClassMetadata'])(action_1[_0x5e1061(0x138)],_0x300465),_0x16660e=(0x0,decorator_3['getClassMetadata'])(action_1[_0x5e1061(0x135)],_0x300465);if(_0x4156e8&&_0x16660e){let _0x26e428=_0x4156e8[_0x5e1061(0x17d)],_0x3e9245={};if(_0x4e2071[_0x5e1061(0x150)]&&(0x0,lodash_1[_0x5e1061(0x188)])(_0x4156e8,_0x5e1061(0x150),![])!=_0x4e2071[_0x5e1061(0x150)])continue _0x335fbe;else{if(_0x4e2071[_0x5e1061(0x150)]===![]&&!!(0x0,lodash_1[_0x5e1061(0x188)])(_0x4156e8,_0x5e1061(0x150),null))continue _0x335fbe;}if(_0x4e2071['prefix']&&!_0x26e428[_0x5e1061(0x17e)](_0x4e2071[_0x5e1061(0x17d)]))continue _0x335fbe;_0x26e428!=='/'?(_0x3e9245['summary']=(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8['routerOptions'][_0x5e1061(0x15f)])||(/^\//[_0x5e1061(0x16d)](_0x26e428)?_0x26e428[_0x5e1061(0x178)]('/')[0x1]:_0x26e428),_0x3e9245[_0x5e1061(0x17b)]=(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8[_0x5e1061(0x145)]['description'])||_0x3e9245[_0x5e1061(0x14f)],_0x3e9245[_0x5e1061(0x16e)]=[]):(_0x3e9245[_0x5e1061(0x14f)]=(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8['routerOptions'][_0x5e1061(0x15f)])||_0x5e1061(0x143),_0x3e9245[_0x5e1061(0x17b)]=(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8[_0x5e1061(0x145)][_0x5e1061(0x17b)])||'',_0x3e9245[_0x5e1061(0x16e)]=[]);_0x4e2071['filepath']&&(_0x3e9245[_0x5e1061(0x13d)]=_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8[_0x5e1061(0x13d)]);(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8[_0x5e1061(0x12d)])&&(_0x3e9245[_0x5e1061(0x17d)]=_0x4156e8['pprefix']);(_0x4156e8===null||_0x4156e8===void 0x0?void 0x0:_0x4156e8['module'])&&(_0x3e9245[_0x5e1061(0x150)]=_0x4156e8['module']);let _0x53378f=(0x0,decorator_3[_0x5e1061(0x148)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x300465)||{};if(typeof _0x16660e[Symbol[_0x5e1061(0x12f)]]===_0x5e1061(0x144))for(let _0x987439 of _0x16660e){let _0xce0c52={};_0xce0c52[_0x5e1061(0x183)]=_0x987439[_0x5e1061(0x185)],_0xce0c52[_0x5e1061(0x125)]=(_0x26e428+_0x987439[_0x5e1061(0x142)])[_0x5e1061(0x169)](/\/{1,}/,'/'),_0xce0c52[_0x5e1061(0x14f)]=(_0x987439===null||_0x987439===void 0x0?void 0x0:_0x987439[_0x5e1061(0x17f)])||_0x3e9245[_0x5e1061(0x14f)]||_0x5e1061(0x143),_0xce0c52['description']=(_0x987439===null||_0x987439===void 0x0?void 0x0:_0x987439[_0x5e1061(0x17b)])||'',_0xce0c52['request']=[];if(!(0x0,lodash_1[_0x5e1061(0x17e)])(_0xce0c52[_0x5e1061(0x125)],'static/apitest')&&!(0x0,lodash_1[_0x5e1061(0x17e)])(_0xce0c52['route'],_0x5e1061(0x180))&&_0x2b7447[_0x5e1061(0x146)](_0xce0c52[_0x5e1061(0x125)])===-0x1){if(!(_0x4e2071===null||_0x4e2071===void 0x0?void 0x0:_0x4e2071[_0x5e1061(0x159)])){let _0x1d0e4f=(0x0,decorator_3[_0x5e1061(0x163)])(new _0x300465(),_0x987439[_0x5e1061(0x183)]);for(const _0x2d4eab in _0x1d0e4f){let _0x580cbb=(_0x6fe202=_0x53378f[_0x987439[_0x5e1061(0x183)]])===null||_0x6fe202===void 0x0?void 0x0:_0x6fe202[_0x5e1061(0x133)](_0x137a33=>_0x137a33[_0x5e1061(0x13f)]==_0x2d4eab&&_0x137a33[_0x5e1061(0x136)]===decorator_2[_0x5e1061(0x12c)]&&(_0x137a33===null||_0x137a33===void 0x0?void 0x0:_0x137a33[_0x5e1061(0x184)]));if(_0x580cbb===null||_0x580cbb===void 0x0?void 0x0:_0x580cbb[_0x5e1061(0x184)]){let _0x40c3bb=convertTypeToString(_0x580cbb[_0x5e1061(0x184)][_0x5e1061(0x139)]||0x0);if([_0x5e1061(0x16c),_0x5e1061(0x140)]['indexOf'](_0x40c3bb)!=-0x1&&_0x580cbb[_0x5e1061(0x184)]['propertyData'][_0x5e1061(0x146)](':')==-0x1&&!_0xce0c52[_0x5e1061(0x165)]['find'](_0x104342=>_0x104342[_0x5e1061(0x136)]==_0x580cbb['metadata'][_0x5e1061(0x13b)]))_0xce0c52['request']['push']({'key':_0x580cbb['metadata']['propertyData'],'title':_0x580cbb[_0x5e1061(0x184)][_0x5e1061(0x13b)],'type':convertSchemaType(_0x1d0e4f[_0x580cbb[_0x5e1061(0x13f)]][_0x5e1061(0x172)]),'required':![],'default':'','desc':''});else{if(_0x40c3bb==_0x5e1061(0x164)){let _0x2f94f0=((_0x3c2344=_0x580cbb===null||_0x580cbb===void 0x0?void 0x0:_0x580cbb[_0x5e1061(0x184)])===null||_0x3c2344===void 0x0?void 0x0:_0x3c2344[_0x5e1061(0x13b)])||_0x5e1061(0x164);_0x2f94f0[_0x5e1061(0x146)](':')==-0x1&&!_0xce0c52[_0x5e1061(0x165)][_0x5e1061(0x133)](_0x1f8d90=>_0x1f8d90['key']==_0x2f94f0&&_0x1f8d90['type']==_0x5e1061(0x164))&&_0xce0c52[_0x5e1061(0x165)]['push']({'key':_0x2f94f0,'title':_0x5e1061(0x182)+_0x2f94f0,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x80f6fe=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1['RULES_KEY'],_0x1d0e4f[_0x2d4eab]);_0x80f6fe&&_0xce0c52[_0x5e1061(0x165)]['push'](...getJoiRequest(_0x80f6fe));}}}_0x3e9245['routes']['push'](_0xce0c52);}}if(_0x3e9245[_0x5e1061(0x16e)][_0x5e1061(0x186)]>0x0){let _0xc0b267=_0x26fc81[_0x26e428];_0xc0b267?(_0xc0b267[_0x5e1061(0x14f)]!=_0x3e9245[_0x5e1061(0x14f)]&&(_0xc0b267['summary']=_0xc0b267[_0x5e1061(0x14f)]+','+_0x3e9245[_0x5e1061(0x14f)]),_0xc0b267[_0x5e1061(0x17b)]!=_0x3e9245[_0x5e1061(0x17b)]&&(_0xc0b267[_0x5e1061(0x17b)]=_0xc0b267[_0x5e1061(0x17b)]+','+_0x3e9245[_0x5e1061(0x17b)]),_0xc0b267[_0x5e1061(0x16e)]=_0xc0b267[_0x5e1061(0x16e)][_0x5e1061(0x13a)](_0x3e9245[_0x5e1061(0x16e)]),_0x26fc81[_0x26e428]=_0xc0b267):_0x26fc81[_0x26e428]=_0x3e9245;}}}return _0x26fc81;}exports[a8_0x43873b(0x16b)]=getRoutes;function a8_0x47c9(){const _0x5ecdf1=['426xEmKbB','Number','split','min','limit','description','@anncic-api/validator','prefix','startsWith','routerName','/static/apitest','53864nXGnHa','文件上传-','method','metadata','requestMethod','length','defineProperty','get','required','RouteParamTypes','-array','route','number','FILESSTREAM','Boolean','log','max','91kymGMe','WEB_ROUTER_PARAM_KEY','pprefix','string','iterator','677380UzMZoR','push','149816nIZSNu','find','allow','ACTION_ROUTE_KEY','key','listModule','ACTION_KEY','type','concat','propertyData','6LXlRPL','filepath','1167966FmlelE','parameterIndex','body','File','path','default','function','routerOptions','indexOf','lodash','getClassMetadata','isArray','flags.label','keys','array','@midwayjs/decorator','title','summary','module','filter','header','BODY','describe','只允许:[','Object','rules','10670FvieHu','noreq','PARAM','FILESTREAM','boolean','__esModule','965232aSBRkp','tagName','939jOmjLE','join','44AJvVHg','getMethodParamTypes','file','request','../types/action','args','children','replace','items','getRoutes','query','test','routes','HEADERS','QUERY','String','name','692ynWfeG','object','FIELDS'];a8_0x47c9=function(){return _0x5ecdf1;};return a8_0x47c9();}function getJoiRequest(_0x1c91a3){const _0x2dd8b4=a8_0x43873b,_0x3bcdbd=[];for(let _0x45e873 in _0x1c91a3){const _0x4fe743={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x42fe88=typeof _0x1c91a3[_0x45e873][_0x2dd8b4(0x154)]=='function'?_0x1c91a3[_0x45e873][_0x2dd8b4(0x154)]():_0x1c91a3[_0x45e873];_0x4fe743[_0x2dd8b4(0x136)]=_0x45e873,_0x4fe743[_0x2dd8b4(0x139)]=_0x42fe88['type'],_0x4fe743[_0x2dd8b4(0x14e)]=(0x0,lodash_1[_0x2dd8b4(0x188)])(_0x42fe88,_0x2dd8b4(0x14a),_0x45e873),_0x4fe743[_0x2dd8b4(0x143)]=(0x0,lodash_1[_0x2dd8b4(0x188)])(_0x42fe88,'flags.default',''),_0x4fe743[_0x2dd8b4(0x189)]=(0x0,lodash_1[_0x2dd8b4(0x188)])(_0x42fe88,'flags.presence','')=='required',_0x4fe743[_0x2dd8b4(0x17b)]=(0x0,lodash_1[_0x2dd8b4(0x188)])(_0x42fe88,'flags.description','');if(_0x42fe88['type']==_0x2dd8b4(0x174))_0x4fe743[_0x2dd8b4(0x168)]=getJoiRequest(_0x42fe88[_0x2dd8b4(0x14b)]);else _0x42fe88['type']==_0x2dd8b4(0x14c)&&_0x42fe88[_0x2dd8b4(0x16a)]&&Array['isArray'](_0x42fe88[_0x2dd8b4(0x16a)])&&_0x42fe88[_0x2dd8b4(0x16a)][0x0]&&console[_0x2dd8b4(0x129)](_0x45e873+_0x2dd8b4(0x124),_0x42fe88);_0x42fe88[_0x2dd8b4(0x134)]&&Array['isArray'](_0x42fe88['allow'])&&_0x42fe88['allow'][_0x2dd8b4(0x186)]>0x0&&(_0x4fe743[_0x2dd8b4(0x17b)]=_0x2dd8b4(0x155)+_0x42fe88[_0x2dd8b4(0x134)][_0x2dd8b4(0x161)](',')+'];'+_0x4fe743['description']);if(_0x4fe743[_0x2dd8b4(0x136)]&&_0x4fe743[_0x2dd8b4(0x139)]){const _0x5970f6={};for(const _0x5022d9 of _0x42fe88[_0x2dd8b4(0x157)]||[]){if(_0x5022d9[_0x2dd8b4(0x172)]===_0x2dd8b4(0x179)&&_0x5022d9['args'])_0x5970f6[_0x2dd8b4(0x179)]=_0x5022d9[_0x2dd8b4(0x167)][_0x2dd8b4(0x17a)];else _0x5022d9[_0x2dd8b4(0x172)]===_0x2dd8b4(0x12a)&&(_0x5970f6['max']=_0x5022d9[_0x2dd8b4(0x167)]['limit']);}_0x4fe743['rules']=_0x5970f6;}_0x4fe743[_0x2dd8b4(0x136)]&&_0x4fe743['title']&&_0x3bcdbd[_0x2dd8b4(0x131)](_0x4fe743);}return _0x3bcdbd;}function a8_0x17bd(_0x2cbf98,_0x1e56b9){const _0x47c94a=a8_0x47c9();return a8_0x17bd=function(_0x17bd6d,_0x570a9e){_0x17bd6d=_0x17bd6d-0x123;let _0x3b4f02=_0x47c94a[_0x17bd6d];return _0x3b4f02;},a8_0x17bd(_0x2cbf98,_0x1e56b9);}function convertSchemaType(_0x3b46f4){const _0x218566=a8_0x43873b;switch(_0x3b46f4){case _0x218566(0x156):return _0x218566(0x174);case _0x218566(0x128):return _0x218566(0x15c);case _0x218566(0x177):return _0x218566(0x126);case _0x218566(0x171):return _0x218566(0x12e);case _0x218566(0x141):return _0x218566(0x164);default:return _0x218566(0x12e);}}function convertTypeToString(_0x16498b){const _0x41672f=a8_0x43873b;switch(_0x16498b){case decorator_1[_0x41672f(0x123)][_0x41672f(0x16f)]:return _0x41672f(0x152);case decorator_1[_0x41672f(0x123)][_0x41672f(0x170)]:return _0x41672f(0x16c);case decorator_1[_0x41672f(0x123)][_0x41672f(0x15a)]:return _0x41672f(0x142);case decorator_1['RouteParamTypes'][_0x41672f(0x153)]:return _0x41672f(0x140);case decorator_1['RouteParamTypes'][_0x41672f(0x175)]:case decorator_1[_0x41672f(0x123)][_0x41672f(0x127)]:case decorator_1['RouteParamTypes'][_0x41672f(0x15b)]:return'file';default:return _0x41672f(0x152);}}
|
|
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);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x308a9c=a9_0x1efd;(function(_0x2eec6b,_0x5542ba){var _0x4a972d=a9_0x1efd,_0x543c07=_0x2eec6b();while(!![]){try{var _0x2fbd69=parseInt(_0x4a972d(0x149))/0x1+-parseInt(_0x4a972d(0x138))/0x2*(-parseInt(_0x4a972d(0x141))/0x3)+parseInt(_0x4a972d(0x140))/0x4+-parseInt(_0x4a972d(0x115))/0x5+-parseInt(_0x4a972d(0x118))/0x6+parseInt(_0x4a972d(0x143))/0x7*(parseInt(_0x4a972d(0x12a))/0x8)+-parseInt(_0x4a972d(0x127))/0x9;if(_0x2fbd69===_0x5542ba)break;else _0x543c07['push'](_0x543c07['shift']());}catch(_0x35a672){_0x543c07['push'](_0x543c07['shift']());}}}(a9_0x34b8,0x3d7b1));var __createBinding=this&&this['__createBinding']||(Object[a9_0x308a9c(0x148)]?function(_0x42724c,_0x2fe1d0,_0x3fc49e,_0x4b57bc){var _0xa9e00c=a9_0x308a9c;if(_0x4b57bc===undefined)_0x4b57bc=_0x3fc49e;var _0x5ab00f=Object[_0xa9e00c(0x12f)](_0x2fe1d0,_0x3fc49e);(!_0x5ab00f||(_0xa9e00c(0x12b)in _0x5ab00f?!_0x2fe1d0['__esModule']:_0x5ab00f[_0xa9e00c(0x121)]||_0x5ab00f[_0xa9e00c(0x134)]))&&(_0x5ab00f={'enumerable':!![],'get':function(){return _0x2fe1d0[_0x3fc49e];}}),Object[_0xa9e00c(0x13b)](_0x42724c,_0x4b57bc,_0x5ab00f);}:function(_0x397785,_0x295f43,_0x28bb14,_0x2d28b0){if(_0x2d28b0===undefined)_0x2d28b0=_0x28bb14;_0x397785[_0x2d28b0]=_0x295f43[_0x28bb14];}),__exportStar=this&&this[a9_0x308a9c(0x145)]||function(_0x366fb8,_0x3434c9){var _0x430d2e=a9_0x308a9c;for(var _0x411c21 in _0x366fb8)if(_0x411c21!=='default'&&!Object[_0x430d2e(0x116)][_0x430d2e(0x124)]['call'](_0x3434c9,_0x411c21))__createBinding(_0x3434c9,_0x366fb8,_0x411c21);};Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x11d),{'value':!![]}),exports[a9_0x308a9c(0x13c)]=exports[a9_0x308a9c(0x11a)]=exports[a9_0x308a9c(0x14d)]=exports['Inject']=exports[a9_0x308a9c(0x11e)]=exports[a9_0x308a9c(0x142)]=exports[a9_0x308a9c(0x11f)]=exports[a9_0x308a9c(0x12c)]=exports[a9_0x308a9c(0x132)]=exports['Headers']=exports[a9_0x308a9c(0x136)]=exports[a9_0x308a9c(0x14c)]=exports['Body']=exports[a9_0x308a9c(0x146)]=exports[a9_0x308a9c(0x144)]=exports[a9_0x308a9c(0x147)]=exports[a9_0x308a9c(0x122)]=exports[a9_0x308a9c(0x125)]=exports[a9_0x308a9c(0x14a)]=exports[a9_0x308a9c(0x123)]=exports[a9_0x308a9c(0x135)]=exports[a9_0x308a9c(0x120)]=exports[a9_0x308a9c(0x126)]=exports['QueueService']=exports['ApiError']=exports['getRoutes']=exports[a9_0x308a9c(0x11c)]=exports[a9_0x308a9c(0x133)]=exports[a9_0x308a9c(0x13e)]=void 0x0;const getAppsConfig_1=require(a9_0x308a9c(0x12d));Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x13c),{'enumerable':!![],'get':function(){var _0x305e0d=a9_0x308a9c;return getAppsConfig_1[_0x305e0d(0x13c)];}}),__exportStar(require(a9_0x308a9c(0x128)),exports),__exportStar(require(a9_0x308a9c(0x117)),exports);var ActionApi_1=require(a9_0x308a9c(0x13f));Object['defineProperty'](exports,a9_0x308a9c(0x13e),{'enumerable':!![],'get':function(){var _0x3c63b5=a9_0x308a9c;return ActionApi_1[_0x3c63b5(0x13e)];}});var Action_1=require(a9_0x308a9c(0x131));Object[a9_0x308a9c(0x13b)](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');function a9_0x34b8(){var _0x614d84=['@anncic-api/event','@midwayjs/decorator','CustomConfiguration','432540eBnbLm','prototype','./service/ApitestService','2421612lDRJjd','@anncic-api/cache','ScopeEnum','Inject','Apitest','__esModule','Provide','Config','EventService','writable','Configuration','ExcelService','hasOwnProperty','ValidatorService','CacheService','1718361oCclBd','./types/common','@anncic-api/validator','1512904DmzCLl','get','App','./helper/getAppsConfig','Body','getOwnPropertyDescriptor','@midwayjs/task','./decorator/Action','Init','Action','configurable','ApiService','Query','QueueService','282iLlnMt','./helper/getRoutes','./service/ExcelService','defineProperty','getAppsConfig','ApiError','Api','./decorator/ActionApi','1423016Btxqps','7407xFjsHX','Logger','7phnpCp','Files','__exportStar','Fields','File','create','39868EQOObM','ValidatorError','./service/ApiService','Param','Scope'];a9_0x34b8=function(){return _0x614d84;};return a9_0x34b8();}Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x11c),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x308a9c(0x139));Object['defineProperty'](exports,'getRoutes',{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require('./exception/ApiError');Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x13d),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a9_0x308a9c(0x130));Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x137),{'enumerable':!![],'get':function(){var _0x3163d6=a9_0x308a9c;return task_1[_0x3163d6(0x137)];}});var cache_1=require(a9_0x308a9c(0x119));Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x126),{'enumerable':!![],'get':function(){var _0x547538=a9_0x308a9c;return cache_1[_0x547538(0x126)];}});var event_1=require(a9_0x308a9c(0x112));Object['defineProperty'](exports,a9_0x308a9c(0x120),{'enumerable':!![],'get':function(){var _0x3e9dd1=a9_0x308a9c;return event_1[_0x3e9dd1(0x120)];}});var ApiService_1=require(a9_0x308a9c(0x14b));Object['defineProperty'](exports,a9_0x308a9c(0x135),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});function a9_0x1efd(_0x41bb73,_0x52f12e){var _0x34b83c=a9_0x34b8();return a9_0x1efd=function(_0x1efdc0,_0x19e16f){_0x1efdc0=_0x1efdc0-0x112;var _0x50d995=_0x34b83c[_0x1efdc0];return _0x50d995;},a9_0x1efd(_0x41bb73,_0x52f12e);}var ExcelService_1=require(a9_0x308a9c(0x13a));Object[a9_0x308a9c(0x13b)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x51e1c=a9_0x308a9c;return ExcelService_1[_0x51e1c(0x123)];}});var validator_1=require(a9_0x308a9c(0x129));Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x14a),{'enumerable':!![],'get':function(){var _0x3a39cc=a9_0x308a9c;return validator_1[_0x3a39cc(0x14a)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x125),{'enumerable':!![],'get':function(){var _0x2bf65b=a9_0x308a9c;return validator_1[_0x2bf65b(0x125)];}});var configuration_1=require('./configuration');Object[a9_0x308a9c(0x13b)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2221a7=a9_0x308a9c;return configuration_1[_0x2221a7(0x114)];}});var decorator_1=require(a9_0x308a9c(0x113));Object['defineProperty'](exports,a9_0x308a9c(0x147),{'enumerable':!![],'get':function(){var _0x1e6d06=a9_0x308a9c;return decorator_1[_0x1e6d06(0x147)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x144),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a9_0x308a9c(0x13b)](exports,'Fields',{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object['defineProperty'](exports,a9_0x308a9c(0x12e),{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x14c),{'enumerable':!![],'get':function(){var _0x1ddbc3=a9_0x308a9c;return decorator_1[_0x1ddbc3(0x14c)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x136),{'enumerable':!![],'get':function(){var _0x193727=a9_0x308a9c;return decorator_1[_0x193727(0x136)];}}),Object[a9_0x308a9c(0x13b)](exports,'Headers',{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object[a9_0x308a9c(0x13b)](exports,'Init',{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require('@midwayjs/decorator');Object[a9_0x308a9c(0x13b)](exports,'App',{'enumerable':!![],'get':function(){var _0xd641d5=a9_0x308a9c;return decorator_2[_0xd641d5(0x12c)];}}),Object['defineProperty'](exports,a9_0x308a9c(0x11f),{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x142),{'enumerable':!![],'get':function(){var _0x4fb97e=a9_0x308a9c;return decorator_2[_0x4fb97e(0x142)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x11e),{'enumerable':!![],'get':function(){var _0x4009fb=a9_0x308a9c;return decorator_2[_0x4009fb(0x11e)];}}),Object[a9_0x308a9c(0x13b)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x171b24=a9_0x308a9c;return decorator_2[_0x171b24(0x11b)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x14d),{'enumerable':!![],'get':function(){var _0x58391c=a9_0x308a9c;return decorator_2[_0x58391c(0x14d)];}}),Object[a9_0x308a9c(0x13b)](exports,a9_0x308a9c(0x11a),{'enumerable':!![],'get':function(){var _0x19961b=a9_0x308a9c;return decorator_2[_0x19961b(0x11a)];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x308a9c(0x13c)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a10_0x39b0(_0x52afb7,_0x493371){var _0x4c40b9=a10_0x4c40();return a10_0x39b0=function(_0x39b041,_0x508c9f){_0x39b041=_0x39b041-0x100;var _0x2a1b70=_0x4c40b9[_0x39b041];return _0x2a1b70;},a10_0x39b0(_0x52afb7,_0x493371);}var a10_0x49a8cd=a10_0x39b0;(function(_0x4a00f8,_0x110fa6){var _0x663cdf=a10_0x39b0,_0xa9e0d=_0x4a00f8();while(!![]){try{var _0x3cc98b=-parseInt(_0x663cdf(0x135))/0x1+-parseInt(_0x663cdf(0x10d))/0x2+parseInt(_0x663cdf(0x107))/0x3*(-parseInt(_0x663cdf(0x122))/0x4)+-parseInt(_0x663cdf(0x13b))/0x5*(-parseInt(_0x663cdf(0x100))/0x6)+-parseInt(_0x663cdf(0x125))/0x7*(-parseInt(_0x663cdf(0x104))/0x8)+-parseInt(_0x663cdf(0x11c))/0x9+parseInt(_0x663cdf(0x126))/0xa;if(_0x3cc98b===_0x110fa6)break;else _0xa9e0d['push'](_0xa9e0d['shift']());}catch(_0x32dfbe){_0xa9e0d['push'](_0xa9e0d['shift']());}}}(a10_0x4c40,0x8316d));function a10_0x4c40(){var _0x3898b=['Singleton','531PcbVHa','password','secret','fromEntries','config','sort','89566tScSZH','metadata','Scope','../exception/ApiError','getsign','timeout','ApiError','TIMEOUT','getOwnPropertyDescriptor','ApiService','function','map','ScopeEnum','undefined','length','4322448NJfHWt','crypto-js','device','checkcode','requesttime','logintime','15152ZZlxKw','prototype','MD5','1545047KhPsnB','18829550MLfejA','now','devices','缺少头信息:signature','secret=','getcheck','__metadata','HEADERS_CHECKCODE','join','toLowerCase','push','@midwayjs/decorator','token','decorate','signature','755012IDRRvj','toString','entries','anncicapi','object','HEADERS_LACK','39980cJNHWi','__esModule','288DDzvFw','defineProperty','缺少头信息:','HEADERS_SIGNATURE','8aEDUno','HEADERS_DEVICE'];a10_0x4c40=function(){return _0x3898b;};return a10_0x4c40();}var __decorate=this&&this['__decorate']||function(_0x1d5744,_0x4f23d3,_0x42cfdb,_0x11031e){var _0x2207af=a10_0x39b0,_0x5613ab=arguments[_0x2207af(0x11b)],_0xf41e37=_0x5613ab<0x3?_0x4f23d3:_0x11031e===null?_0x11031e=Object[_0x2207af(0x115)](_0x4f23d3,_0x42cfdb):_0x11031e,_0x2ba5ce;if(typeof Reflect===_0x2207af(0x139)&&typeof Reflect[_0x2207af(0x133)]===_0x2207af(0x117))_0xf41e37=Reflect[_0x2207af(0x133)](_0x1d5744,_0x4f23d3,_0x42cfdb,_0x11031e);else{for(var _0x413c12=_0x1d5744[_0x2207af(0x11b)]-0x1;_0x413c12>=0x0;_0x413c12--)if(_0x2ba5ce=_0x1d5744[_0x413c12])_0xf41e37=(_0x5613ab<0x3?_0x2ba5ce(_0xf41e37):_0x5613ab>0x3?_0x2ba5ce(_0x4f23d3,_0x42cfdb,_0xf41e37):_0x2ba5ce(_0x4f23d3,_0x42cfdb))||_0xf41e37;}return _0x5613ab>0x3&&_0xf41e37&&Object[_0x2207af(0x101)](_0x4f23d3,_0x42cfdb,_0xf41e37),_0xf41e37;},__metadata=this&&this[a10_0x49a8cd(0x12c)]||function(_0x4a7b6f,_0xafa229){var _0x17d98d=a10_0x49a8cd;if(typeof Reflect===_0x17d98d(0x139)&&typeof Reflect['metadata']===_0x17d98d(0x117))return Reflect[_0x17d98d(0x10e)](_0x4a7b6f,_0xafa229);};Object[a10_0x49a8cd(0x101)](exports,a10_0x49a8cd(0x13c),{'value':!![]}),exports[a10_0x49a8cd(0x116)]=void 0x0;const crypto_js_1=require(a10_0x49a8cd(0x11d)),decorator_1=require(a10_0x49a8cd(0x131)),ApiError_1=require(a10_0x49a8cd(0x110));let ApiService=class ApiService{[a10_0x49a8cd(0x108)](_0x28c20){var _0x4f5c4f=a10_0x49a8cd,_0x48aa4a;return _0x28c20?(0x0,crypto_js_1[_0x4f5c4f(0x124)])(_0x28c20+(0x0,crypto_js_1[_0x4f5c4f(0x124)])((0x0,crypto_js_1['MD5'])(_0x28c20)[_0x4f5c4f(0x136)]()+((_0x48aa4a=this['config'])===null||_0x48aa4a===void 0x0?void 0x0:_0x48aa4a[_0x4f5c4f(0x108)]))[_0x4f5c4f(0x136)]())[_0x4f5c4f(0x136)]():'';}[a10_0x49a8cd(0x12b)](_0x3f7b45,_0x14462d,_0x40f61e=Date[a10_0x49a8cd(0x127)]()){var _0x1c2f3c=a10_0x49a8cd;return{'Token':_0x3f7b45,'Logintime':_0x40f61e,'Checkcode':this[_0x1c2f3c(0x11f)](_0x3f7b45,_0x14462d,_0x40f61e)};}[a10_0x49a8cd(0x111)](_0x5086b2={}){var _0xab68cf=a10_0x49a8cd;const _0x1e7afd=[],_0x191d99=Object['fromEntries'](Object[_0xab68cf(0x137)](_0x5086b2)[_0xab68cf(0x118)](_0x1944e8=>[_0x1944e8[0x0][_0xab68cf(0x12f)](),_0x1944e8[0x1]]));for(let _0xb6effb of['device',_0xab68cf(0x120),_0xab68cf(0x132),_0xab68cf(0x121),_0xab68cf(0x11f)]){if(typeof _0x191d99[_0xb6effb]==_0xab68cf(0x11a))throw new AnnError(ApiError_1[_0xab68cf(0x113)][_0xab68cf(0x13a)],{'message':_0xab68cf(0x102)+_0xb6effb});_0x1e7afd[_0xab68cf(0x130)](_0xb6effb+'='+_0x191d99[_0xb6effb]);}if(Math['abs'](_0x191d99[_0xab68cf(0x120)])-Date[_0xab68cf(0x127)]()>this[_0xab68cf(0x10b)][_0xab68cf(0x112)])throw new AnnError(ApiError_1[_0xab68cf(0x113)][_0xab68cf(0x114)]);if(!this[_0xab68cf(0x10b)][_0xab68cf(0x128)][_0x191d99[_0xab68cf(0x11e)]]||!this[_0xab68cf(0x10b)][_0xab68cf(0x128)][_0x191d99[_0xab68cf(0x11e)]][_0xab68cf(0x109)]||!this['config'][_0xab68cf(0x128)][_0x191d99[_0xab68cf(0x11e)]][_0xab68cf(0x11f)])throw new AnnError(ApiError_1[_0xab68cf(0x113)]['HEADERS_DEVICE']);if(_0x191d99['token']&&_0x191d99[_0xab68cf(0x11f)]!=this['checkcode'](_0x191d99[_0xab68cf(0x132)],_0x191d99[_0xab68cf(0x11e)],_0x191d99[_0xab68cf(0x121)]))throw new AnnError(ApiError_1[_0xab68cf(0x113)][_0xab68cf(0x12d)]);return _0x1e7afd[_0xab68cf(0x130)](_0xab68cf(0x12a)+this['config'][_0xab68cf(0x128)][_0x191d99[_0xab68cf(0x11e)]][_0xab68cf(0x109)]),(0x0,crypto_js_1['MD5'])(_0x1e7afd[_0xab68cf(0x10c)]()[_0xab68cf(0x12e)](''))[_0xab68cf(0x136)]();}['checkcode'](_0x23530c,_0xd6e391,_0x5d784d=Date['now']()){var _0x2e160e=a10_0x49a8cd,_0x14e26b,_0x599004,_0xe72464;if(!((_0x14e26b=this[_0x2e160e(0x10b)])===null||_0x14e26b===void 0x0?void 0x0:_0x14e26b[_0x2e160e(0x128)][_0xd6e391])||!((_0xe72464=(_0x599004=this[_0x2e160e(0x10b)])===null||_0x599004===void 0x0?void 0x0:_0x599004['devices'][_0xd6e391])===null||_0xe72464===void 0x0?void 0x0:_0xe72464[_0x2e160e(0x11f)]))throw new AnnError(ApiError_1[_0x2e160e(0x113)][_0x2e160e(0x105)]);return(0x0,crypto_js_1[_0x2e160e(0x124)])(_0x23530c+(0x0,crypto_js_1[_0x2e160e(0x124)])(_0x5d784d+this[_0x2e160e(0x10b)][_0x2e160e(0x128)][_0xd6e391][_0x2e160e(0x11f)])[_0x2e160e(0x136)]())[_0x2e160e(0x136)]();}['checksign'](_0x277435={}){var _0x132f21=a10_0x49a8cd;const _0x5dd2c0=Object[_0x132f21(0x10a)](Object[_0x132f21(0x137)](_0x277435)[_0x132f21(0x118)](_0x427d06=>[_0x427d06[0x0][_0x132f21(0x12f)](),_0x427d06[0x1]]));if(!(_0x5dd2c0===null||_0x5dd2c0===void 0x0?void 0x0:_0x5dd2c0[_0x132f21(0x134)]))throw new AnnError(ApiError_1[_0x132f21(0x113)][_0x132f21(0x13a)],{'message':_0x132f21(0x129)});if((_0x5dd2c0===null||_0x5dd2c0===void 0x0?void 0x0:_0x5dd2c0['signature'])!=this[_0x132f21(0x111)](_0x5dd2c0))throw new AnnError(ApiError_1[_0x132f21(0x113)][_0x132f21(0x103)]);return!![];}};__decorate([(0x0,decorator_1['Config'])(a10_0x49a8cd(0x138)),__metadata('design:type',Object)],ApiService[a10_0x49a8cd(0x123)],a10_0x49a8cd(0x10b),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a10_0x49a8cd(0x10f)])(decorator_1[a10_0x49a8cd(0x119)][a10_0x49a8cd(0x106)])],ApiService),exports[a10_0x49a8cd(0x116)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x383e3e=a11_0x2598;(function(_0x2fe362,_0x4e29bc){const _0x424d6c=a11_0x2598,_0xd58e0=_0x2fe362();while(!![]){try{const _0x34df9c=-parseInt(_0x424d6c(0x133))/0x1+parseInt(_0x424d6c(0x16b))/0x2+-parseInt(_0x424d6c(0x141))/0x3*(parseInt(_0x424d6c(0x156))/0x4)+-parseInt(_0x424d6c(0x14a))/0x5*(-parseInt(_0x424d6c(0x17e))/0x6)+-parseInt(_0x424d6c(0x168))/0x7*(-parseInt(_0x424d6c(0x158))/0x8)+-parseInt(_0x424d6c(0x131))/0x9*(-parseInt(_0x424d6c(0x142))/0xa)+parseInt(_0x424d6c(0x159))/0xb*(parseInt(_0x424d6c(0x16d))/0xc);if(_0x34df9c===_0x4e29bc)break;else _0xd58e0['push'](_0xd58e0['shift']());}catch(_0x4960cf){_0xd58e0['push'](_0xd58e0['shift']());}}}(a11_0x1852,0xa3171));function a11_0x1852(){const _0x32f246=['ctx','url','__metadata','Environment','decorate','__esModule','cache-control','Controller','devices','MidwayEnvironmentService','join','.css','replace','/index.html','3790661HROUka','method','getRoutes','753250BxGKXY','config','5974548WUyKzB','object','utf-8','content-type','/apitest-:module','metadata','apitesthtml','Param','path','../helper/getRoutes','anncicapi','apiteststatic','function','__devices__','routes','substring','@midwayjs/core','2974134KHzpkj','apitest','/apitest','extname','54NlxloY','.js','1198141rNnocl','public,\x20max-age=604800','ScopeEnum','../../public/','length','Singleton','design:type','Request','existsSync','__param','defineProperty','description','filepath','readFileSync','3UsYnQX','225750bSkWju','design:returntype','prototype','/apiteststatic/','Inject','Config','isDevelopmentEnvironment','ApitestService','5RYiZTE','prefix','ApitestStaticController','application/javascript;\x20charset=utf-8','@midwayjs/decorator','set','../../public/index.html','apidoc','stringify','design:paramtypes','request','__decorate','2715548ajKcdo','summary','8ThiwYJ','22ttsAXa'];a11_0x1852=function(){return _0x32f246;};return a11_0x1852();}var __decorate=this&&this[a11_0x383e3e(0x155)]||function(_0xd9deb9,_0x1c7668,_0x562bdc,_0xab5a13){const _0xe399e2=a11_0x383e3e;var _0x54c937=arguments[_0xe399e2(0x137)],_0x4ffb99=_0x54c937<0x3?_0x1c7668:_0xab5a13===null?_0xab5a13=Object['getOwnPropertyDescriptor'](_0x1c7668,_0x562bdc):_0xab5a13,_0x28b3cb;if(typeof Reflect===_0xe399e2(0x16e)&&typeof Reflect[_0xe399e2(0x15e)]===_0xe399e2(0x179))_0x4ffb99=Reflect[_0xe399e2(0x15e)](_0xd9deb9,_0x1c7668,_0x562bdc,_0xab5a13);else{for(var _0x3ed697=_0xd9deb9[_0xe399e2(0x137)]-0x1;_0x3ed697>=0x0;_0x3ed697--)if(_0x28b3cb=_0xd9deb9[_0x3ed697])_0x4ffb99=(_0x54c937<0x3?_0x28b3cb(_0x4ffb99):_0x54c937>0x3?_0x28b3cb(_0x1c7668,_0x562bdc,_0x4ffb99):_0x28b3cb(_0x1c7668,_0x562bdc))||_0x4ffb99;}return _0x54c937>0x3&&_0x4ffb99&&Object[_0xe399e2(0x13d)](_0x1c7668,_0x562bdc,_0x4ffb99),_0x4ffb99;},__metadata=this&&this[a11_0x383e3e(0x15c)]||function(_0x3bbd3c,_0x2339d3){const _0x240fed=a11_0x383e3e;if(typeof Reflect===_0x240fed(0x16e)&&typeof Reflect['metadata']===_0x240fed(0x179))return Reflect[_0x240fed(0x172)](_0x3bbd3c,_0x2339d3);},__param=this&&this[a11_0x383e3e(0x13c)]||function(_0x35a507,_0xe29d17){return function(_0x332a0c,_0x13a58a){_0xe29d17(_0x332a0c,_0x13a58a,_0x35a507);};};Object[a11_0x383e3e(0x13d)](exports,a11_0x383e3e(0x15f),{'value':!![]}),exports[a11_0x383e3e(0x14c)]=exports[a11_0x383e3e(0x149)]=void 0x0;const path_1=require(a11_0x383e3e(0x175)),fs_1=require('fs'),core_1=require(a11_0x383e3e(0x17d)),decorator_1=require(a11_0x383e3e(0x14e)),decorator_2=require(a11_0x383e3e(0x14e)),getRoutes_1=require(a11_0x383e3e(0x176));let ApitestService=class ApitestService{async[a11_0x383e3e(0x151)](_0x1956bc){const _0x153fc2=a11_0x383e3e,_0x47530c=(0x0,getRoutes_1[_0x153fc2(0x16a)])(_0x1956bc),_0xa84c56=[];for(let _0x3c5db4 in _0x47530c){for(let _0x1ff189 in _0x47530c[_0x3c5db4][_0x153fc2(0x17b)]){let _0x14d9b5=_0x47530c[_0x3c5db4][_0x153fc2(0x17b)][_0x1ff189],_0x1a102b=[];for(let _0x12f74f in _0x14d9b5[_0x153fc2(0x154)]){_0x1a102b['push'](_0x14d9b5['request'][_0x12f74f]);}_0xa84c56['push']({'title':_0x47530c[_0x3c5db4][_0x153fc2(0x157)]+':'+_0x14d9b5['summary'],'prefix':_0x47530c[_0x3c5db4][_0x153fc2(0x14b)],'router':_0x14d9b5['route'],'method':_0x14d9b5[_0x153fc2(0x169)],'describe':_0x14d9b5[_0x153fc2(0x13e)]||'','filepath':_0x47530c[_0x3c5db4][_0x153fc2(0x13f)]||'','request':_0x1a102b});}}const _0x188ed1=(0x0,path_1['join'])(__dirname,_0x153fc2(0x150));return(0x0,fs_1[_0x153fc2(0x140)])(_0x188ed1,{'encoding':_0x153fc2(0x16f)})[_0x153fc2(0x166)](/__res__/g,_0x153fc2(0x145))[_0x153fc2(0x166)]('__apiList__',JSON[_0x153fc2(0x152)](_0xa84c56))[_0x153fc2(0x166)](_0x153fc2(0x17a),JSON[_0x153fc2(0x152)](this[_0x153fc2(0x16c)][_0x153fc2(0x162)]));}};function a11_0x2598(_0x53a463,_0x58100c){const _0x185216=a11_0x1852();return a11_0x2598=function(_0x25987c,_0x4e7546){_0x25987c=_0x25987c-0x131;let _0x266eb9=_0x185216[_0x25987c];return _0x266eb9;},a11_0x2598(_0x53a463,_0x58100c);}__decorate([(0x0,decorator_2[a11_0x383e3e(0x147)])(a11_0x383e3e(0x177)),__metadata(a11_0x383e3e(0x139),Object)],ApitestService[a11_0x383e3e(0x144)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])('apitest'),(0x0,decorator_2['Scope'])(decorator_2[a11_0x383e3e(0x135)][a11_0x383e3e(0x138)])],ApitestService),exports[a11_0x383e3e(0x149)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x383e3e(0x173)](){const _0xf8e25b=a11_0x383e3e;if(this[_0xf8e25b(0x17f)]){const _0x464ae1={'module':![]};return this[_0xf8e25b(0x15d)][_0xf8e25b(0x148)]()&&(_0x464ae1['filepath']=!![]),await this[_0xf8e25b(0x149)][_0xf8e25b(0x151)](_0x464ae1);}return'';}async['apitestmodule'](_0x56e39a){const _0x23f0df=a11_0x383e3e;if(this[_0x23f0df(0x17f)]){const _0x5a78d5={'module':_0x56e39a};return this[_0x23f0df(0x15d)][_0x23f0df(0x148)]()&&(_0x5a78d5[_0x23f0df(0x13f)]=!![]),await this['ApitestService'][_0x23f0df(0x151)](_0x5a78d5);}return'';}async['apiteststatic'](){const _0x15ab30=a11_0x383e3e;if((0x0,path_1[_0x15ab30(0x181)])(this[_0x15ab30(0x15a)][_0x15ab30(0x154)][_0x15ab30(0x15b)])){var _0x33482b=(0x0,path_1[_0x15ab30(0x164)])(__dirname,_0x15ab30(0x136)+this[_0x15ab30(0x15a)][_0x15ab30(0x154)][_0x15ab30(0x15b)][_0x15ab30(0x166)]('/apiteststatic/','/'));if(_0x33482b[_0x15ab30(0x17c)](_0x33482b['length']-0xb)!=_0x15ab30(0x167)){this[_0x15ab30(0x15a)][_0x15ab30(0x14f)](_0x15ab30(0x160),_0x15ab30(0x134));if((0x0,path_1['extname'])(this['ctx'][_0x15ab30(0x154)][_0x15ab30(0x15b)])==_0x15ab30(0x132))this['ctx']['set'](_0x15ab30(0x170),_0x15ab30(0x14d));else(0x0,path_1[_0x15ab30(0x181)])(this[_0x15ab30(0x15a)][_0x15ab30(0x154)][_0x15ab30(0x15b)])==_0x15ab30(0x165)&&this[_0x15ab30(0x15a)][_0x15ab30(0x14f)](_0x15ab30(0x170),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x15ab30(0x13b)])(_0x33482b)&&(0x0,fs_1['readFileSync'])(_0x33482b,{'encoding':_0x15ab30(0x16f)});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x383e3e(0x139),Object)],ApitestStaticController[a11_0x383e3e(0x144)],a11_0x383e3e(0x15a),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x383e3e(0x139),core_1[a11_0x383e3e(0x163)])],ApitestStaticController[a11_0x383e3e(0x144)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a11_0x383e3e(0x146)])(),__metadata(a11_0x383e3e(0x139),ApitestService)],ApitestStaticController['prototype'],a11_0x383e3e(0x149),void 0x0),__decorate([(0x0,decorator_2[a11_0x383e3e(0x147)])('apitest'),__metadata(a11_0x383e3e(0x139),Boolean)],ApitestStaticController[a11_0x383e3e(0x144)],a11_0x383e3e(0x17f),void 0x0),__decorate([(0x0,decorator_2[a11_0x383e3e(0x147)])(a11_0x383e3e(0x177)),__metadata(a11_0x383e3e(0x139),Object)],ApitestStaticController['prototype'],a11_0x383e3e(0x16c),void 0x0),__decorate([(0x0,decorator_1['Get'])(a11_0x383e3e(0x180)),__metadata('design:type',Function),__metadata(a11_0x383e3e(0x153),[]),__metadata(a11_0x383e3e(0x143),Promise)],ApitestStaticController[a11_0x383e3e(0x144)],'apitesthtml',null),__decorate([(0x0,decorator_1['Get'])(a11_0x383e3e(0x171)),__param(0x0,(0x0,decorator_1[a11_0x383e3e(0x174)])('module')),__metadata(a11_0x383e3e(0x139),Function),__metadata(a11_0x383e3e(0x153),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x383e3e(0x144)],'apitestmodule',null),__decorate([(0x0,decorator_1['Get'])('/apiteststatic/*'),__metadata(a11_0x383e3e(0x139),Function),__metadata(a11_0x383e3e(0x153),[]),__metadata(a11_0x383e3e(0x143),Promise)],ApitestStaticController['prototype'],a11_0x383e3e(0x178),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x383e3e(0x161)])('/'),(0x0,decorator_2['Scope'])(decorator_2[a11_0x383e3e(0x135)][a11_0x383e3e(0x13a)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a12_0x5a1a8f=a12_0x2be3;(function(_0x486964,_0x49345c){const _0x22c6eb=a12_0x2be3,_0x5a5124=_0x486964();while(!![]){try{const _0x11e4e0=parseInt(_0x22c6eb(0x19b))/0x1+parseInt(_0x22c6eb(0x193))/0x2+-parseInt(_0x22c6eb(0x19f))/0x3*(-parseInt(_0x22c6eb(0x19c))/0x4)+-parseInt(_0x22c6eb(0x1c2))/0x5+-parseInt(_0x22c6eb(0x190))/0x6+-parseInt(_0x22c6eb(0x1a8))/0x7*(parseInt(_0x22c6eb(0x1a9))/0x8)+parseInt(_0x22c6eb(0x1c0))/0x9;if(_0x11e4e0===_0x49345c)break;else _0x5a5124['push'](_0x5a5124['shift']());}catch(_0x287b08){_0x5a5124['push'](_0x5a5124['shift']());}}}(a12_0x1f37,0x4c1f1));function a12_0x1f37(){const _0x4def34=['1892349lBCOxE','App','3027670aRWFnr','ExcelService','col','getAppDir','handler','function','Provide','rowCount','toString','exceljs','writeFile','decorate','trim','1365630Pdarav','get','object','1200482JVeSTy','findRows','public/xlsx','eachCell','.xlsx','koa-send','log','columns','156251wAMZHi','4rvmgHM','download','readFile','771759VOHvMX','replace','endsWith','existsSync','length','design:type','Workbook','cellCount','__esModule','966VzDsmZ','4584ppiLid','key','getWorksheet','getOwnPropertyDescriptor','getCell','header','/public/xlsx/','xlsx','Scope','getRow','isNumber','random','\x20is\x20read\x20fail','addWorksheet','metadata','app','push','startsWith','mkdirSync','value','defineProperty','parse','__decorate'];a12_0x1f37=function(){return _0x4def34;};return a12_0x1f37();}var __decorate=this&&this[a12_0x5a1a8f(0x1bf)]||function(_0x13f06a,_0xc129cf,_0x35e253,_0x4036e2){const _0x2a6dff=a12_0x5a1a8f;var _0x11fb4d=arguments[_0x2a6dff(0x1a3)],_0x4a47e9=_0x11fb4d<0x3?_0xc129cf:_0x4036e2===null?_0x4036e2=Object[_0x2a6dff(0x1ac)](_0xc129cf,_0x35e253):_0x4036e2,_0x336bdc;if(typeof Reflect===_0x2a6dff(0x192)&&typeof Reflect[_0x2a6dff(0x1cd)]===_0x2a6dff(0x1c7))_0x4a47e9=Reflect[_0x2a6dff(0x1cd)](_0x13f06a,_0xc129cf,_0x35e253,_0x4036e2);else{for(var _0x287d72=_0x13f06a[_0x2a6dff(0x1a3)]-0x1;_0x287d72>=0x0;_0x287d72--)if(_0x336bdc=_0x13f06a[_0x287d72])_0x4a47e9=(_0x11fb4d<0x3?_0x336bdc(_0x4a47e9):_0x11fb4d>0x3?_0x336bdc(_0xc129cf,_0x35e253,_0x4a47e9):_0x336bdc(_0xc129cf,_0x35e253))||_0x4a47e9;}return _0x11fb4d>0x3&&_0x4a47e9&&Object[_0x2a6dff(0x1bd)](_0xc129cf,_0x35e253,_0x4a47e9),_0x4a47e9;},__metadata=this&&this['__metadata']||function(_0x43a5b0,_0x1e150e){const _0xe913ad=a12_0x5a1a8f;if(typeof Reflect===_0xe913ad(0x192)&&typeof Reflect[_0xe913ad(0x1b7)]===_0xe913ad(0x1c7))return Reflect['metadata'](_0x43a5b0,_0x1e150e);};Object[a12_0x5a1a8f(0x1bd)](exports,a12_0x5a1a8f(0x1a7),{'value':!![]}),exports[a12_0x5a1a8f(0x1c3)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x5a1a8f(0x1cb)),koasend=require(a12_0x5a1a8f(0x198)),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async[a12_0x5a1a8f(0x1be)](_0x454977,_0x4b9ef9,_0x2bfc96=[0x0]){const _0xbfa4b5=a12_0x5a1a8f;var _0x5183b6,_0x32105f;const _0x26ab0b=new exceljs[(_0xbfa4b5(0x1a5))](),_0x27805b=[];let _0x338cf3=_0x454977[_0xbfa4b5(0x1a0)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x338cf3===null||_0x338cf3===void 0x0?void 0x0:_0x338cf3[_0xbfa4b5(0x1ba)]('/'))&&(_0x338cf3=this[_0xbfa4b5(0x1b8)]['getAppDir']()+'/'+_0x338cf3);try{await _0x26ab0b[_0xbfa4b5(0x1b0)][_0xbfa4b5(0x19e)](_0x338cf3);}catch(_0x454f62){return console[_0xbfa4b5(0x199)]('Api\x20Excel\x20Error:\x20'+_0x338cf3+_0xbfa4b5(0x1b5)),_0x27805b;}for(const _0x236360 of _0x2bfc96){const _0x12b7d6=lodash[_0xbfa4b5(0x1b3)](_0x236360)?((_0x5183b6=_0x26ab0b['worksheets'])===null||_0x5183b6===void 0x0?void 0x0:_0x5183b6[_0x236360])||undefined:_0x26ab0b[_0xbfa4b5(0x1ab)](_0x236360);if(_0x12b7d6){var _0x536210=0x1;const _0x5e1804=_0x12b7d6[_0xbfa4b5(0x1b2)](0x1),_0x879702=await new Promise(_0x132775=>{const _0xfa0205=_0xbfa4b5,_0x1cfcf3={};_0x5e1804[_0xfa0205(0x196)]((_0x12c26a,_0x398ed1)=>{const _0x24a457=_0xfa0205;for(const _0x55d4c7 of _0x4b9ef9){if(_0x12c26a[_0x24a457(0x1bc)]==_0x55d4c7[_0x24a457(0x1ae)])_0x536210=0x2,_0x1cfcf3[_0x55d4c7['key']]={'header':_0x12c26a['col'],'handler':_0x55d4c7[_0x24a457(0x1c6)]};else{if(!_0x1cfcf3[_0x55d4c7[_0x24a457(0x1aa)]])try{const _0x2fbe9c=_0x5e1804[_0x24a457(0x1ad)](_0x55d4c7[_0x24a457(0x1ae)]);_0x2fbe9c&&(_0x1cfcf3[_0x55d4c7[_0x24a457(0x1aa)]]={'header':_0x2fbe9c[_0x24a457(0x1c4)],'handler':_0x55d4c7[_0x24a457(0x1c6)]});}catch{}}}_0x5e1804[_0x24a457(0x1a6)]==_0x398ed1&&_0x132775(_0x1cfcf3);});});for(const _0x255bdc of _0x12b7d6[_0xbfa4b5(0x194)](_0x536210,_0x12b7d6[_0xbfa4b5(0x1c9)])){const _0x45f7c3={};for(const _0x17bf18 in _0x879702){_0x879702[_0x17bf18][_0xbfa4b5(0x1ae)]&&(typeof((_0x32105f=_0x879702[_0x17bf18])===null||_0x32105f===void 0x0?void 0x0:_0x32105f[_0xbfa4b5(0x1c6)])==_0xbfa4b5(0x1c7)?_0x45f7c3[_0x17bf18]=_0x879702[_0x17bf18]['handler'](_0x255bdc[_0xbfa4b5(0x1ad)](lodash[_0xbfa4b5(0x1ce)](''+_0x879702[_0x17bf18][_0xbfa4b5(0x1ae)],'\x20'))['toString']()):_0x45f7c3[_0x17bf18]=_0x255bdc[_0xbfa4b5(0x1ad)](_0x879702[_0x17bf18][_0xbfa4b5(0x1ae)])[_0xbfa4b5(0x1ca)]());}Object['keys'](_0x45f7c3)['length']>0x0&&_0x27805b[_0xbfa4b5(0x1b9)](_0x45f7c3);}}}return _0x27805b;}async['export'](_0x2351d7,_0x2925be,_0x551972,_0x1fe624=a12_0x5a1a8f(0x195)){const _0x506d48=a12_0x5a1a8f;var _0xf38105,_0x2606aa;const _0x138edb=new exceljs[(_0x506d48(0x1a5))](),_0x43872b={},_0x372639=[],_0x230e08=_0x138edb[_0x506d48(0x1b6)]('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x1b02fc in _0x2925be){_0x43872b[_0x2925be[_0x1b02fc]['key']]=_0x2925be[_0x1b02fc]['header'],_0x372639[_0x506d48(0x1b9)]({'header':_0x2925be[_0x1b02fc]['header'],'key':(_0xf38105=_0x2925be[_0x1b02fc])===null||_0xf38105===void 0x0?void 0x0:_0xf38105[_0x506d48(0x1aa)][_0x506d48(0x1a0)](/\./g,'_')});}_0x230e08[_0x506d48(0x19a)]=_0x372639;for(const _0x108f46 of _0x551972){const _0x27c34d={};for(const _0x3f7776 in _0x2925be){typeof((_0x2606aa=_0x2925be[_0x3f7776])===null||_0x2606aa===void 0x0?void 0x0:_0x2606aa[_0x506d48(0x1c6)])==_0x506d48(0x1c7)?_0x27c34d[_0x2925be[_0x3f7776][_0x506d48(0x1aa)][_0x506d48(0x1a0)](/\./g,'_')]=await _0x2925be[_0x3f7776][_0x506d48(0x1c6)](_0x108f46):_0x27c34d[_0x2925be[_0x3f7776][_0x506d48(0x1aa)]['replace'](/\./g,'_')]=lodash[_0x506d48(0x191)](_0x108f46,_0x2925be[_0x3f7776]['key'],'');}_0x230e08['addRow'](_0x27c34d);}let _0x2041cb='';const _0x1b24d7=_0x2351d7+'-'+lodash[_0x506d48(0x1b4)](0x2710,0x1869f)+_0x506d48(0x197);if(_0x1fe624&&_0x1fe624[_0x506d48(0x1ba)]('/'))_0x2041cb=_0x1fe624+'/'+_0x1b24d7;else _0x1fe624&&!_0x1fe624['startsWith']('/')&&!_0x1fe624[_0x506d48(0x1ba)]('\x5c')?_0x2041cb=this[_0x506d48(0x1b8)][_0x506d48(0x1c5)]()+'/'+_0x1fe624+'/'+_0x1b24d7:_0x2041cb=this[_0x506d48(0x1b8)][_0x506d48(0x1c5)]()+'/public/xlsx';return(_0x2041cb[_0x506d48(0x1a1)]('/')||_0x2041cb[_0x506d48(0x1a1)]('\x5c'))&&(_0x2041cb=_0x2041cb['substring'](0x0,_0x2041cb[_0x506d48(0x1a3)]-0x1)),_0x2041cb=_0x2041cb[_0x506d48(0x1a0)](/(\\|\/)/g,'/')[_0x506d48(0x1a0)](/\/{2,}/g,'/'),!fs[_0x506d48(0x1a2)](_0x2041cb)&&fs[_0x506d48(0x1bb)](_0x2041cb,{'recursive':!![]}),await _0x138edb['xlsx'][_0x506d48(0x1cc)]((_0x2041cb+'/'+_0x1b24d7)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x1b24d7,'filepath':_0x2041cb};}async[a12_0x5a1a8f(0x19d)](_0x3206c7,_0x41a1fd){const _0x4f6723=a12_0x5a1a8f;await koasend(_0x3206c7,_0x4f6723(0x1af)+_0x41a1fd);}};function a12_0x2be3(_0x5629c8,_0x532de1){const _0x1f372a=a12_0x1f37();return a12_0x2be3=function(_0x2be399,_0x4289e3){_0x2be399=_0x2be399-0x190;let _0x5dc3b7=_0x1f372a[_0x2be399];return _0x5dc3b7;},a12_0x2be3(_0x5629c8,_0x532de1);}__decorate([(0x0,decorator_1[a12_0x5a1a8f(0x1c1)])(),__metadata(a12_0x5a1a8f(0x1a4),Object)],ExcelService['prototype'],a12_0x5a1a8f(0x1b8),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x5a1a8f(0x1c8)])(),(0x0,decorator_1[a12_0x5a1a8f(0x1b1)])(decorator_1['ScopeEnum']['Singleton'])],ExcelService),exports[a12_0x5a1a8f(0x1c3)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a13_0x1afb(){var _0xabdf8d=['5DEISpJ','anncic-api:action','3492ECunOn','36816sBNpKt','AppsConfigTmp','ACTION_KEY','1925790hTKzda','467803NAqfJm','328dZAClr','anncic-api:apps:config','850ovSKqT','__esModule','defineProperty','14480690dKzFku','61534UmechV','314gtZTjF','16nnNQGG','APPSCONFIG_KEY','anncic-api:action:route','1655208bKYASL'];a13_0x1afb=function(){return _0xabdf8d;};return a13_0x1afb();}var a13_0x202f57=a13_0x2db0;(function(_0x2b4d2f,_0x255910){var _0x15fb31=a13_0x2db0,_0x521770=_0x2b4d2f();while(!![]){try{var _0x2b72c7=-parseInt(_0x15fb31(0xd8))/0x1*(-parseInt(_0x15fb31(0xdd))/0x2)+parseInt(_0x15fb31(0xd1))/0x3*(parseInt(_0x15fb31(0xd6))/0x4)+parseInt(_0x15fb31(0xe2))/0x5*(-parseInt(_0x15fb31(0xd4))/0x6)+-parseInt(_0x15fb31(0xd5))/0x7*(-parseInt(_0x15fb31(0xde))/0x8)+parseInt(_0x15fb31(0xe1))/0x9+parseInt(_0x15fb31(0xdb))/0xa+parseInt(_0x15fb31(0xdc))/0xb*(-parseInt(_0x15fb31(0xd0))/0xc);if(_0x2b72c7===_0x255910)break;else _0x521770['push'](_0x521770['shift']());}catch(_0x2b6212){_0x521770['push'](_0x521770['shift']());}}}(a13_0x1afb,0xe989e));Object[a13_0x202f57(0xda)](exports,a13_0x202f57(0xd9),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x202f57(0xdf)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x202f57(0xd3)]=void 0x0,exports[a13_0x202f57(0xd3)]=a13_0x202f57(0xe3),exports['ACTION_ROUTE_KEY']=a13_0x202f57(0xe0),exports[a13_0x202f57(0xdf)]=a13_0x202f57(0xd7);class AppsConfigTmp{}function a13_0x2db0(_0x1bf73b,_0x3a9ba0){var _0x1afbbc=a13_0x1afb();return a13_0x2db0=function(_0x2db028,_0x1d205c){_0x2db028=_0x2db028-0xd0;var _0x35a8ed=_0x1afbbc[_0x2db028];return _0x35a8ed;},a13_0x2db0(_0x1bf73b,_0x3a9ba0);}exports[a13_0x202f57(0xd2)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a14_0x566510=a14_0x552c;(function(_0x56f8e7,_0x5b0e58){var _0x55fe5c=a14_0x552c,_0xe1a92c=_0x56f8e7();while(!![]){try{var _0x8828f8=parseInt(_0x55fe5c(0xef))/0x1*(parseInt(_0x55fe5c(0xdb))/0x2)+parseInt(_0x55fe5c(0xf2))/0x3*(-parseInt(_0x55fe5c(0xdf))/0x4)+-parseInt(_0x55fe5c(0xde))/0x5*(parseInt(_0x55fe5c(0xf7))/0x6)+-parseInt(_0x55fe5c(0xf9))/0x7+parseInt(_0x55fe5c(0xd9))/0x8*(-parseInt(_0x55fe5c(0xe4))/0x9)+parseInt(_0x55fe5c(0xf6))/0xa+-parseInt(_0x55fe5c(0xfd))/0xb*(-parseInt(_0x55fe5c(0xe7))/0xc);if(_0x8828f8===_0x5b0e58)break;else _0xe1a92c['push'](_0xe1a92c['shift']());}catch(_0x51fff0){_0xe1a92c['push'](_0xe1a92c['shift']());}}}(a14_0x209c,0xb7312));function a14_0x209c(){var _0x1d5739=['5PMJEqe','178184hiiFVM','function','string','decorate','第一页为1,第二页为2','483318sENCCv','是否倒序','integer','12ksqAZh','__metadata','Rule','design:type','defineProperty','RuleType','metadata','valid','1255218vbwEJx','_order','prototype','3dhfHAP','__esModule','trim','PageDTO','6155700zwsUsP','6061386rkbJRf','min','6913452akCyCB','排序方式','number','object','25500541XplyaG','1:是;0:否','208GmJKsS','_page','2loGYYB','length','@anncic-api/validator'];a14_0x209c=function(){return _0x1d5739;};return a14_0x209c();}function a14_0x552c(_0xb4a3e2,_0x1e0b5a){var _0x209cf6=a14_0x209c();return a14_0x552c=function(_0x552c8b,_0x4cd146){_0x552c8b=_0x552c8b-0xd9;var _0x5b25c1=_0x209cf6[_0x552c8b];return _0x5b25c1;},a14_0x552c(_0xb4a3e2,_0x1e0b5a);}var __decorate=this&&this['__decorate']||function(_0x337e46,_0x2cab16,_0x1560de,_0x1d65e7){var _0x3665a8=a14_0x552c,_0x3d0af5=arguments[_0x3665a8(0xdc)],_0xc47658=_0x3d0af5<0x3?_0x2cab16:_0x1d65e7===null?_0x1d65e7=Object['getOwnPropertyDescriptor'](_0x2cab16,_0x1560de):_0x1d65e7,_0x424f76;if(typeof Reflect===_0x3665a8(0xfc)&&typeof Reflect[_0x3665a8(0xe2)]==='function')_0xc47658=Reflect['decorate'](_0x337e46,_0x2cab16,_0x1560de,_0x1d65e7);else{for(var _0x18b5db=_0x337e46[_0x3665a8(0xdc)]-0x1;_0x18b5db>=0x0;_0x18b5db--)if(_0x424f76=_0x337e46[_0x18b5db])_0xc47658=(_0x3d0af5<0x3?_0x424f76(_0xc47658):_0x3d0af5>0x3?_0x424f76(_0x2cab16,_0x1560de,_0xc47658):_0x424f76(_0x2cab16,_0x1560de))||_0xc47658;}return _0x3d0af5>0x3&&_0xc47658&&Object[_0x3665a8(0xeb)](_0x2cab16,_0x1560de,_0xc47658),_0xc47658;},__metadata=this&&this[a14_0x566510(0xe8)]||function(_0x5b4752,_0x583fa1){var _0xdc8b53=a14_0x566510;if(typeof Reflect==='object'&&typeof Reflect[_0xdc8b53(0xed)]===_0xdc8b53(0xe0))return Reflect[_0xdc8b53(0xed)](_0x5b4752,_0x583fa1);};Object[a14_0x566510(0xeb)](exports,a14_0x566510(0xf3),{'value':!![]}),exports[a14_0x566510(0xf5)]=void 0x0;const validator_1=require(a14_0x566510(0xdd));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x566510(0xec)]['number']()[a14_0x566510(0xe6)]()[a14_0x566510(0xf8)](0x1),a14_0x566510(0xe3)),__metadata(a14_0x566510(0xea),Number)],PageDTO[a14_0x566510(0xf1)],a14_0x566510(0xda),void 0x0),__decorate([(0x0,validator_1[a14_0x566510(0xe9)])('分页数量',validator_1[a14_0x566510(0xec)][a14_0x566510(0xfb)]()[a14_0x566510(0xe6)]()[a14_0x566510(0xf8)](0x1)),__metadata(a14_0x566510(0xea),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x566510(0xe9)])(a14_0x566510(0xfa),validator_1[a14_0x566510(0xec)][a14_0x566510(0xe1)]()[a14_0x566510(0xf4)]()),__metadata('design:type',String)],PageDTO[a14_0x566510(0xf1)],a14_0x566510(0xf0),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x566510(0xe5),validator_1['RuleType']['number']()[a14_0x566510(0xe6)]()[a14_0x566510(0xee)](0x0,0x1),a14_0x566510(0xfe)),__metadata(a14_0x566510(0xea),Number)],PageDTO[a14_0x566510(0xf1)],'_isreverse',void 0x0),exports[a14_0x566510(0xf5)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,19 +17,19 @@
|
|
|
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.
|
|
25
|
-
"@midwayjs/cross-domain": "^3.5.
|
|
26
|
-
"@midwayjs/i18n": "^3.5.
|
|
27
|
-
"@midwayjs/koa": "^3.5.
|
|
28
|
-
"@midwayjs/static-file": "^3.5.
|
|
29
|
-
"@midwayjs/task": "^3.5.
|
|
30
|
-
"@midwayjs/upload": "^3.5.
|
|
20
|
+
"@anncic-api/cache": "^1.1.16",
|
|
21
|
+
"@anncic-api/core": "^1.1.16",
|
|
22
|
+
"@anncic-api/event": "^1.1.16",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.16",
|
|
24
|
+
"@anncic-api/validator": "^1.1.16",
|
|
25
|
+
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
|
+
"@midwayjs/i18n": "^3.5.2",
|
|
27
|
+
"@midwayjs/koa": "^3.5.1",
|
|
28
|
+
"@midwayjs/static-file": "^3.5.2",
|
|
29
|
+
"@midwayjs/task": "^3.5.1",
|
|
30
|
+
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.16",
|
|
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": "452564401c353c628070325c7dabca442a008f8d"
|
|
45
45
|
}
|