anncic-api 1.1.46 → 1.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a0_0x826e06=a0_0x17cc;(function(_0x576443,_0x306bf7){var _0x29aeb=a0_0x17cc,_0x3e7147=_0x576443();while(!![]){try{var _0x56b737=-parseInt(_0x29aeb(0xa9))/0x1+parseInt(_0x29aeb(0xb2))/0x2*(-parseInt(_0x29aeb(0xab))/0x3)+parseInt(_0x29aeb(0xad))/0x4+parseInt(_0x29aeb(0xb7))/0x5+parseInt(_0x29aeb(0xb6))/0x6+parseInt(_0x29aeb(0xac))/0x7+-parseInt(_0x29aeb(0xaf))/0x8;if(_0x56b737===_0x306bf7)break;else _0x3e7147['push'](_0x3e7147['shift']());}catch(_0x2ef349){_0x3e7147['push'](_0x3e7147['shift']());}}}(a0_0x3b6a,0x2e20c));function a0_0x17cc(_0x20617a,_0x5eae66){var _0x3b6a20=a0_0x3b6a();return a0_0x17cc=function(_0x17cccf,_0xbc18d2){_0x17cccf=_0x17cccf-0xa5;var _0x47e7ad=_0x3b6a20[_0x17cccf];return _0x47e7ad;},a0_0x17cc(_0x20617a,_0x5eae66);}function a0_0x3b6a(){var _0x430ef5=['1959246SmPMzQ','1340360upTRJW','/runtime/.upload','text','default','dhauo1234420123gg3234901','20mb','19722aOrHSh','appDir','23421jsayQE','2258368PJwymJ','858712aonkRE','zhiulanuiy7892387985hnoi','6324272VowKhp','name','defineProperty','34OnVNAe','xml','__esModule','json'];a0_0x3b6a=function(){return _0x430ef5;};return a0_0x3b6a();}Object[a0_0x826e06(0xb1)](exports,a0_0x826e06(0xb4),{'value':!![]}),exports[a0_0x826e06(0xa6)]=_0x25fab9=>{var _0x1b50b7=a0_0x826e06;return{'apitest':!![],'keys':_0x25fab9[_0x1b50b7(0xb0)],'anncicapi':{'timeout':0x1388,'password':_0x1b50b7(0xae),'devices':{'DEFAULT':{'secret':_0x1b50b7(0xa7),'checkcode':_0x1b50b7(0xa7)}}},'bodyParser':{'enableTypes':[_0x1b50b7(0xb5),'form',_0x1b50b7(0xa5),_0x1b50b7(0xb3)],'formLimit':_0x1b50b7(0xa8),'jsonLimit':_0x1b50b7(0xa8),'textLimit':_0x1b50b7(0xa8),'xmlLimit':_0x1b50b7(0xa8)},'upload':{'tmpdir':_0x25fab9[_0x1b50b7(0xaa)]+_0x1b50b7(0xb8),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x1839fb=a1_0x2314;(function(_0x715e2d,_0x2feed4){var _0x4bab13=a1_0x2314,_0x484868=_0x715e2d();while(!![]){try{var _0x6921b4=parseInt(_0x4bab13(0xc9))/0x1+-parseInt(_0x4bab13(0xc3))/0x2*(parseInt(_0x4bab13(0xc4))/0x3)+parseInt(_0x4bab13(0xc2))/0x4+parseInt(_0x4bab13(0xc7))/0x5+-parseInt(_0x4bab13(0xc6))/0x6+parseInt(_0x4bab13(0xc5))/0x7+parseInt(_0x4bab13(0xca))/0x8*(-parseInt(_0x4bab13(0xcb))/0x9);if(_0x6921b4===_0x2feed4)break;else _0x484868['push'](_0x484868['shift']());}catch(_0x10abb2){_0x484868['push'](_0x484868['shift']());}}}(a1_0x4350,0xa80cf));function a1_0x2314(_0x31b54b,_0x238eac){var _0x4350c0=a1_0x4350();return a1_0x2314=function(_0x231423,_0x294efc){_0x231423=_0x231423-0xc2;var _0x27f175=_0x4350c0[_0x231423];return _0x27f175;},a1_0x2314(_0x31b54b,_0x238eac);}function a1_0x4350(){var _0x49404a=['1145050eIBExb','6vSoHZn','715498ydFmmC','320958bugDsD','798280lfmyRk','defineProperty','613866XBWRrp','24FGmrhN','634419iQCTWq','4890460ZmqKbH'];a1_0x4350=function(){return _0x49404a;};return a1_0x4350();}Object[a1_0x1839fb(0xc8)](exports,'__esModule',{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x4563(_0x572bc1,_0x3431da){const _0x4018d8=a2_0x4018();return a2_0x4563=function(_0x4563a0,_0x25dca8){_0x4563a0=_0x4563a0-0x1f4;let _0x12ce66=_0x4018d8[_0x4563a0];return _0x12ce66;},a2_0x4563(_0x572bc1,_0x3431da);}function a2_0x4018(){const _0x29f641=['design:type','6eevIHq','HEADERS_SIGNATURE','ApiError','devices','6595dwCWdx','@anncic-api/typeorm','staticFile','length','anncic-apihelper','@midwayjs/core','defineProperties','koa','MidwayConfigService','object','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','args','query','checksign','headers','string','Types','tmpdir','registerMethodHandler','__metadata','checkConfigKeys','isString','getConfiguration','device','isClass','725888NYoqLF','REQUEST_OBJ_CTX_KEY','handlerActionRoute','CustomConfiguration','10190qSGeva','prototype','getAsync','MidwayDecoratorService','13194632AMmxJi','165078mLeXLF','proceed','handler','anncicapi','105KcRhEm','Inject','MidwayEnvironmentService','addObject','24zpcPBz','__esModule','./config/config.production','request','body','function','intercept','@midwayjs/i18n','getOwnPropertyDescriptor','MidwayApplicationManager','application','input','defineProperty','./service/ApiService','apimit','hanlderApplications','485775jQhmuJ','existsSync','5364zdkoJA','decorator','DEFAULT','upload','key','ApiService','dir','_matchedRoute','get','anncic-api','config','requestContext','bodyXml','1060LftBIB','toLowerCase','isNull','target','59270xkbelI','context','dirs','environment','metadata','onReady','@midwayjs/cross-domain','method','filterConfig','log','Configuration','mkdirSync','@anncic-api/core','@midwayjs/koa'];a2_0x4018=function(){return _0x29f641;};return a2_0x4018();}const a2_0x5414f3=a2_0x4563;(function(_0x4d3736,_0x491661){const _0x1d5a16=a2_0x4563,_0x43435b=_0x4d3736();while(!![]){try{const _0x1f0f34=-parseInt(_0x1d5a16(0x24c))/0x1+parseInt(_0x1d5a16(0x1ff))/0x2*(-parseInt(_0x1d5a16(0x20e))/0x3)+-parseInt(_0x1d5a16(0x1fb))/0x4*(parseInt(_0x1d5a16(0x212))/0x5)+parseInt(_0x1d5a16(0x234))/0x6*(-parseInt(_0x1d5a16(0x238))/0x7)+-parseInt(_0x1d5a16(0x22b))/0x8+-parseInt(_0x1d5a16(0x24e))/0x9*(parseInt(_0x1d5a16(0x22f))/0xa)+parseInt(_0x1d5a16(0x233))/0xb*(parseInt(_0x1d5a16(0x23c))/0xc);if(_0x1f0f34===_0x491661)break;else _0x43435b['push'](_0x43435b['shift']());}catch(_0x14885f){_0x43435b['push'](_0x43435b['shift']());}}}(a2_0x4018,0x601d9));var __decorate=this&&this['__decorate']||function(_0x2f9431,_0xc0c4bb,_0x2ba11b,_0x14c12c){const _0x2af7cc=a2_0x4563;var _0x5c4206=arguments['length'],_0x50c471=_0x5c4206<0x3?_0xc0c4bb:_0x14c12c===null?_0x14c12c=Object[_0x2af7cc(0x244)](_0xc0c4bb,_0x2ba11b):_0x14c12c,_0x540009;if(typeof Reflect===_0x2af7cc(0x21b)&&typeof Reflect['decorate']===_0x2af7cc(0x241))_0x50c471=Reflect['decorate'](_0x2f9431,_0xc0c4bb,_0x2ba11b,_0x14c12c);else{for(var _0x19fa4f=_0x2f9431[_0x2af7cc(0x215)]-0x1;_0x19fa4f>=0x0;_0x19fa4f--)if(_0x540009=_0x2f9431[_0x19fa4f])_0x50c471=(_0x5c4206<0x3?_0x540009(_0x50c471):_0x5c4206>0x3?_0x540009(_0xc0c4bb,_0x2ba11b,_0x50c471):_0x540009(_0xc0c4bb,_0x2ba11b))||_0x50c471;}return _0x5c4206>0x3&&_0x50c471&&Object[_0x2af7cc(0x248)](_0xc0c4bb,_0x2ba11b,_0x50c471),_0x50c471;},__metadata=this&&this[a2_0x5414f3(0x225)]||function(_0x189723,_0x403958){const _0x4547b5=a2_0x5414f3;if(typeof Reflect===_0x4547b5(0x21b)&&typeof Reflect[_0x4547b5(0x203)]===_0x4547b5(0x241))return Reflect[_0x4547b5(0x203)](_0x189723,_0x403958);};Object[a2_0x5414f3(0x248)](exports,a2_0x5414f3(0x23d),{'value':!![]}),exports[a2_0x5414f3(0x22e)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a2_0x5414f3(0x217)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x5414f3(0x249)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x5414f3(0x20c)),i18n=require(a2_0x5414f3(0x243)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x5414f3(0x205)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x5414f3(0x23e)),anncic=require(a2_0x5414f3(0x20b)),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x5414f3(0x213)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x5414f3(0x216));let CustomConfiguration=class CustomConfiguration{async[a2_0x5414f3(0x204)](){const _0x39e4a5=a2_0x5414f3;await this['filterConfig'](),await this[_0x39e4a5(0x226)](),await this[_0x39e4a5(0x22d)](),await this[_0x39e4a5(0x24b)]();}async[a2_0x5414f3(0x226)](){}async[a2_0x5414f3(0x22d)](){const _0x36214a=a2_0x5414f3,_0xf67484=this[_0x36214a(0x1f8)][_0x36214a(0x228)]();this[_0x36214a(0x24f)][_0x36214a(0x224)](action_1['ACTION_ROUTE_KEY'],_0x1b3955=>{const _0x21a61f=_0x36214a,_0xe28ae4=_0x1b3955[_0x21a61f(0x203)];return{'before':async _0x117edf=>{const _0x20bbfe=_0x21a61f;var _0x464695,_0x136616;const _0x236b84=(_0x464695=_0x117edf===null||_0x117edf===void 0x0?void 0x0:_0x117edf['target'])===null||_0x464695===void 0x0?void 0x0:_0x464695[core_1[_0x20bbfe(0x22c)]];if(_0x236b84&&(_0xe28ae4===null||_0xe28ae4===void 0x0?void 0x0:_0xe28ae4['apimit'])){if(!this[_0x20bbfe(0x253)][_0x20bbfe(0x21f)]((_0x136616=_0x236b84===null||_0x236b84===void 0x0?void 0x0:_0x236b84['request'])===null||_0x136616===void 0x0?void 0x0:_0x136616[_0x20bbfe(0x220)]))throw new AnnError(ApiError_1[_0x20bbfe(0x210)][_0x20bbfe(0x20f)]);}},'around':async _0x1235bb=>{const _0x110958=_0x21a61f;var _0x285c29,_0x372ddc,_0x360068,_0x4c0ecb,_0x50d087;const _0x3c0b49=(_0x285c29=_0x1235bb===null||_0x1235bb===void 0x0?void 0x0:_0x1235bb[_0x110958(0x1fe)])===null||_0x285c29===void 0x0?void 0x0:_0x285c29[core_1[_0x110958(0x22c)]];if(_0x3c0b49&&(_0xe28ae4===null||_0xe28ae4===void 0x0?void 0x0:_0xe28ae4[_0x110958(0x24a)])){if(((_0x372ddc=_0x3c0b49[_0x110958(0x220)])===null||_0x372ddc===void 0x0?void 0x0:_0x372ddc[_0x110958(0x229)])&&((_0x50d087=(_0x4c0ecb=(_0x360068=_0xf67484===null||_0xf67484===void 0x0?void 0x0:_0xf67484[_0x110958(0x237)])===null||_0x360068===void 0x0?void 0x0:_0x360068['devices'])===null||_0x4c0ecb===void 0x0?void 0x0:_0x4c0ecb[_0x3c0b49[_0x110958(0x220)][_0x110958(0x229)]])===null||_0x50d087===void 0x0?void 0x0:_0x50d087[_0x110958(0x242)])){const _0x27be65=Array['isArray'](_0xf67484['anncicapi']['devices'][_0x3c0b49[_0x110958(0x220)]['device']][_0x110958(0x242)])?_0xf67484[_0x110958(0x237)][_0x110958(0x211)][_0x3c0b49[_0x110958(0x220)][_0x110958(0x229)]]['intercept']:[_0xf67484[_0x110958(0x237)][_0x110958(0x211)][_0x3c0b49[_0x110958(0x220)][_0x110958(0x229)]][_0x110958(0x242)]];for(const _0x3b7419 of _0x27be65){if(decorator_1[_0x110958(0x222)][_0x110958(0x22a)](_0x3b7419)||typeof _0x3b7419=='string'){const _0x5e1906=await _0x3c0b49[_0x110958(0x1f9)][_0x110958(0x231)](_0x3b7419);typeof(_0x5e1906===null||_0x5e1906===void 0x0?void 0x0:_0x5e1906[_0x110958(0x236)])==_0x110958(0x241)&&await _0x5e1906[_0x110958(0x236)](typeof(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49['method'])==_0x110958(0x221)&&(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49[_0x110958(0x1f5)])?_0x3c0b49[_0x110958(0x206)]['toLowerCase']()+'@'+(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49[_0x110958(0x1f5)]):undefined,_0x3c0b49,_0xe28ae4);}else decorator_1[_0x110958(0x222)]['isFunction'](_0x3b7419)&&await _0x3b7419(typeof(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49[_0x110958(0x206)])==_0x110958(0x221)&&(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49[_0x110958(0x1f5)])?_0x3c0b49['method'][_0x110958(0x1fc)]()+'@'+(_0x3c0b49===null||_0x3c0b49===void 0x0?void 0x0:_0x3c0b49[_0x110958(0x1f5)]):undefined,_0x3c0b49,_0xe28ae4);}}}return await _0x1235bb[_0x110958(0x235)](..._0x1235bb[_0x110958(0x21d)]);},'afterThrow':(_0x1b66fe,_0x505f1d)=>{throw _0x505f1d;}};});}async[a2_0x5414f3(0x24b)](){const _0x4f934c=a2_0x5414f3;this[_0x4f934c(0x246)]['getApplications']([_0x4f934c(0x219)])['forEach'](_0x577e4c=>{const _0x4a33eb=_0x4f934c;(_0x577e4c===null||_0x577e4c===void 0x0?void 0x0:_0x577e4c[_0x4a33eb(0x200)])&&Object[_0x4a33eb(0x218)](_0x577e4c['context'],{'ok':{'value':function(_0x1a5036,_0x51ac73,_0x1b6e5d=0x0){return{'code':_0x1b6e5d,'data':_0x1a5036,'extra':_0x51ac73};}},'input':{'value':function(_0x3fb96d,_0x1d2b0f){const _0x2835d3=_0x4a33eb;var _0x49740a;const _0x494558=lodash['defaultsDeep']({},this[_0x2835d3(0x23f)][_0x2835d3(0x240)]||this['request'][((_0x49740a=config===null||config===void 0x0?void 0x0:config[_0x2835d3(0x1fa)])===null||_0x49740a===void 0x0?void 0x0:_0x49740a[_0x2835d3(0x252)])||_0x2835d3(0x240)]||{},this[_0x2835d3(0x23f)][_0x2835d3(0x21e)]||{});return _0x3fb96d?lodash[_0x2835d3(0x1f6)](_0x494558,_0x3fb96d,_0x1d2b0f):_0x494558;}},'when':{'value':async function(_0x5ac94c,_0x5765fe){const _0x126bbf=_0x4a33eb,_0x356468=this[_0x126bbf(0x247)](_0x5ac94c,null);if(!lodash[_0x126bbf(0x1fd)](_0x356468))return await _0x5765fe(_0x356468);}},'only':{'value':function(_0x338fcf){const _0x4f1ff6=_0x4a33eb,_0x52862a={};for(let _0x44ba9e=0x0;_0x44ba9e<_0x338fcf[_0x4f1ff6(0x215)];_0x44ba9e++){lodash['isArray'](_0x338fcf[_0x44ba9e])&&_0x338fcf[_0x44ba9e][_0x4f1ff6(0x215)]>0x0&&lodash[_0x4f1ff6(0x227)](_0x338fcf[_0x44ba9e][0x0])&&(_0x52862a[_0x338fcf[_0x44ba9e][0x0]]=this[_0x4f1ff6(0x247)](_0x338fcf[_0x44ba9e][0x0],_0x338fcf[_0x44ba9e][_0x4f1ff6(0x215)]>0x1?_0x338fcf[_0x44ba9e][0x1]:null));}return _0x52862a;}}});});}async[a2_0x5414f3(0x207)](){const _0x144717=a2_0x5414f3;var _0x2c919c,_0x2da83d,_0x1ff91e,_0x48c9b5,_0x2c89a3,_0x456e4c;const _0x3afa7c=this[_0x144717(0x1f8)][_0x144717(0x228)]();((_0x2da83d=(_0x2c919c=_0x3afa7c===null||_0x3afa7c===void 0x0?void 0x0:_0x3afa7c[_0x144717(0x237)])===null||_0x2c919c===void 0x0?void 0x0:_0x2c919c[_0x144717(0x211)])===null||_0x2da83d===void 0x0?void 0x0:_0x2da83d[_0x144717(0x250)])&&Object['keys'](_0x3afa7c['anncicapi'][_0x144717(0x211)])['length']>0x1&&delete _0x3afa7c['anncicapi']['devices'][_0x144717(0x250)];if((_0x1ff91e=_0x3afa7c===null||_0x3afa7c===void 0x0?void 0x0:_0x3afa7c[_0x144717(0x214)])===null||_0x1ff91e===void 0x0?void 0x0:_0x1ff91e['dirs'])for(const _0x558cfd in _0x3afa7c[_0x144717(0x214)][_0x144717(0x201)]){((_0x48c9b5=_0x3afa7c['staticFile'][_0x144717(0x201)][_0x558cfd])===null||_0x48c9b5===void 0x0?void 0x0:_0x48c9b5[_0x144717(0x1f4)])&&typeof((_0x2c89a3=_0x3afa7c[_0x144717(0x214)][_0x144717(0x201)][_0x558cfd])===null||_0x2c89a3===void 0x0?void 0x0:_0x2c89a3[_0x144717(0x1f4)])==_0x144717(0x221)&&!fs[_0x144717(0x24d)](_0x3afa7c[_0x144717(0x214)]['dirs'][_0x558cfd][_0x144717(0x1f4)])&&(fs[_0x144717(0x20a)](_0x3afa7c['staticFile'][_0x144717(0x201)][_0x558cfd]['dir'],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x3afa7c[_0x144717(0x214)][_0x144717(0x201)][_0x558cfd][_0x144717(0x1f4)]));}((_0x456e4c=_0x3afa7c===null||_0x3afa7c===void 0x0?void 0x0:_0x3afa7c[_0x144717(0x251)])===null||_0x456e4c===void 0x0?void 0x0:_0x456e4c[_0x144717(0x223)])&&!fs[_0x144717(0x24d)](_0x3afa7c[_0x144717(0x251)][_0x144717(0x223)])&&(fs[_0x144717(0x20a)](_0x3afa7c[_0x144717(0x251)][_0x144717(0x223)],{'recursive':!![]}),console[_0x144717(0x208)](_0x144717(0x21c)+_0x3afa7c[_0x144717(0x251)][_0x144717(0x223)])),this[_0x144717(0x1f8)][_0x144717(0x23b)](_0x3afa7c);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5414f3(0x20d),core_1[a2_0x5414f3(0x21a)])],CustomConfiguration[a2_0x5414f3(0x230)],a2_0x5414f3(0x1f8),void 0x0),__decorate([(0x0,decorator_1[a2_0x5414f3(0x239)])(),__metadata(a2_0x5414f3(0x20d),core_1[a2_0x5414f3(0x232)])],CustomConfiguration[a2_0x5414f3(0x230)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x5414f3(0x239)])(),__metadata(a2_0x5414f3(0x20d),core_1[a2_0x5414f3(0x245)])],CustomConfiguration[a2_0x5414f3(0x230)],a2_0x5414f3(0x246),void 0x0),__decorate([(0x0,decorator_1[a2_0x5414f3(0x239)])(),__metadata(a2_0x5414f3(0x20d),core_1[a2_0x5414f3(0x23a)])],CustomConfiguration[a2_0x5414f3(0x230)],a2_0x5414f3(0x202),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x5414f3(0x20d),ApiService_1[a2_0x5414f3(0x253)])],CustomConfiguration[a2_0x5414f3(0x230)],a2_0x5414f3(0x253),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x5414f3(0x209)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x5414f3(0x1f7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x33e154=a2_0x48b2;(function(_0x164c96,_0x479357){const _0x375aa5=a2_0x48b2,_0x2f85c8=_0x164c96();while(!![]){try{const _0x5d3684=-parseInt(_0x375aa5(0x150))/0x1*(-parseInt(_0x375aa5(0x155))/0x2)+-parseInt(_0x375aa5(0x137))/0x3*(parseInt(_0x375aa5(0x176))/0x4)+parseInt(_0x375aa5(0x126))/0x5*(-parseInt(_0x375aa5(0x149))/0x6)+parseInt(_0x375aa5(0x159))/0x7*(parseInt(_0x375aa5(0x14b))/0x8)+parseInt(_0x375aa5(0x11c))/0x9*(parseInt(_0x375aa5(0x11f))/0xa)+-parseInt(_0x375aa5(0x13d))/0xb*(parseInt(_0x375aa5(0x169))/0xc)+parseInt(_0x375aa5(0x170))/0xd*(-parseInt(_0x375aa5(0x16b))/0xe);if(_0x5d3684===_0x479357)break;else _0x2f85c8['push'](_0x2f85c8['shift']());}catch(_0x152010){_0x2f85c8['push'](_0x2f85c8['shift']());}}}(a2_0x836f,0xdfc26));function a2_0x48b2(_0x427c4b,_0x4d552e){const _0x836fcd=a2_0x836f();return a2_0x48b2=function(_0x48b2fe,_0x10de28){_0x48b2fe=_0x48b2fe-0x10f;let _0x1b43d7=_0x836fcd[_0x48b2fe];return _0x1b43d7;},a2_0x48b2(_0x427c4b,_0x4d552e);}function a2_0x836f(){const _0xa313e=['existsSync','@midwayjs/core','@anncic-api/event','upload','1UlTQUH','ApiService','ACTION_ROUTE_KEY','handlerActionRoute','context','2127212FnzvDY','mkdirSync','log','isClass','20300nDPLNS','isNull','checksign','CustomConfiguration','bodyXml','target','tmpdir','keys','request','REQUEST_OBJ_CTX_KEY','anncicapi','forEach','key','anncic-apihelper','prototype','MidwayDecoratorService','5748frZUwg','metadata','672ThzgzC','application','headers','@anncic-api/typeorm','design:type','241007zlPIlR','length','getConfiguration','defineProperties','checkConfigKeys','./exception/ApiError','21292YuYFRi','isArray','apimit','MidwayConfigService','getApplications','koa','config','Types','string','@midwayjs/decorator','@midwayjs/upload','args','__metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','221031duaADq','requestContext','@anncic-api/core','410bTDjHd','body','registerMethodHandler','object','getAsync','toLowerCase','defaultsDeep','25Zhmvgl','./types/action','filterConfig','staticFile','Anncic-api\x20static-file\x20:\x20mkdir\x20','handler','dirs','@midwayjs/cross-domain','@anncic-api/validator','query','input','_matchedRoute','@midwayjs/static-file','__esModule','method','isFunction','./config/config.production','183mqRMCS','devices','proceed','getOwnPropertyDescriptor','addObject','dir','17908ZrQNRe','hanlderApplications','defineProperty','isString','./service/ApiService','Configuration','decorate','@midwayjs/i18n','Inject','./config/config.default','intercept','function','794184jgrUwE','device','4144ZjYxSx'];a2_0x836f=function(){return _0xa313e;};return a2_0x836f();}var __decorate=this&&this['__decorate']||function(_0x563e77,_0x458679,_0x16437d,_0x550de2){const _0x3bbb98=a2_0x48b2;var _0x71564e=arguments[_0x3bbb98(0x171)],_0x5961d2=_0x71564e<0x3?_0x458679:_0x550de2===null?_0x550de2=Object[_0x3bbb98(0x13a)](_0x458679,_0x16437d):_0x550de2,_0x17b40c;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x5961d2=Reflect[_0x3bbb98(0x143)](_0x563e77,_0x458679,_0x16437d,_0x550de2);else{for(var _0x24afd2=_0x563e77[_0x3bbb98(0x171)]-0x1;_0x24afd2>=0x0;_0x24afd2--)if(_0x17b40c=_0x563e77[_0x24afd2])_0x5961d2=(_0x71564e<0x3?_0x17b40c(_0x5961d2):_0x71564e>0x3?_0x17b40c(_0x458679,_0x16437d,_0x5961d2):_0x17b40c(_0x458679,_0x16437d))||_0x5961d2;}return _0x71564e>0x3&&_0x5961d2&&Object[_0x3bbb98(0x13f)](_0x458679,_0x16437d,_0x5961d2),_0x5961d2;},__metadata=this&&this[a2_0x33e154(0x11a)]||function(_0x16a636,_0x2931f9){const _0x14b0d0=a2_0x33e154;if(typeof Reflect===_0x14b0d0(0x122)&&typeof Reflect['metadata']==='function')return Reflect[_0x14b0d0(0x16a)](_0x16a636,_0x2931f9);};Object[a2_0x33e154(0x13f)](exports,a2_0x33e154(0x133),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0x33e154(0x117)),core_1=require(a2_0x33e154(0x14d)),ApiError_1=require(a2_0x33e154(0x175)),ApiService_1=require(a2_0x33e154(0x141)),action_1=require(a2_0x33e154(0x127)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x33e154(0x144)),task=require('@midwayjs/task'),upload=require(a2_0x33e154(0x118)),staticFile=require(a2_0x33e154(0x132)),crossDomain=require(a2_0x33e154(0x12d)),ConfigDefault=require(a2_0x33e154(0x146)),ConfigProduction=require(a2_0x33e154(0x136)),anncic=require(a2_0x33e154(0x11e)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x33e154(0x14e)),anncicTypeorm=require(a2_0x33e154(0x16e)),anncicValidator=require(a2_0x33e154(0x12e)),anncicHelper=require(a2_0x33e154(0x166));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5fde80=a2_0x33e154;await this[_0x5fde80(0x128)](),await this[_0x5fde80(0x174)](),await this[_0x5fde80(0x153)](),await this[_0x5fde80(0x13e)]();}async[a2_0x33e154(0x174)](){}async[a2_0x33e154(0x153)](){const _0xce335=a2_0x33e154,_0x5a6b08=this[_0xce335(0x114)][_0xce335(0x172)]();this['decorator'][_0xce335(0x121)](action_1[_0xce335(0x152)],_0x5c3b23=>{const _0x5dbef1=_0xce335,_0x37b7ff=_0x5c3b23[_0x5dbef1(0x16a)];return{'before':async _0x2f0bd0=>{const _0x2a53ce=_0x5dbef1;var _0x5f2bfa,_0x11e96d;const _0xadca76=(_0x5f2bfa=_0x2f0bd0===null||_0x2f0bd0===void 0x0?void 0x0:_0x2f0bd0[_0x2a53ce(0x15e)])===null||_0x5f2bfa===void 0x0?void 0x0:_0x5f2bfa[core_1['REQUEST_OBJ_CTX_KEY']];if(_0xadca76&&(_0x37b7ff===null||_0x37b7ff===void 0x0?void 0x0:_0x37b7ff[_0x2a53ce(0x110)])){if(!this[_0x2a53ce(0x151)][_0x2a53ce(0x15b)]((_0x11e96d=_0xadca76===null||_0xadca76===void 0x0?void 0x0:_0xadca76['request'])===null||_0x11e96d===void 0x0?void 0x0:_0x11e96d[_0x2a53ce(0x16d)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x310f0d=>{const _0x164634=_0x5dbef1;var _0x582f24,_0x53610a,_0x6dae30,_0x11b06b,_0x2bac15;const _0x5dcfff=(_0x582f24=_0x310f0d===null||_0x310f0d===void 0x0?void 0x0:_0x310f0d[_0x164634(0x15e)])===null||_0x582f24===void 0x0?void 0x0:_0x582f24[core_1[_0x164634(0x162)]];if(_0x5dcfff&&(_0x37b7ff===null||_0x37b7ff===void 0x0?void 0x0:_0x37b7ff[_0x164634(0x110)])){if(((_0x53610a=_0x5dcfff['headers'])===null||_0x53610a===void 0x0?void 0x0:_0x53610a[_0x164634(0x14a)])&&((_0x2bac15=(_0x11b06b=(_0x6dae30=_0x5a6b08===null||_0x5a6b08===void 0x0?void 0x0:_0x5a6b08[_0x164634(0x163)])===null||_0x6dae30===void 0x0?void 0x0:_0x6dae30[_0x164634(0x138)])===null||_0x11b06b===void 0x0?void 0x0:_0x11b06b[_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]])===null||_0x2bac15===void 0x0?void 0x0:_0x2bac15[_0x164634(0x147)])){const _0x2463e0=Array['isArray'](_0x5a6b08[_0x164634(0x163)][_0x164634(0x138)][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]][_0x164634(0x147)])?_0x5a6b08[_0x164634(0x163)]['devices'][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]][_0x164634(0x147)]:[_0x5a6b08[_0x164634(0x163)]['devices'][_0x5dcfff[_0x164634(0x16d)][_0x164634(0x14a)]]['intercept']];for(const _0xb5e096 of _0x2463e0){if(decorator_1[_0x164634(0x115)][_0x164634(0x158)](_0xb5e096)||typeof _0xb5e096==_0x164634(0x116)){const _0x2a66da=await _0x5dcfff[_0x164634(0x11d)][_0x164634(0x123)](_0xb5e096);typeof(_0x2a66da===null||_0x2a66da===void 0x0?void 0x0:_0x2a66da[_0x164634(0x12b)])==_0x164634(0x148)&&await _0x2a66da[_0x164634(0x12b)](typeof(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['method'])=='string'&&(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)])?_0x5dcfff[_0x164634(0x134)][_0x164634(0x124)]()+'@'+(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)]):undefined,_0x5dcfff,_0x37b7ff);}else decorator_1['Types'][_0x164634(0x135)](_0xb5e096)&&await _0xb5e096(typeof(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['method'])==_0x164634(0x116)&&(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff[_0x164634(0x131)])?_0x5dcfff[_0x164634(0x134)][_0x164634(0x124)]()+'@'+(_0x5dcfff===null||_0x5dcfff===void 0x0?void 0x0:_0x5dcfff['_matchedRoute']):undefined,_0x5dcfff,_0x37b7ff);}}}return await _0x310f0d[_0x164634(0x139)](..._0x310f0d[_0x164634(0x119)]);},'afterThrow':(_0x4f9c5c,_0x4564a5)=>{throw _0x4564a5;}};});}async['hanlderApplications'](){const _0x35ae60=a2_0x33e154;this[_0x35ae60(0x16c)][_0x35ae60(0x112)]([_0x35ae60(0x113)])[_0x35ae60(0x164)](_0x2f5e9b=>{const _0x2c1209=_0x35ae60;(_0x2f5e9b===null||_0x2f5e9b===void 0x0?void 0x0:_0x2f5e9b['context'])&&Object[_0x2c1209(0x173)](_0x2f5e9b[_0x2c1209(0x154)],{'ok':{'value':function(_0x38e935,_0xd97943,_0x186e81=0x0){return{'code':_0x186e81,'data':_0x38e935,'extra':_0xd97943};}},'input':{'value':function(_0x5ae639,_0x121ca8){const _0x2f3d01=_0x2c1209;var _0x10fee4;const _0x2d6960=lodash[_0x2f3d01(0x125)]({},this[_0x2f3d01(0x161)][_0x2f3d01(0x120)]||this[_0x2f3d01(0x161)][((_0x10fee4=config===null||config===void 0x0?void 0x0:config[_0x2f3d01(0x15d)])===null||_0x10fee4===void 0x0?void 0x0:_0x10fee4[_0x2f3d01(0x165)])||_0x2f3d01(0x120)]||{},this[_0x2f3d01(0x161)][_0x2f3d01(0x12f)]||{});return _0x5ae639?lodash['get'](_0x2d6960,_0x5ae639,_0x121ca8):_0x2d6960;}},'when':{'value':async function(_0x852dbb,_0x4d2a8f){const _0x4e30bb=_0x2c1209,_0x99a4b6=this['input'](_0x852dbb,null);if(!lodash[_0x4e30bb(0x15a)](_0x99a4b6))return await _0x4d2a8f(_0x99a4b6);}},'only':{'value':function(_0x452816){const _0x5aa848=_0x2c1209,_0x3017a8={};for(let _0x5af360=0x0;_0x5af360<_0x452816[_0x5aa848(0x171)];_0x5af360++){lodash[_0x5aa848(0x10f)](_0x452816[_0x5af360])&&_0x452816[_0x5af360][_0x5aa848(0x171)]>0x0&&lodash[_0x5aa848(0x140)](_0x452816[_0x5af360][0x0])&&(_0x3017a8[_0x452816[_0x5af360][0x0]]=this[_0x5aa848(0x130)](_0x452816[_0x5af360][0x0],_0x452816[_0x5af360][_0x5aa848(0x171)]>0x1?_0x452816[_0x5af360][0x1]:null));}return _0x3017a8;}}});});}async[a2_0x33e154(0x128)](){const _0x39ac5a=a2_0x33e154;var _0x145e52,_0x13051a,_0x1ee4bc,_0x252620,_0x9e6dbb,_0x4ee831;const _0x3ad1aa=this[_0x39ac5a(0x114)][_0x39ac5a(0x172)]();((_0x13051a=(_0x145e52=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa[_0x39ac5a(0x163)])===null||_0x145e52===void 0x0?void 0x0:_0x145e52[_0x39ac5a(0x138)])===null||_0x13051a===void 0x0?void 0x0:_0x13051a['DEFAULT'])&&Object[_0x39ac5a(0x160)](_0x3ad1aa['anncicapi'][_0x39ac5a(0x138)])[_0x39ac5a(0x171)]>0x1&&delete _0x3ad1aa['anncicapi'][_0x39ac5a(0x138)]['DEFAULT'];if((_0x1ee4bc=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa[_0x39ac5a(0x129)])===null||_0x1ee4bc===void 0x0?void 0x0:_0x1ee4bc[_0x39ac5a(0x12c)])for(const _0x1980d4 in _0x3ad1aa['staticFile'][_0x39ac5a(0x12c)]){((_0x252620=_0x3ad1aa[_0x39ac5a(0x129)]['dirs'][_0x1980d4])===null||_0x252620===void 0x0?void 0x0:_0x252620[_0x39ac5a(0x13c)])&&typeof((_0x9e6dbb=_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4])===null||_0x9e6dbb===void 0x0?void 0x0:_0x9e6dbb[_0x39ac5a(0x13c)])==_0x39ac5a(0x116)&&!fs[_0x39ac5a(0x14c)](_0x3ad1aa[_0x39ac5a(0x129)]['dirs'][_0x1980d4]['dir'])&&(fs['mkdirSync'](_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4]['dir'],{'recursive':!![]}),console[_0x39ac5a(0x157)](_0x39ac5a(0x12a)+_0x3ad1aa[_0x39ac5a(0x129)][_0x39ac5a(0x12c)][_0x1980d4][_0x39ac5a(0x13c)]));}((_0x4ee831=_0x3ad1aa===null||_0x3ad1aa===void 0x0?void 0x0:_0x3ad1aa['upload'])===null||_0x4ee831===void 0x0?void 0x0:_0x4ee831[_0x39ac5a(0x15f)])&&!fs[_0x39ac5a(0x14c)](_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)])&&(fs[_0x39ac5a(0x156)](_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)],{'recursive':!![]}),console[_0x39ac5a(0x157)](_0x39ac5a(0x11b)+_0x3ad1aa[_0x39ac5a(0x14f)][_0x39ac5a(0x15f)])),this['config'][_0x39ac5a(0x13b)](_0x3ad1aa);}};__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1[a2_0x33e154(0x111)])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x114),void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata('design:type',core_1[a2_0x33e154(0x168)])],CustomConfiguration[a2_0x33e154(0x167)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x16c),void 0x0),__decorate([(0x0,decorator_1[a2_0x33e154(0x145)])(),__metadata(a2_0x33e154(0x16f),core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x33e154(0x167)],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x33e154(0x16f),ApiService_1[a2_0x33e154(0x151)])],CustomConfiguration[a2_0x33e154(0x167)],a2_0x33e154(0x151),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x33e154(0x142)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x33e154(0x15c)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x268959=a3_0x3387;(function(_0x26d043,_0x4d0936){const _0x3b68af=a3_0x3387,_0x5e4dec=_0x26d043();while(!![]){try{const _0x28963f=parseInt(_0x3b68af(0x95))/0x1*(-parseInt(_0x3b68af(0xb3))/0x2)+parseInt(_0x3b68af(0x97))/0x3+parseInt(_0x3b68af(0xaa))/0x4+-parseInt(_0x3b68af(0xa5))/0x5*(-parseInt(_0x3b68af(0xb1))/0x6)+-parseInt(_0x3b68af(0xa0))/0x7+-parseInt(_0x3b68af(0xb5))/0x8+-parseInt(_0x3b68af(0xa9))/0x9;if(_0x28963f===_0x4d0936)break;else _0x5e4dec['push'](_0x5e4dec['shift']());}catch(_0x2e3ae0){_0x5e4dec['push'](_0x5e4dec['shift']());}}}(a3_0x462c,0x89a14));Object[a3_0x268959(0xad)](exports,a3_0x268959(0x8c),{'value':!![]}),exports[a3_0x268959(0x91)]=exports[a3_0x268959(0xa1)]=void 0x0;function a3_0x3387(_0x34243b,_0x268809){const _0x462c04=a3_0x462c();return a3_0x3387=function(_0x3387d8,_0x46bf6f){_0x3387d8=_0x3387d8-0x85;let _0x22beda=_0x462c04[_0x3387d8];return _0x22beda;},a3_0x3387(_0x34243b,_0x268809);}const fs=require('fs'),decorator_1=require(a3_0x268959(0xaf)),action_1=require(a3_0x268959(0x89));function Action(_0x2c574c,_0x1330b3,_0x5530bc={'middleware':[],'sensitive':!![]}){return _0xddcf18=>{const _0x5c0453=a3_0x3387;_0x5530bc[_0x5c0453(0xb2)]=_0x1330b3;const _0x499860=parseRoute(_0x2c574c);if(_0x499860[_0x5c0453(0x9d)]){_0x5530bc[_0x5c0453(0x92)]=_0x5530bc['prefix']?'/'+_0x499860[_0x5c0453(0x9d)]+'/'+_0x5530bc[_0x5c0453(0x92)]:'/'+_0x499860[_0x5c0453(0xac)];_0x499860[_0x5c0453(0x92)]&&(_0x5530bc[_0x5c0453(0x92)]='/'+_0x499860['prefix']+'/'+_0x5530bc[_0x5c0453(0x92)]);if(fs[_0x5c0453(0x90)](_0x499860['rootpath']+'/apps/'+_0x499860[_0x5c0453(0x9d)]+_0x5c0453(0xb6)+(lodash[_0x5c0453(0x96)](_0x499860[_0x5c0453(0xa6)],'ts')?'ts':'js'))){const _0x428d27=include(_0x499860[_0x5c0453(0x9b)]+_0x5c0453(0x93)+_0x499860[_0x5c0453(0x9d)]+_0x5c0453(0xb6)+(lodash[_0x5c0453(0x96)](_0x499860['filepath'],'ts')?'ts':'js'));if(_0x428d27[_0x5c0453(0xa7)]&&lodash[_0x5c0453(0xa8)](_0x428d27['middleware'])&&_0x428d27[_0x5c0453(0xa7)][_0x5c0453(0x99)]>0x0)for(let _0x54f845 in _0x428d27[_0x5c0453(0xa7)]){_0x428d27['middlewareIgnore'][_0x5c0453(0xae)](_0x428d27['middleware'][_0x54f845])==-0x1&&_0x5530bc[_0x5c0453(0xa7)][_0x5c0453(0x8e)](_0x428d27['middleware'][_0x54f845]);}const _0x2e4ff1=(0x0,decorator_1[_0x5c0453(0x85)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x2e4ff1[''+_0x499860[_0x5c0453(0x9d)]]=_0x428d27,(0x0,decorator_1[_0x5c0453(0x94)])(action_1['APPSCONFIG_KEY'],_0x2e4ff1,action_1['AppsConfigTmp']);}_0x5530bc['prefix']=_0x5530bc['prefix'][_0x5c0453(0x8b)]()[_0x5c0453(0xa3)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x5c0453(0xb9)],_0xddcf18),(0x0,decorator_1[_0x5c0453(0x87)])(_0x5530bc[_0x5c0453(0x92)],_0x5530bc)(_0xddcf18),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x5c0453(0xb9)],{'prefix':_0x5530bc[_0x5c0453(0x92)],'pprefix':_0x499860[_0x5c0453(0x92)],'module':_0x499860[_0x5c0453(0x9d)],'filepath':_0x499860[_0x5c0453(0xa6)],'routerOptions':_0x5530bc},_0xddcf18);}else _0x5530bc[_0x5c0453(0x92)]=_0x5530bc[_0x5c0453(0x92)]?'/'+_0x5530bc['prefix']:'/'+_0x499860['route'],_0x499860[_0x5c0453(0x92)]&&(_0x5530bc[_0x5c0453(0x92)]='/'+_0x499860[_0x5c0453(0x92)]+'/'+_0x5530bc[_0x5c0453(0x92)]),_0x5530bc[_0x5c0453(0x92)]=_0x5530bc[_0x5c0453(0x92)]['toLowerCase']()[_0x5c0453(0xa3)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x5c0453(0x8a)])(action_1[_0x5c0453(0xb9)],_0xddcf18),(0x0,decorator_1[_0x5c0453(0x87)])(_0x5530bc[_0x5c0453(0x92)],_0x5530bc)(_0xddcf18),(0x0,decorator_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x5530bc[_0x5c0453(0x92)],'module':_0x499860[_0x5c0453(0x9d)],'pprefix':_0x499860[_0x5c0453(0x92)],'filepath':_0x499860[_0x5c0453(0xa6)],'routerOptions':_0x5530bc},_0xddcf18);};}function a3_0x462c(){const _0x142a33=['-controller','push','/controller/文件下','existsSync','parseRoute','prefix','/apps/','saveClassMetadata','29oBHycc','endsWith','2960196MDxbPn','/controller/','length','apps/','rootpath','splice','module','match','join','2959810Bnomzh','Action','\x20文件请放在apps/','replace','-action','15paroiT','filepath','middleware','isArray','3599847osfArl','2811504PKaFho','startsWith','route','defineProperty','indexOf','@midwayjs/decorator','app/controller/','827250lBHyam','tagName','18082IcmmDy','split','3635992MzUoZT','/config.','cwd','trim','ACTION_KEY','getClassMetadata','substring','Controller','filter','../types/action','saveModule','toLowerCase','__esModule'];a3_0x462c=function(){return _0x142a33;};return a3_0x462c();}exports[a3_0x268959(0xa1)]=Action;function parseRoute(_0x355aa5){const _0x587897=a3_0x268959;_0x355aa5=_0x355aa5[_0x587897(0xa3)](/(\\|\/)/g,'/');const _0x21d5e8=process[_0x587897(0xb7)]()[_0x587897(0xa3)](/(\\|\/)/g,'/'),_0x1e226c=_0x355aa5[_0x587897(0x86)](0x0,_0x21d5e8[_0x587897(0x99)]+_0x355aa5[_0x587897(0x86)](_0x21d5e8['length']+0x1)[_0x587897(0xae)]('/')+0x1),_0x2e199c=_0x355aa5[_0x587897(0x86)](_0x1e226c[_0x587897(0x99)]+0x1)[_0x587897(0xa3)](/(\\|\/)/g,'/'),_0xd8896d={'route':'','prefix':![],'module':![],'rootpath':_0x1e226c,'filepath':_0x2e199c};if(_0x2e199c[_0x587897(0xab)](_0x587897(0xb0))){const _0x55261d=_0x2e199c['substring'](_0x587897(0xb0)[_0x587897(0x99)])[_0x587897(0xb4)]('/')[_0x587897(0x88)](_0xdc51a3=>_0xdc51a3&&_0xdc51a3[_0x587897(0xb8)]());return _0x55261d[_0x587897(0x99)]>0x1&&(_0xd8896d[_0x587897(0x92)]=_0x55261d[0x0][_0x587897(0x8b)](),_0x55261d[_0x587897(0x9c)](0x0,0x1)),_0xd8896d[_0x587897(0xac)]=('/'+_0x55261d[_0x587897(0x9f)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x587897(0xa3)](/\/{2,}/g,'/')[_0x587897(0x9e)](/[\/|A-Z]*[^A-Z]+/g)[_0x587897(0x9f)]('-')[_0x587897(0x8b)]()[_0x587897(0xa3)](/\/\-/g,'/'),_0xd8896d[_0x587897(0xac)][_0x587897(0x96)]('-action')&&(_0xd8896d[_0x587897(0xac)]=_0xd8896d[_0x587897(0xac)][_0x587897(0x86)](0x0,_0xd8896d[_0x587897(0xac)]['length']-0x7)),_0xd8896d[_0x587897(0xac)]['endsWith'](_0x587897(0x8d))&&(_0xd8896d[_0x587897(0xac)]=_0xd8896d[_0x587897(0xac)][_0x587897(0x86)](0x0,_0xd8896d[_0x587897(0xac)][_0x587897(0x99)]-0xb)),_0xd8896d;}else{if(_0x2e199c['startsWith'](_0x587897(0x9a))){const _0x1ff2db=_0x2e199c['substring'](0x0,_0x2e199c[_0x587897(0xae)](_0x587897(0x93))+0x5),_0x58791d=_0x2e199c[_0x587897(0x86)](_0x1ff2db[_0x587897(0x99)]+0x1)[_0x587897(0xa3)](/(\\|\/)/g,'/')[_0x587897(0xb4)]('/')[0x0];if(_0x2e199c[_0x587897(0xab)](_0x587897(0x9a)+_0x58791d+'/controller/')){const _0x143b1d=_0x2e199c[_0x587897(0x86)]((_0x1ff2db+'/'+_0x58791d+_0x587897(0x98))[_0x587897(0x99)])['split']('/')['filter'](_0x368383=>_0x368383&&_0x368383[_0x587897(0xb8)]());return _0x143b1d[_0x587897(0x99)]>0x1&&(_0xd8896d['prefix']=_0x143b1d[0x0][_0x587897(0x8b)](),_0x143b1d[_0x587897(0x9c)](0x0,0x1)),_0xd8896d['module']=_0x58791d,_0xd8896d[_0x587897(0xac)]=('/'+_0x58791d+'/'+_0x143b1d[_0x587897(0x9f)]('/'))[_0x587897(0xa3)](/(\.ts|\.js)$/,'')[_0x587897(0xa3)](/\/{2,}/,'/')[_0x587897(0x9e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x587897(0x8b)]()['replace'](/\/\-/g,'/'),_0xd8896d[_0x587897(0xac)][_0x587897(0x96)](_0x587897(0xa4))&&(_0xd8896d[_0x587897(0xac)]=_0xd8896d[_0x587897(0xac)][_0x587897(0x86)](0x0,_0xd8896d['route'][_0x587897(0x99)]-0x7)),_0xd8896d['route'][_0x587897(0x96)](_0x587897(0x8d))&&(_0xd8896d[_0x587897(0xac)]=_0xd8896d['route'][_0x587897(0x86)](0x0,_0xd8896d[_0x587897(0xac)]['length']-0xb)),_0xd8896d;}throw new Error(_0x2e199c+_0x587897(0xa2)+_0x58791d+_0x587897(0x8f));}}throw new Error(_0x2e199c+'\x20文件请放在app/controller/文件下');}exports[a3_0x268959(0x91)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x41b5eb=a4_0x1971;function a4_0x1971(_0x183378,_0x132cb7){const _0x136ce3=a4_0x136c();return a4_0x1971=function(_0x197195,_0x12d8d1){_0x197195=_0x197195-0x15e;let _0x5006cf=_0x136ce3[_0x197195];return _0x5006cf;},a4_0x1971(_0x183378,_0x132cb7);}(function(_0x3c0445,_0x2e3d17){const _0x3f20ff=a4_0x1971,_0x54610e=_0x3c0445();while(!![]){try{const _0x1d99a7=-parseInt(_0x3f20ff(0x172))/0x1*(parseInt(_0x3f20ff(0x176))/0x2)+parseInt(_0x3f20ff(0x163))/0x3+parseInt(_0x3f20ff(0x162))/0x4*(parseInt(_0x3f20ff(0x16a))/0x5)+parseInt(_0x3f20ff(0x181))/0x6*(parseInt(_0x3f20ff(0x171))/0x7)+parseInt(_0x3f20ff(0x17a))/0x8*(-parseInt(_0x3f20ff(0x16f))/0x9)+parseInt(_0x3f20ff(0x174))/0xa*(parseInt(_0x3f20ff(0x164))/0xb)+parseInt(_0x3f20ff(0x16e))/0xc*(-parseInt(_0x3f20ff(0x17f))/0xd);if(_0x1d99a7===_0x2e3d17)break;else _0x54610e['push'](_0x54610e['shift']());}catch(_0x45a9ef){_0x54610e['push'](_0x54610e['shift']());}}}(a4_0x136c,0x740de));function a4_0x136c(){const _0x54ddb1=['routerName','middleware','4465rhuMMr','validationOptions','get','description','7448724lKvlIp','3851433PXPSJz','validate','263018NNIYrf','1jJjYQt','ACTION_ROUTE_KEY','140qwFjqV','toLowerCase','1479782jKAvDB','__esModule','RequestMapping','filter','8XPNUls','apimit','utc','Api','indexOf','13zCYdNU','assign','132cnFVcY','length','del','defineProperty','delete','2320PypBNY','112077FQgAND','692989qIjlDw','middlewareIgnore','../types/action','@anncic-api/validator'];a4_0x136c=function(){return _0x54ddb1;};return a4_0x136c();}Object[a4_0x41b5eb(0x160)](exports,a4_0x41b5eb(0x177),{'value':!![]}),exports[a4_0x41b5eb(0x17d)]=void 0x0;const validator_1=require(a4_0x41b5eb(0x167)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x41b5eb(0x166));function Api(_0x1ee493,_0x2c2dd9=a4_0x41b5eb(0x16c),_0x3afb97='/',_0x14cd1e={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3f5db7,_0x674553,_0x6c7b83)=>{const _0xd06f29=a4_0x1971;var _0x5d58f4,_0x1beceb,_0xaca21b;!_0x14cd1e[_0xd06f29(0x169)]&&(_0x14cd1e[_0xd06f29(0x169)]=[]);!((_0x5d58f4=_0x14cd1e===null||_0x14cd1e===void 0x0?void 0x0:_0x14cd1e[_0xd06f29(0x170)])===null||_0x5d58f4===void 0x0?void 0x0:_0x5d58f4[_0xd06f29(0x16b)])&&(_0x14cd1e[_0xd06f29(0x170)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xd06f29(0x17c)}});if(((_0x1beceb=_0x14cd1e===null||_0x14cd1e===void 0x0?void 0x0:_0x14cd1e['middleware'])===null||_0x1beceb===void 0x0?void 0x0:_0x1beceb[_0xd06f29(0x15e)])>0x0&&((_0xaca21b=_0x14cd1e===null||_0x14cd1e===void 0x0?void 0x0:_0x14cd1e['middlewareIgnore'])===null||_0xaca21b===void 0x0?void 0x0:_0xaca21b[_0xd06f29(0x15e)])>0x0)for(let _0x58e538 in _0x14cd1e[_0xd06f29(0x169)]){_0x14cd1e[_0xd06f29(0x165)][_0xd06f29(0x17e)](_0x14cd1e[_0xd06f29(0x169)][_0x58e538])!==-0x1&&(_0x14cd1e[_0xd06f29(0x169)][_0x58e538]=null);}_0x14cd1e[_0xd06f29(0x168)]=_0x1ee493,(0x0,validator_1['Validator'])(_0x14cd1e[_0xd06f29(0x170)])(_0x3f5db7,_0x674553,_0x6c7b83),(0x0,decorator_1[_0xd06f29(0x178)])(Object[_0xd06f29(0x180)](_0x14cd1e,{'path':_0x3afb97,'requestMethod':(_0x2c2dd9==_0xd06f29(0x15f)?_0xd06f29(0x161):_0x2c2dd9)[_0xd06f29(0x175)]()}))(_0x3f5db7,_0x674553,_0x6c7b83),(0x0,decorator_1['attachClassMetadata'])(action_1[_0xd06f29(0x173)],{'path':_0x3afb97,'method':_0x674553,'apimit':_0x14cd1e['apimit'],'routerName':_0x14cd1e['routerName'],'description':_0x14cd1e[_0xd06f29(0x16d)],'middleware':(_0x14cd1e[_0xd06f29(0x169)]||[])[_0xd06f29(0x179)](_0x31859b=>!!_0x31859b),'requestMethod':(_0x2c2dd9==_0xd06f29(0x15f)?_0xd06f29(0x161):_0x2c2dd9)[_0xd06f29(0x175)]()},_0x3f5db7),(0x0,decorator_1['createCustomMethodDecorator'])(action_1[_0xd06f29(0x173)],{'path':_0x3afb97,'method':_0x674553,'apimit':_0x14cd1e[_0xd06f29(0x17b)],'routerName':_0x14cd1e[_0xd06f29(0x168)],'description':_0x14cd1e[_0xd06f29(0x16d)],'middleware':(_0x14cd1e[_0xd06f29(0x169)]||[])['filter'](_0x1a3858=>!!_0x1a3858),'requestMethod':(_0x2c2dd9==_0xd06f29(0x15f)?_0xd06f29(0x161):_0x2c2dd9)[_0xd06f29(0x175)]()})(_0x3f5db7,_0x674553,_0x6c7b83);};}exports[a4_0x41b5eb(0x17d)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x2c5e4a=a5_0x593f;(function(_0x3aa99a,_0x33cfd9){const _0x496ec4=a5_0x593f,_0x598421=_0x3aa99a();while(!![]){try{const _0x2aee51=parseInt(_0x496ec4(0xa5))/0x1*(-parseInt(_0x496ec4(0x9a))/0x2)+-parseInt(_0x496ec4(0xa2))/0x3*(parseInt(_0x496ec4(0xa1))/0x4)+parseInt(_0x496ec4(0x9e))/0x5*(-parseInt(_0x496ec4(0xa0))/0x6)+-parseInt(_0x496ec4(0x96))/0x7*(parseInt(_0x496ec4(0x98))/0x8)+parseInt(_0x496ec4(0xae))/0x9*(-parseInt(_0x496ec4(0xac))/0xa)+parseInt(_0x496ec4(0xa8))/0xb+-parseInt(_0x496ec4(0xb1))/0xc*(-parseInt(_0x496ec4(0x9b))/0xd);if(_0x2aee51===_0x33cfd9)break;else _0x598421['push'](_0x598421['shift']());}catch(_0x43d41b){_0x598421['push'](_0x598421['shift']());}}}(a5_0x2001,0x89b71));Object[a5_0x2c5e4a(0xab)](exports,a5_0x2c5e4a(0xa6),{'value':!![]}),exports[a5_0x2c5e4a(0x97)]=void 0x0;function a5_0x593f(_0x226fcc,_0x178221){const _0x2001ad=a5_0x2001();return a5_0x593f=function(_0x593f8b,_0x4ccfee){_0x593f8b=_0x593f8b-0x96;let _0x3c48f3=_0x2001ad[_0x593f8b];return _0x3c48f3;},a5_0x593f(_0x226fcc,_0x178221);}const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x2c5e4a(0xaa)),ApitestService_1=require(a5_0x2c5e4a(0x9c));function a5_0x2001(){const _0x4412c4=['ApitestService','10028uTgBkG','455TJmHwB','../service/ApitestService','get','3193670impwMK','value','6RFuYco','2287468tQtsFJ','3qVYLTP','getApplicationContext','isDevelopmentEnvironment','22MQRyNY','__esModule','getConfig','2113122BAsMVU','app','@midwayjs/core','defineProperty','272010viAfAo','getAsync','279ihFJLf','apitest','REQUEST_OBJ_CTX_KEY','913776DcTAql','7eDWiWC','Apitest','1032488hkwJDK'];a5_0x2001=function(){return _0x4412c4;};return a5_0x2001();}function Apitest(_0x3aefca='/apitest',_0x13265e){return(_0x18e0f8,_0x5704ee,_0xf7f25f)=>{const _0x34470e=a5_0x593f;return(0x0,decorator_1['RequestMapping'])({'path':_0x3aefca,'requestMethod':_0x34470e(0x9d)})(_0x18e0f8,_0x5704ee,_0xf7f25f),_0xf7f25f[_0x34470e(0x9f)]=async function(..._0x558244){const _0x2eac04=_0x34470e;var _0x521ba3;const _0x3aa123=(_0x521ba3=this[core_1[_0x2eac04(0xb0)]])===null||_0x521ba3===void 0x0?void 0x0:_0x521ba3[_0x2eac04(0xa9)];if(_0x3aa123&&_0x3aa123[_0x2eac04(0xa7)](_0x2eac04(0xaf))){const _0x135046=await _0x3aa123[_0x2eac04(0xa3)]()[_0x2eac04(0xad)](ApitestService_1[_0x2eac04(0x99)]),_0x34874f=await _0x3aa123['getApplicationContext']()[_0x2eac04(0xad)](core_1['MidwayEnvironmentService']);return _0x34874f[_0x2eac04(0xa4)]()&&(_0x13265e['filepath']=!![]),await _0x135046['apidoc'](_0x13265e);}return'';},_0xf7f25f;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0xe40446=a6_0x507b;(function(_0x3e3fcd,_0x3e2d10){var _0x25b79f=a6_0x507b,_0x4c2006=_0x3e3fcd();while(!![]){try{var _0xa7d4b3=-parseInt(_0x25b79f(0x14d))/0x1*(parseInt(_0x25b79f(0x155))/0x2)+parseInt(_0x25b79f(0x14f))/0x3+-parseInt(_0x25b79f(0x160))/0x4*(parseInt(_0x25b79f(0x162))/0x5)+-parseInt(_0x25b79f(0x14a))/0x6*(parseInt(_0x25b79f(0x15f))/0x7)+parseInt(_0x25b79f(0x151))/0x8+parseInt(_0x25b79f(0x164))/0x9*(parseInt(_0x25b79f(0x150))/0xa)+-parseInt(_0x25b79f(0x15c))/0xb*(parseInt(_0x25b79f(0x158))/0xc);if(_0xa7d4b3===_0x3e2d10)break;else _0x4c2006['push'](_0x4c2006['shift']());}catch(_0x19d000){_0x4c2006['push'](_0x4c2006['shift']());}}}(a6_0x1dd2,0x419c9));var __decorate=this&&this[a6_0xe40446(0x157)]||function(_0x438f19,_0x3d8449,_0x1bfdba,_0x296bcb){var _0x2940c8=a6_0xe40446,_0x516141=arguments[_0x2940c8(0x14b)],_0x5d4511=_0x516141<0x3?_0x3d8449:_0x296bcb===null?_0x296bcb=Object[_0x2940c8(0x154)](_0x3d8449,_0x1bfdba):_0x296bcb,_0x49ee15;if(typeof Reflect===_0x2940c8(0x15d)&&typeof Reflect['decorate']===_0x2940c8(0x163))_0x5d4511=Reflect['decorate'](_0x438f19,_0x3d8449,_0x1bfdba,_0x296bcb);else{for(var _0x2e68b9=_0x438f19['length']-0x1;_0x2e68b9>=0x0;_0x2e68b9--)if(_0x49ee15=_0x438f19[_0x2e68b9])_0x5d4511=(_0x516141<0x3?_0x49ee15(_0x5d4511):_0x516141>0x3?_0x49ee15(_0x3d8449,_0x1bfdba,_0x5d4511):_0x49ee15(_0x3d8449,_0x1bfdba))||_0x5d4511;}return _0x516141>0x3&&_0x5d4511&&Object[_0x2940c8(0x15e)](_0x3d8449,_0x1bfdba,_0x5d4511),_0x5d4511;},__metadata=this&&this[a6_0xe40446(0x15b)]||function(_0x332c0b,_0x31dcf7){var _0x490e7a=a6_0xe40446;if(typeof Reflect===_0x490e7a(0x15d)&&typeof Reflect[_0x490e7a(0x15a)]===_0x490e7a(0x163))return Reflect[_0x490e7a(0x15a)](_0x332c0b,_0x31dcf7);};Object[a6_0xe40446(0x15e)](exports,a6_0xe40446(0x165),{'value':!![]}),exports['ApiError']=void 0x0;function a6_0x1dd2(){var _0x5b094b=['请求头信息不完整','33185iYXRlA','function','3597471GhuPjt','__esModule','90mtHtyL','length','HEADERS_DEVICE','16tRHHwa','HEADERS_CHECKCODE','1122735ctHvWB','10NqVkkx','2588832bCtboM','TIMEOUT','design:type','getOwnPropertyDescriptor','8870SjJsvD','checkcode验证失败','__decorate','2796TrMWaY','HEADERS_LACK','metadata','__metadata','12837akeBYm','object','defineProperty','22358gjzdZH','264yepGMP'];a6_0x1dd2=function(){return _0x5b094b;};return a6_0x1dd2();}function a6_0x507b(_0x556e5b,_0x50406d){var _0x1dd2c9=a6_0x1dd2();return a6_0x507b=function(_0x507bec,_0x2841a1){_0x507bec=_0x507bec-0x14a;var _0x27f7dc=_0x1dd2c9[_0x507bec];return _0x27f7dc;},a6_0x507b(_0x556e5b,_0x50406d);}class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a6_0xe40446(0x159)]=0x3d7e32,ApiError[a6_0xe40446(0x14c)]=0x3d7e33,ApiError[a6_0xe40446(0x14e)]=0x3d7e34,ApiError['HEADERS_SIGNATURE']=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata(a6_0xe40446(0x153),Object)],ApiError,a6_0xe40446(0x152),void 0x0),__decorate([AnnErrorMsg(a6_0xe40446(0x161)),__metadata(a6_0xe40446(0x153),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0xe40446(0x153),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0xe40446(0x156)),__metadata(a6_0xe40446(0x153),Object)],ApiError,a6_0xe40446(0x14e),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0xe40446(0x153),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x149d06=a7_0x322f;(function(_0x549440,_0xeb80f8){const _0x4edc0f=a7_0x322f,_0x1b0a9b=_0x549440();while(!![]){try{const _0x3929d6=-parseInt(_0x4edc0f(0x83))/0x1*(parseInt(_0x4edc0f(0x80))/0x2)+parseInt(_0x4edc0f(0x7a))/0x3+parseInt(_0x4edc0f(0x81))/0x4+parseInt(_0x4edc0f(0x77))/0x5+-parseInt(_0x4edc0f(0x7d))/0x6*(-parseInt(_0x4edc0f(0x78))/0x7)+parseInt(_0x4edc0f(0x79))/0x8+-parseInt(_0x4edc0f(0x82))/0x9;if(_0x3929d6===_0xeb80f8)break;else _0x1b0a9b['push'](_0x1b0a9b['shift']());}catch(_0xcd391c){_0x1b0a9b['push'](_0x1b0a9b['shift']());}}}(a7_0x2f4b,0x86605));function a7_0x322f(_0x8a6d15,_0x52a145){const _0x2f4b23=a7_0x2f4b();return a7_0x322f=function(_0x322fef,_0x3c1280){_0x322fef=_0x322fef-0x77;let _0x187919=_0x2f4b23[_0x322fef];return _0x187919;},a7_0x322f(_0x8a6d15,_0x52a145);}Object['defineProperty'](exports,a7_0x149d06(0x7c),{'value':!![]}),exports[a7_0x149d06(0x7f)]=void 0x0;function a7_0x2f4b(){const _0x171d15=['__esModule','65562mlSPrj','../types/action','getAppsConfig','455596kxlGrO','1130376srgPJY','12710673rxvOqT','4AfJfLi','3618825rnAPpv','238lVGMhe','3335224mRDzxZ','3237342dSKwZP','AppsConfigTmp'];a7_0x2f4b=function(){return _0x171d15;};return a7_0x2f4b();}const decorator_1=require('@midwayjs/decorator'),action_1=require(a7_0x149d06(0x7e));function getAppsConfig(_0x48efa6){const _0x16931d=a7_0x149d06,_0x1b2f12=(0x0,decorator_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x16931d(0x7b)])||{};return _0x48efa6?lodash['get'](_0x1b2f12,_0x48efa6):_0x1b2f12;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x24240c=a8_0xd71e;(function(_0x507e47,_0x4dbc77){const _0x6f05f3=a8_0xd71e,_0x52e4b2=_0x507e47();while(!![]){try{const _0xa5b5b0=-parseInt(_0x6f05f3(0x204))/0x1+-parseInt(_0x6f05f3(0x1f6))/0x2+-parseInt(_0x6f05f3(0x203))/0x3+-parseInt(_0x6f05f3(0x1d4))/0x4*(-parseInt(_0x6f05f3(0x1ec))/0x5)+parseInt(_0x6f05f3(0x1f7))/0x6+-parseInt(_0x6f05f3(0x1fe))/0x7*(parseInt(_0x6f05f3(0x215))/0x8)+parseInt(_0x6f05f3(0x20e))/0x9;if(_0xa5b5b0===_0x4dbc77)break;else _0x52e4b2['push'](_0x52e4b2['shift']());}catch(_0x483ad2){_0x52e4b2['push'](_0x52e4b2['shift']());}}}(a8_0x40f8,0xb2ec9));function a8_0x40f8(){const _0x273c13=['lodash','max','filter','items','7128890fuVDXw','flags.label','getRoutes','body','route','request','get','Number','routes','summary','2703206hrFrFR','3470562QjaoKf','propertyData','args','metadata','iterator','routerOptions','log','7KZAMaZ','QUERY','describe','prefix','getClassExtendedMetadata','3408786klErFc','414212NyaphT','pprefix','isArray','parameterIndex','key','RouteParamTypes','RULES_KEY','allow','default','header','19989531cwtmez','-array','description','PARAM','indexOf','filepath','find','4722512BGxkMO','只允许:[','file','method','文件上传-','File','split','flags.default','Object','concat','object','ACTION_KEY','HEADERS','__esModule','title','String','keys','rules','min','requestMethod','startsWith','string','replace','@midwayjs/decorator','4ingdfl','FILESTREAM','tagName','limit','name','flags.presence','module','function','required','getClassMetadata','number','array','BODY','../types/action','query','push','Boolean','flags.description','type','static/apitest'];a8_0x40f8=function(){return _0x273c13;};return a8_0x40f8();}Object['defineProperty'](exports,a8_0x24240c(0x1c9),{'value':!![]}),exports[a8_0x24240c(0x1ee)]=void 0x0;const lodash_1=require(a8_0x24240c(0x1e8)),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0x24240c(0x1d3)),decorator_2=require(a8_0x24240c(0x1d3)),decorator_3=require(a8_0x24240c(0x1d3)),action_1=require(a8_0x24240c(0x1e1));function a8_0xd71e(_0x319839,_0x401ef3){const _0x40f8e9=a8_0x40f8();return a8_0xd71e=function(_0xd71e2a,_0x5ad2d6){_0xd71e2a=_0xd71e2a-0x1c4;let _0x5e7892=_0x40f8e9[_0xd71e2a];return _0x5e7892;},a8_0xd71e(_0x319839,_0x401ef3);}function getRoutes(_0x4f998e={'prefix':'/','module':![]}){const _0x2b7910=a8_0x24240c;var _0x5ba170,_0x2126c1;const _0x333341=(0x0,decorator_3['listModule'])(action_1[_0x2b7910(0x1c7)]),_0x438271={},_0x4cfa64=Array[_0x2b7910(0x206)](_0x4f998e['filter']||[])?_0x4f998e['filter']||[]:[_0x4f998e[_0x2b7910(0x1ea)]];_0x35c471:for(const _0x2357e7 of _0x333341){let _0x2f1ecb=(0x0,decorator_3[_0x2b7910(0x1dd)])(action_1[_0x2b7910(0x1c7)],_0x2357e7),_0xe9345c=(0x0,decorator_3[_0x2b7910(0x1dd)])(action_1['ACTION_ROUTE_KEY'],_0x2357e7);if(_0x2f1ecb&&_0xe9345c){let _0x1309ea=_0x2f1ecb[_0x2b7910(0x201)],_0x577193={};if(_0x4f998e[_0x2b7910(0x1da)]&&(0x0,lodash_1[_0x2b7910(0x1f2)])(_0x2f1ecb,_0x2b7910(0x1da),![])!=_0x4f998e[_0x2b7910(0x1da)])continue _0x35c471;else{if(_0x4f998e[_0x2b7910(0x1da)]===![]&&!!(0x0,lodash_1[_0x2b7910(0x1f2)])(_0x2f1ecb,'module',null))continue _0x35c471;}if(_0x4f998e[_0x2b7910(0x201)]&&!_0x1309ea[_0x2b7910(0x1d0)](_0x4f998e[_0x2b7910(0x201)]))continue _0x35c471;_0x1309ea!=='/'?(_0x577193[_0x2b7910(0x1f5)]=(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb[_0x2b7910(0x1fc)][_0x2b7910(0x1d6)])||(/^\//['test'](_0x1309ea)?_0x1309ea[_0x2b7910(0x21b)]('/')[0x1]:_0x1309ea),_0x577193[_0x2b7910(0x210)]=(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb[_0x2b7910(0x1fc)][_0x2b7910(0x210)])||_0x577193['summary'],_0x577193[_0x2b7910(0x1f4)]=[]):(_0x577193[_0x2b7910(0x1f5)]=(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb[_0x2b7910(0x1fc)][_0x2b7910(0x1d6)])||_0x2b7910(0x20c),_0x577193[_0x2b7910(0x210)]=(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb['routerOptions'][_0x2b7910(0x210)])||'',_0x577193['routes']=[]);_0x4f998e['filepath']&&(_0x577193[_0x2b7910(0x213)]=_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb[_0x2b7910(0x213)]);(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb['pprefix'])&&(_0x577193[_0x2b7910(0x201)]=_0x2f1ecb[_0x2b7910(0x205)]);(_0x2f1ecb===null||_0x2f1ecb===void 0x0?void 0x0:_0x2f1ecb[_0x2b7910(0x1da)])&&(_0x577193[_0x2b7910(0x1da)]=_0x2f1ecb[_0x2b7910(0x1da)]);let _0x324c6f=(0x0,decorator_3[_0x2b7910(0x1dd)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x2357e7)||{};if(typeof _0xe9345c[Symbol[_0x2b7910(0x1fb)]]===_0x2b7910(0x1db))for(let _0x47e16c of _0xe9345c){let _0x46cdb5={};_0x46cdb5['method']=_0x47e16c[_0x2b7910(0x1cf)],_0x46cdb5[_0x2b7910(0x1f0)]=(_0x1309ea+_0x47e16c['path'])[_0x2b7910(0x1d2)](/\/{1,}/,'/'),_0x46cdb5[_0x2b7910(0x1f5)]=(_0x47e16c===null||_0x47e16c===void 0x0?void 0x0:_0x47e16c['routerName'])||_0x577193[_0x2b7910(0x1f5)]||_0x2b7910(0x20c),_0x46cdb5[_0x2b7910(0x210)]=(_0x47e16c===null||_0x47e16c===void 0x0?void 0x0:_0x47e16c[_0x2b7910(0x210)])||'',_0x46cdb5['request']=[];if(!(0x0,lodash_1[_0x2b7910(0x1d0)])(_0x46cdb5[_0x2b7910(0x1f0)],_0x2b7910(0x1e7))&&!(0x0,lodash_1[_0x2b7910(0x1d0)])(_0x46cdb5['route'],'/static/apitest')&&_0x4cfa64[_0x2b7910(0x212)](_0x46cdb5[_0x2b7910(0x1f0)])===-0x1){if(!(_0x4f998e===null||_0x4f998e===void 0x0?void 0x0:_0x4f998e['noreq'])){let _0xbecd34=(0x0,decorator_3['getMethodParamTypes'])(new _0x2357e7(),_0x47e16c[_0x2b7910(0x218)]);for(const _0x29d745 in _0xbecd34){let _0x4139a7=(_0x5ba170=_0x324c6f[_0x47e16c[_0x2b7910(0x218)]])===null||_0x5ba170===void 0x0?void 0x0:_0x5ba170['find'](_0x5ba895=>_0x5ba895[_0x2b7910(0x207)]==_0x29d745&&_0x5ba895[_0x2b7910(0x208)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x5ba895===null||_0x5ba895===void 0x0?void 0x0:_0x5ba895[_0x2b7910(0x1fa)]));if(_0x4139a7===null||_0x4139a7===void 0x0?void 0x0:_0x4139a7[_0x2b7910(0x1fa)]){let _0x4d3427=convertTypeToString(_0x4139a7[_0x2b7910(0x1fa)][_0x2b7910(0x1e6)]||0x0);if([_0x2b7910(0x1e2),_0x2b7910(0x1ef)][_0x2b7910(0x212)](_0x4d3427)!=-0x1&&_0x4139a7[_0x2b7910(0x1fa)][_0x2b7910(0x1f8)][_0x2b7910(0x212)](':')==-0x1&&!_0x46cdb5[_0x2b7910(0x1f1)][_0x2b7910(0x214)](_0x358791=>_0x358791[_0x2b7910(0x208)]==_0x4139a7[_0x2b7910(0x1fa)][_0x2b7910(0x1f8)]))_0x46cdb5['request'][_0x2b7910(0x1e3)]({'key':_0x4139a7[_0x2b7910(0x1fa)][_0x2b7910(0x1f8)],'title':_0x4139a7[_0x2b7910(0x1fa)]['propertyData'],'type':convertSchemaType(_0xbecd34[_0x4139a7['parameterIndex']][_0x2b7910(0x1d8)]),'required':![],'default':'','desc':''});else{if(_0x4d3427==_0x2b7910(0x217)){let _0x37515b=((_0x2126c1=_0x4139a7===null||_0x4139a7===void 0x0?void 0x0:_0x4139a7[_0x2b7910(0x1fa)])===null||_0x2126c1===void 0x0?void 0x0:_0x2126c1[_0x2b7910(0x1f8)])||_0x2b7910(0x217);_0x37515b[_0x2b7910(0x212)](':')==-0x1&&!_0x46cdb5['request']['find'](_0xf72094=>_0xf72094[_0x2b7910(0x208)]==_0x37515b&&_0xf72094[_0x2b7910(0x1e6)]==_0x2b7910(0x217))&&_0x46cdb5[_0x2b7910(0x1f1)][_0x2b7910(0x1e3)]({'key':_0x37515b,'title':_0x2b7910(0x219)+_0x37515b,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x4b2712=(0x0,decorator_3[_0x2b7910(0x202)])(validator_1[_0x2b7910(0x20a)],_0xbecd34[_0x29d745]);_0x4b2712&&_0x46cdb5[_0x2b7910(0x1f1)][_0x2b7910(0x1e3)](...getJoiRequest(_0x4b2712));}}}_0x577193[_0x2b7910(0x1f4)][_0x2b7910(0x1e3)](_0x46cdb5);}}if(_0x577193[_0x2b7910(0x1f4)]['length']>0x0){let _0x5cf510=_0x438271[_0x1309ea];_0x5cf510?(_0x5cf510[_0x2b7910(0x1f5)]!=_0x577193[_0x2b7910(0x1f5)]&&(_0x5cf510[_0x2b7910(0x1f5)]=_0x5cf510[_0x2b7910(0x1f5)]+','+_0x577193[_0x2b7910(0x1f5)]),_0x5cf510[_0x2b7910(0x210)]!=_0x577193[_0x2b7910(0x210)]&&(_0x5cf510['description']=_0x5cf510[_0x2b7910(0x210)]+','+_0x577193[_0x2b7910(0x210)]),_0x5cf510[_0x2b7910(0x1f4)]=_0x5cf510[_0x2b7910(0x1f4)][_0x2b7910(0x1c5)](_0x577193[_0x2b7910(0x1f4)]),_0x438271[_0x1309ea]=_0x5cf510):_0x438271[_0x1309ea]=_0x577193;}}}return _0x438271;}exports[a8_0x24240c(0x1ee)]=getRoutes;function getJoiRequest(_0x19146b){const _0x7a1c97=a8_0x24240c,_0x5bd229=[];for(let _0x38b141 in _0x19146b){const _0x14df8b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x45d8fd=typeof _0x19146b[_0x38b141][_0x7a1c97(0x200)]=='function'?_0x19146b[_0x38b141]['describe']():_0x19146b[_0x38b141];_0x14df8b['key']=_0x38b141,_0x14df8b[_0x7a1c97(0x1e6)]=_0x45d8fd[_0x7a1c97(0x1e6)],_0x14df8b[_0x7a1c97(0x1ca)]=(0x0,lodash_1[_0x7a1c97(0x1f2)])(_0x45d8fd,_0x7a1c97(0x1ed),_0x38b141),_0x14df8b[_0x7a1c97(0x20c)]=(0x0,lodash_1[_0x7a1c97(0x1f2)])(_0x45d8fd,_0x7a1c97(0x21c),''),_0x14df8b[_0x7a1c97(0x1dc)]=(0x0,lodash_1[_0x7a1c97(0x1f2)])(_0x45d8fd,_0x7a1c97(0x1d9),'')==_0x7a1c97(0x1dc),_0x14df8b['description']=(0x0,lodash_1[_0x7a1c97(0x1f2)])(_0x45d8fd,_0x7a1c97(0x1e5),'');if(_0x45d8fd['type']==_0x7a1c97(0x1c6))_0x14df8b['children']=getJoiRequest(_0x45d8fd[_0x7a1c97(0x1cc)]);else _0x45d8fd[_0x7a1c97(0x1e6)]==_0x7a1c97(0x1df)&&_0x45d8fd['items']&&Array['isArray'](_0x45d8fd['items'])&&_0x45d8fd[_0x7a1c97(0x1eb)][0x0]&&console[_0x7a1c97(0x1fd)](_0x38b141+_0x7a1c97(0x20f),_0x45d8fd);_0x45d8fd[_0x7a1c97(0x20b)]&&Array[_0x7a1c97(0x206)](_0x45d8fd[_0x7a1c97(0x20b)])&&_0x45d8fd[_0x7a1c97(0x20b)]['length']>0x0&&(_0x14df8b[_0x7a1c97(0x210)]=_0x7a1c97(0x216)+_0x45d8fd[_0x7a1c97(0x20b)]['join'](',')+'];'+_0x14df8b[_0x7a1c97(0x210)]);if(_0x14df8b[_0x7a1c97(0x208)]&&_0x14df8b[_0x7a1c97(0x1e6)]){const _0x32bd49={};for(const _0x5afe14 of _0x45d8fd[_0x7a1c97(0x1cd)]||[]){if(_0x5afe14[_0x7a1c97(0x1d8)]===_0x7a1c97(0x1ce)&&_0x5afe14[_0x7a1c97(0x1f9)])_0x32bd49[_0x7a1c97(0x1ce)]=_0x5afe14[_0x7a1c97(0x1f9)][_0x7a1c97(0x1d7)];else _0x5afe14[_0x7a1c97(0x1d8)]===_0x7a1c97(0x1e9)&&(_0x32bd49['max']=_0x5afe14[_0x7a1c97(0x1f9)][_0x7a1c97(0x1d7)]);}_0x14df8b[_0x7a1c97(0x1cd)]=_0x32bd49;}_0x14df8b[_0x7a1c97(0x208)]&&_0x14df8b[_0x7a1c97(0x1ca)]&&_0x5bd229[_0x7a1c97(0x1e3)](_0x14df8b);}return _0x5bd229;}function convertSchemaType(_0x3cdce7){const _0x4ee048=a8_0x24240c;switch(_0x3cdce7){case _0x4ee048(0x1c4):return _0x4ee048(0x1c6);case _0x4ee048(0x1e4):return'boolean';case _0x4ee048(0x1f3):return _0x4ee048(0x1de);case _0x4ee048(0x1cb):return _0x4ee048(0x1d1);case _0x4ee048(0x21a):return _0x4ee048(0x217);default:return _0x4ee048(0x1d1);}}function convertTypeToString(_0x58c9d1){const _0xb25faa=a8_0x24240c;switch(_0x58c9d1){case decorator_1[_0xb25faa(0x209)][_0xb25faa(0x1c8)]:return _0xb25faa(0x20d);case decorator_1[_0xb25faa(0x209)][_0xb25faa(0x1ff)]:return _0xb25faa(0x1e2);case decorator_1[_0xb25faa(0x209)][_0xb25faa(0x211)]:return'path';case decorator_1[_0xb25faa(0x209)][_0xb25faa(0x1e0)]:return _0xb25faa(0x1ef);case decorator_1[_0xb25faa(0x209)]['FIELDS']:case decorator_1['RouteParamTypes']['FILESSTREAM']:case decorator_1['RouteParamTypes'][_0xb25faa(0x1d5)]:return _0xb25faa(0x217);default:return _0xb25faa(0x20d);}}
|
|
1
|
+
'use strict';const a8_0x2627f0=a8_0x199b;(function(_0x2ee6c6,_0x3355bd){const _0x3f483f=a8_0x199b,_0x564d1a=_0x2ee6c6();while(!![]){try{const _0x28f4ea=parseInt(_0x3f483f(0x175))/0x1*(parseInt(_0x3f483f(0x198))/0x2)+-parseInt(_0x3f483f(0x1a2))/0x3+-parseInt(_0x3f483f(0x166))/0x4*(-parseInt(_0x3f483f(0x193))/0x5)+parseInt(_0x3f483f(0x171))/0x6+parseInt(_0x3f483f(0x15d))/0x7+parseInt(_0x3f483f(0x1ad))/0x8+parseInt(_0x3f483f(0x1b8))/0x9*(-parseInt(_0x3f483f(0x18b))/0xa);if(_0x28f4ea===_0x3355bd)break;else _0x564d1a['push'](_0x564d1a['shift']());}catch(_0x4ba9cc){_0x564d1a['push'](_0x564d1a['shift']());}}}(a8_0x2e7a,0x7f648));Object[a8_0x2627f0(0x169)](exports,a8_0x2627f0(0x163),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x2627f0(0x178)),decorator_1=require(a8_0x2627f0(0x16f)),decorator_2=require(a8_0x2627f0(0x16f)),decorator_3=require(a8_0x2627f0(0x16f)),action_1=require(a8_0x2627f0(0x182));function getRoutes(_0x50b8c5={'prefix':'/','module':![]}){const _0x298545=a8_0x2627f0;var _0x3fade0,_0x34ac62;const _0x14d637=(0x0,decorator_3[_0x298545(0x1b6)])(action_1[_0x298545(0x1b4)]),_0x4b2e25={},_0x34496a=Array[_0x298545(0x165)](_0x50b8c5['filter']||[])?_0x50b8c5[_0x298545(0x1a6)]||[]:[_0x50b8c5[_0x298545(0x1a6)]];_0x14d0c1:for(const _0x15ff38 of _0x14d637){let _0x11a986=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x15ff38),_0x4bb549=(0x0,decorator_3[_0x298545(0x176)])(action_1['ACTION_ROUTE_KEY'],_0x15ff38);if(_0x11a986&&_0x4bb549){let _0x3c41a6=_0x11a986['prefix'],_0x5b496a={};if(_0x50b8c5[_0x298545(0x192)]&&(0x0,lodash_1[_0x298545(0x1af)])(_0x11a986,_0x298545(0x192),![])!=_0x50b8c5[_0x298545(0x192)])continue _0x14d0c1;else{if(_0x50b8c5['module']===![]&&!!(0x0,lodash_1[_0x298545(0x1af)])(_0x11a986,_0x298545(0x192),null))continue _0x14d0c1;}if(_0x50b8c5[_0x298545(0x187)]&&!_0x3c41a6[_0x298545(0x194)](_0x50b8c5[_0x298545(0x187)]))continue _0x14d0c1;_0x3c41a6!=='/'?(_0x5b496a[_0x298545(0x17e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['routerOptions'][_0x298545(0x1b1)])||(/^\//['test'](_0x3c41a6)?_0x3c41a6['split']('/')[0x1]:_0x3c41a6),_0x5b496a[_0x298545(0x16e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x190)][_0x298545(0x16e)])||_0x5b496a[_0x298545(0x17e)],_0x5b496a['routes']=[]):(_0x5b496a[_0x298545(0x17e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['routerOptions'][_0x298545(0x1b1)])||_0x298545(0x1a3),_0x5b496a[_0x298545(0x16e)]=(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x190)][_0x298545(0x16e)])||'',_0x5b496a[_0x298545(0x1ae)]=[]);_0x50b8c5[_0x298545(0x1a4)]&&(_0x5b496a[_0x298545(0x1a4)]=_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x1a4)]);(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986[_0x298545(0x174)])&&(_0x5b496a[_0x298545(0x187)]=_0x11a986[_0x298545(0x174)]);(_0x11a986===null||_0x11a986===void 0x0?void 0x0:_0x11a986['module'])&&(_0x5b496a[_0x298545(0x192)]=_0x11a986[_0x298545(0x192)]);let _0x472577=(0x0,decorator_3['getClassMetadata'])(decorator_2['INJECT_CUSTOM_PARAM'],_0x15ff38)||{};if(typeof _0x4bb549[Symbol[_0x298545(0x1a7)]]===_0x298545(0x177))for(let _0x479837 of _0x4bb549){let _0x175b43={};_0x175b43['method']=_0x479837['requestMethod'],_0x175b43['route']=(_0x3c41a6+_0x479837[_0x298545(0x19f)])[_0x298545(0x183)](/\/{1,}/,'/'),_0x175b43['summary']=(_0x479837===null||_0x479837===void 0x0?void 0x0:_0x479837[_0x298545(0x170)])||_0x5b496a[_0x298545(0x17e)]||_0x298545(0x1a3),_0x175b43[_0x298545(0x16e)]=(_0x479837===null||_0x479837===void 0x0?void 0x0:_0x479837[_0x298545(0x16e)])||'',_0x175b43[_0x298545(0x162)]=[];if(!(0x0,lodash_1[_0x298545(0x194)])(_0x175b43['route'],_0x298545(0x19b))&&!(0x0,lodash_1[_0x298545(0x194)])(_0x175b43[_0x298545(0x168)],'/static/apitest')&&_0x34496a[_0x298545(0x18f)](_0x175b43[_0x298545(0x168)])===-0x1){if(!(_0x50b8c5===null||_0x50b8c5===void 0x0?void 0x0:_0x50b8c5[_0x298545(0x172)])){let _0x2ef4ea=(0x0,decorator_3[_0x298545(0x195)])(new _0x15ff38(),_0x479837[_0x298545(0x17a)]);for(const _0x13c6b7 in _0x2ef4ea){let _0x462ff1=(_0x3fade0=_0x472577[_0x479837[_0x298545(0x17a)]])===null||_0x3fade0===void 0x0?void 0x0:_0x3fade0['find'](_0x2a4b1d=>_0x2a4b1d['parameterIndex']==_0x13c6b7&&_0x2a4b1d[_0x298545(0x181)]===decorator_2[_0x298545(0x1a1)]&&(_0x2a4b1d===null||_0x2a4b1d===void 0x0?void 0x0:_0x2a4b1d[_0x298545(0x19a)]));if(_0x462ff1===null||_0x462ff1===void 0x0?void 0x0:_0x462ff1['metadata']){let _0x71a479=convertTypeToString(_0x462ff1[_0x298545(0x19a)][_0x298545(0x164)]||0x0);if([_0x298545(0x1a0),_0x298545(0x1b2)]['indexOf'](_0x71a479)!=-0x1&&_0x462ff1[_0x298545(0x19a)][_0x298545(0x186)][_0x298545(0x18f)](':')==-0x1&&!_0x175b43[_0x298545(0x162)][_0x298545(0x17d)](_0x4c5ba4=>_0x4c5ba4[_0x298545(0x181)]==_0x462ff1['metadata'][_0x298545(0x186)]))_0x175b43['request']['push']({'key':_0x462ff1[_0x298545(0x19a)][_0x298545(0x186)],'title':_0x462ff1[_0x298545(0x19a)]['propertyData'],'type':convertSchemaType(_0x2ef4ea[_0x462ff1[_0x298545(0x16b)]]['name']),'required':![],'default':'','desc':''});else{if(_0x71a479=='file'){let _0x4f037e=((_0x34ac62=_0x462ff1===null||_0x462ff1===void 0x0?void 0x0:_0x462ff1[_0x298545(0x19a)])===null||_0x34ac62===void 0x0?void 0x0:_0x34ac62[_0x298545(0x186)])||_0x298545(0x1b0);_0x4f037e[_0x298545(0x18f)](':')==-0x1&&!_0x175b43['request'][_0x298545(0x17d)](_0x4c51e9=>_0x4c51e9['key']==_0x4f037e&&_0x4c51e9[_0x298545(0x164)]==_0x298545(0x1b0))&&_0x175b43[_0x298545(0x162)][_0x298545(0x19d)]({'key':_0x4f037e,'title':_0x298545(0x1ba)+_0x4f037e,'type':_0x298545(0x1b0),'required':!![],'default':'','desc':''});}}}else{const _0x3f7880=(0x0,decorator_3[_0x298545(0x1b3)])(validator_1['RULES_KEY'],_0x2ef4ea[_0x13c6b7]);_0x3f7880&&_0x175b43[_0x298545(0x162)][_0x298545(0x19d)](...getJoiRequest(_0x3f7880));}}}_0x5b496a[_0x298545(0x1ae)]['push'](_0x175b43);}}if(_0x5b496a[_0x298545(0x1ae)][_0x298545(0x18d)]>0x0){let _0x5102d5=_0x4b2e25[_0x3c41a6];_0x5102d5?(_0x5102d5[_0x298545(0x17e)]!=_0x5b496a[_0x298545(0x17e)]&&(_0x5102d5[_0x298545(0x17e)]=_0x5102d5['summary']+','+_0x5b496a[_0x298545(0x17e)]),_0x5102d5[_0x298545(0x16e)]!=_0x5b496a[_0x298545(0x16e)]&&(_0x5102d5[_0x298545(0x16e)]=_0x5102d5['description']+','+_0x5b496a[_0x298545(0x16e)]),_0x5102d5[_0x298545(0x1ae)]=_0x5102d5['routes'][_0x298545(0x197)](_0x5b496a[_0x298545(0x1ae)]),_0x4b2e25[_0x3c41a6]=_0x5102d5):_0x4b2e25[_0x3c41a6]=_0x5b496a;}}}return _0x4b2e25;}function a8_0x199b(_0x589854,_0x20a86e){const _0x2e7adb=a8_0x2e7a();return a8_0x199b=function(_0x199b42,_0x53c80d){_0x199b42=_0x199b42-0x15d;let _0x2dde2c=_0x2e7adb[_0x199b42];return _0x2dde2c;},a8_0x199b(_0x589854,_0x20a86e);}exports[a8_0x2627f0(0x1a9)]=getRoutes;function getJoiRequest(_0x357b7c){const _0x271706=a8_0x2627f0,_0x5d1553=[];for(let _0x3474ca in _0x357b7c){const _0x23bcdc={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2d8d04=typeof _0x357b7c[_0x3474ca]['describe']==_0x271706(0x177)?_0x357b7c[_0x3474ca][_0x271706(0x18e)]():_0x357b7c[_0x3474ca];_0x23bcdc[_0x271706(0x181)]=_0x3474ca,_0x23bcdc['type']=_0x2d8d04[_0x271706(0x164)],_0x23bcdc['title']=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,_0x271706(0x1b9),_0x3474ca),_0x23bcdc[_0x271706(0x1a3)]=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,'flags.default',''),_0x23bcdc[_0x271706(0x161)]=(0x0,lodash_1['get'])(_0x2d8d04,_0x271706(0x1a8),'')=='required',_0x23bcdc[_0x271706(0x16e)]=(0x0,lodash_1[_0x271706(0x1af)])(_0x2d8d04,'flags.description','');if(_0x2d8d04[_0x271706(0x164)]==_0x271706(0x185))_0x23bcdc[_0x271706(0x1ac)]=getJoiRequest(_0x2d8d04[_0x271706(0x179)]);else _0x2d8d04['type']==_0x271706(0x17c)&&_0x2d8d04[_0x271706(0x173)]&&Array[_0x271706(0x165)](_0x2d8d04['items'])&&_0x2d8d04['items'][0x0]&&console[_0x271706(0x1ab)](_0x3474ca+_0x271706(0x16c),_0x2d8d04);_0x2d8d04[_0x271706(0x1bb)]&&Array[_0x271706(0x165)](_0x2d8d04[_0x271706(0x1bb)])&&_0x2d8d04[_0x271706(0x1bb)][_0x271706(0x18d)]>0x0&&(_0x23bcdc['description']=_0x271706(0x1a5)+_0x2d8d04[_0x271706(0x1bb)][_0x271706(0x15e)](',')+'];'+_0x23bcdc[_0x271706(0x16e)]);if(_0x23bcdc[_0x271706(0x181)]&&_0x23bcdc[_0x271706(0x164)]){const _0x89c9c3={};for(const _0x16df69 of _0x2d8d04['rules']||[]){if(_0x16df69['name']==='min'&&_0x16df69[_0x271706(0x199)])_0x89c9c3[_0x271706(0x19c)]=_0x16df69['args']['limit'];else _0x16df69[_0x271706(0x18a)]==='max'&&(_0x89c9c3[_0x271706(0x17f)]=_0x16df69[_0x271706(0x199)][_0x271706(0x18c)]);}_0x23bcdc['rules']=_0x89c9c3;}_0x23bcdc[_0x271706(0x181)]&&_0x23bcdc[_0x271706(0x1b7)]&&_0x5d1553[_0x271706(0x19d)](_0x23bcdc);}return _0x5d1553;}function convertSchemaType(_0x1a99b3){const _0x1dd85e=a8_0x2627f0;switch(_0x1a99b3){case'Object':return _0x1dd85e(0x185);case _0x1dd85e(0x184):return _0x1dd85e(0x16a);case _0x1dd85e(0x16d):return _0x1dd85e(0x15f);case _0x1dd85e(0x188):return _0x1dd85e(0x160);case _0x1dd85e(0x196):return _0x1dd85e(0x1b0);default:return _0x1dd85e(0x160);}}function a8_0x2e7a(){const _0x2c15e8=['describe','indexOf','routerOptions','PARAM','module','2458865wwFxYp','startsWith','getMethodParamTypes','File','concat','1607194KXbtXM','args','metadata','static/apitest','min','push','FILESTREAM','path','query','WEB_ROUTER_PARAM_KEY','531897QAWerT','default','filepath','只允许:[','filter','iterator','flags.presence','getRoutes','FIELDS','log','children','550672djbIgN','routes','get','file','tagName','body','getClassExtendedMetadata','ACTION_KEY','header','listModule','title','389646kMwENb','flags.label','文件上传-','allow','5493663EKGbBL','join','number','string','required','request','__esModule','type','isArray','4NQjhMP','RouteParamTypes','route','defineProperty','boolean','parameterIndex','-array','Number','description','@midwayjs/decorator','routerName','3509424xgKZkN','noreq','items','pprefix','1bZTMgP','getClassMetadata','function','@anncic-api/validator','keys','method','FILESSTREAM','array','find','summary','max','BODY','key','../types/action','replace','Boolean','object','propertyData','prefix','String','HEADERS','name','470XZDnRd','limit','length'];a8_0x2e7a=function(){return _0x2c15e8;};return a8_0x2e7a();}function convertTypeToString(_0x41c8cd){const _0x535118=a8_0x2627f0;switch(_0x41c8cd){case decorator_1[_0x535118(0x167)][_0x535118(0x189)]:return _0x535118(0x1b5);case decorator_1[_0x535118(0x167)]['QUERY']:return _0x535118(0x1a0);case decorator_1[_0x535118(0x167)][_0x535118(0x191)]:return'path';case decorator_1[_0x535118(0x167)][_0x535118(0x180)]:return'body';case decorator_1[_0x535118(0x167)][_0x535118(0x1aa)]:case decorator_1['RouteParamTypes'][_0x535118(0x17b)]:case decorator_1[_0x535118(0x167)][_0x535118(0x19e)]:return _0x535118(0x1b0);default:return _0x535118(0x1b5);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x5e1341=a9_0x8fc5;(function(_0x4ad1d1,_0x41ebd4){var _0x3c5769=a9_0x8fc5,_0x110efc=_0x4ad1d1();while(!![]){try{var _0x1ae8ab=-parseInt(_0x3c5769(0x14c))/0x1+parseInt(_0x3c5769(0x15f))/0x2+parseInt(_0x3c5769(0x15c))/0x3*(-parseInt(_0x3c5769(0x168))/0x4)+-parseInt(_0x3c5769(0x15b))/0x5*(-parseInt(_0x3c5769(0x14b))/0x6)+-parseInt(_0x3c5769(0x12e))/0x7+parseInt(_0x3c5769(0x161))/0x8+parseInt(_0x3c5769(0x13c))/0x9*(-parseInt(_0x3c5769(0x162))/0xa);if(_0x1ae8ab===_0x41ebd4)break;else _0x110efc['push'](_0x110efc['shift']());}catch(_0x1ec190){_0x110efc['push'](_0x110efc['shift']());}}}(a9_0xc142,0xe8919));var __createBinding=this&&this['__createBinding']||(Object[a9_0x5e1341(0x156)]?function(_0x2e6051,_0x2ae270,_0x33a0d6,_0x3596b7){var _0x4a9f77=a9_0x5e1341;if(_0x3596b7===undefined)_0x3596b7=_0x33a0d6;var _0x132997=Object[_0x4a9f77(0x14e)](_0x2ae270,_0x33a0d6);(!_0x132997||(_0x4a9f77(0x163)in _0x132997?!_0x2ae270['__esModule']:_0x132997['writable']||_0x132997[_0x4a9f77(0x134)]))&&(_0x132997={'enumerable':!![],'get':function(){return _0x2ae270[_0x33a0d6];}}),Object[_0x4a9f77(0x131)](_0x2e6051,_0x3596b7,_0x132997);}:function(_0x4b4f1f,_0x44bec5,_0x47afc2,_0x53c739){if(_0x53c739===undefined)_0x53c739=_0x47afc2;_0x4b4f1f[_0x53c739]=_0x44bec5[_0x47afc2];}),__exportStar=this&&this[a9_0x5e1341(0x137)]||function(_0x5a3158,_0x636f4f){var _0x52b7f2=a9_0x5e1341;for(var _0x3a7bdd in _0x5a3158)if(_0x3a7bdd!==_0x52b7f2(0x148)&&!Object[_0x52b7f2(0x158)][_0x52b7f2(0x159)][_0x52b7f2(0x152)](_0x636f4f,_0x3a7bdd))__createBinding(_0x636f4f,_0x5a3158,_0x3a7bdd);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x5e1341(0x145)]=exports[a9_0x5e1341(0x155)]=exports[a9_0x5e1341(0x140)]=exports['Inject']=exports['Provide']=exports[a9_0x5e1341(0x164)]=exports[a9_0x5e1341(0x14f)]=exports[a9_0x5e1341(0x135)]=exports[a9_0x5e1341(0x149)]=exports[a9_0x5e1341(0x12d)]=exports[a9_0x5e1341(0x141)]=exports[a9_0x5e1341(0x153)]=exports[a9_0x5e1341(0x146)]=exports[a9_0x5e1341(0x139)]=exports[a9_0x5e1341(0x15a)]=exports[a9_0x5e1341(0x154)]=exports[a9_0x5e1341(0x151)]=exports[a9_0x5e1341(0x142)]=exports[a9_0x5e1341(0x165)]=exports[a9_0x5e1341(0x166)]=exports[a9_0x5e1341(0x143)]=exports['EventService']=exports[a9_0x5e1341(0x138)]=exports[a9_0x5e1341(0x13f)]=exports[a9_0x5e1341(0x160)]=exports[a9_0x5e1341(0x147)]=exports['Apitest']=exports[a9_0x5e1341(0x13d)]=exports[a9_0x5e1341(0x13a)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x5e1341(0x131)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x556143=a9_0x5e1341;return getAppsConfig_1[_0x556143(0x145)];}}),__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x5e1341(0x132));Object['defineProperty'](exports,a9_0x5e1341(0x13a),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a9_0x5e1341(0x13b));Object[a9_0x5e1341(0x131)](exports,'Action',{'enumerable':!![],'get':function(){var _0x140bb8=a9_0x5e1341;return Action_1[_0x140bb8(0x13d)];}});var ActionApitest_1=require(a9_0x5e1341(0x15e));Object[a9_0x5e1341(0x131)](exports,'Apitest',{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x5e1341(0x133));Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x147),{'enumerable':!![],'get':function(){var _0x461260=a9_0x5e1341;return getRoutes_1[_0x461260(0x147)];}});var ApiError_1=require(a9_0x5e1341(0x12f));Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x160),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a9_0x5e1341(0x150));Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x13f),{'enumerable':!![],'get':function(){var _0x4a5b82=a9_0x5e1341;return task_1[_0x4a5b82(0x13f)];}});var cache_1=require(a9_0x5e1341(0x14d));Object[a9_0x5e1341(0x131)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x14384e=a9_0x5e1341;return cache_1[_0x14384e(0x138)];}});var event_1=require('@anncic-api/event');Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x144),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x5e1341(0x157));function a9_0x8fc5(_0x125d90,_0xc9cd6b){var _0xc14224=a9_0xc142();return a9_0x8fc5=function(_0x8fc502,_0x2067f8){_0x8fc502=_0x8fc502-0x12d;var _0x3e9d87=_0xc14224[_0x8fc502];return _0x3e9d87;},a9_0x8fc5(_0x125d90,_0xc9cd6b);}Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x143),{'enumerable':!![],'get':function(){var _0xbbcd9e=a9_0x5e1341;return ApiService_1[_0xbbcd9e(0x143)];}});var ExcelService_1=require(a9_0x5e1341(0x167));function a9_0xc142(){var _0xe87004=['configurable','App','@midwayjs/decorator','__exportStar','CacheService','Fields','Api','./decorator/Action','9004302dzqkJo','Action','CustomConfiguration','QueueService','Scope','Query','ValidatorService','ApiService','EventService','getAppsConfig','Body','getRoutes','default','Init','Provide','12hOODPs','1834208sGwgJW','@anncic-api/cache','getOwnPropertyDescriptor','Config','@midwayjs/task','Configuration','call','Param','File','ScopeEnum','create','./service/ApiService','prototype','hasOwnProperty','Files','3689980gnbtGh','3nLlmEb','Inject','./decorator/ActionApitest','3384320sGQKnI','ApiError','13391216lvmlXn','10jclsLl','get','Logger','ValidatorError','ExcelService','./service/ExcelService','1846828TGuszz','Headers','4151420OAoQYe','./exception/ApiError','@anncic-api/validator','defineProperty','./decorator/ActionApi','./helper/getRoutes'];a9_0xc142=function(){return _0xe87004;};return a9_0xc142();}Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x166),{'enumerable':!![],'get':function(){var _0x1f2d96=a9_0x5e1341;return ExcelService_1[_0x1f2d96(0x166)];}});var validator_1=require(a9_0x5e1341(0x130));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x3aeff5=a9_0x5e1341;return validator_1[_0x3aeff5(0x165)];}}),Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x142),{'enumerable':!![],'get':function(){var _0x2486b4=a9_0x5e1341;return validator_1[_0x2486b4(0x142)];}});var configuration_1=require('./configuration');Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x151),{'enumerable':!![],'get':function(){var _0x1fefbf=a9_0x5e1341;return configuration_1[_0x1fefbf(0x13e)];}});var decorator_1=require(a9_0x5e1341(0x136));Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x154),{'enumerable':!![],'get':function(){var _0x262e4f=a9_0x5e1341;return decorator_1[_0x262e4f(0x154)];}}),Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x15a),{'enumerable':!![],'get':function(){var _0x513195=a9_0x5e1341;return decorator_1[_0x513195(0x15a)];}}),Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x139),{'enumerable':!![],'get':function(){var _0x2f7276=a9_0x5e1341;return decorator_1[_0x2f7276(0x139)];}}),Object[a9_0x5e1341(0x131)](exports,'Body',{'enumerable':!![],'get':function(){var _0x521d90=a9_0x5e1341;return decorator_1[_0x521d90(0x146)];}}),Object['defineProperty'](exports,a9_0x5e1341(0x153),{'enumerable':!![],'get':function(){var _0x5c87ff=a9_0x5e1341;return decorator_1[_0x5c87ff(0x153)];}}),Object['defineProperty'](exports,a9_0x5e1341(0x141),{'enumerable':!![],'get':function(){var _0x3f9594=a9_0x5e1341;return decorator_1[_0x3f9594(0x141)];}}),Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x12d),{'enumerable':!![],'get':function(){var _0x17991c=a9_0x5e1341;return decorator_1[_0x17991c(0x12d)];}}),Object[a9_0x5e1341(0x131)](exports,'Init',{'enumerable':!![],'get':function(){var _0x6c22ad=a9_0x5e1341;return decorator_1[_0x6c22ad(0x149)];}});var decorator_2=require(a9_0x5e1341(0x136));Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x135),{'enumerable':!![],'get':function(){var _0x25ad35=a9_0x5e1341;return decorator_2[_0x25ad35(0x135)];}}),Object['defineProperty'](exports,a9_0x5e1341(0x14f),{'enumerable':!![],'get':function(){var _0x3da08e=a9_0x5e1341;return decorator_2[_0x3da08e(0x14f)];}}),Object['defineProperty'](exports,a9_0x5e1341(0x164),{'enumerable':!![],'get':function(){var _0x4f4806=a9_0x5e1341;return decorator_2[_0x4f4806(0x164)];}}),Object['defineProperty'](exports,a9_0x5e1341(0x14a),{'enumerable':!![],'get':function(){var _0x2e7c34=a9_0x5e1341;return decorator_2[_0x2e7c34(0x14a)];}}),Object[a9_0x5e1341(0x131)](exports,a9_0x5e1341(0x15d),{'enumerable':!![],'get':function(){var _0x1a2cdd=a9_0x5e1341;return decorator_2[_0x1a2cdd(0x15d)];}}),Object[a9_0x5e1341(0x131)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x4f5c02=a9_0x5e1341;return decorator_2[_0x4f5c02(0x140)];}}),Object[a9_0x5e1341(0x131)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4f7611=a9_0x5e1341;return decorator_2[_0x4f7611(0x155)];}}),global[a9_0x5e1341(0x145)]=getAppsConfig_1[a9_0x5e1341(0x145)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0xfa4a16=a10_0x62d5;(function(_0x217c10,_0x2aa83d){var _0x5ed7dd=a10_0x62d5,_0x47034a=_0x217c10();while(!![]){try{var _0x58bf0b=parseInt(_0x5ed7dd(0xa0))/0x1+-parseInt(_0x5ed7dd(0x77))/0x2*(parseInt(_0x5ed7dd(0x78))/0x3)+-parseInt(_0x5ed7dd(0x7a))/0x4+parseInt(_0x5ed7dd(0x85))/0x5*(-parseInt(_0x5ed7dd(0x86))/0x6)+-parseInt(_0x5ed7dd(0x9b))/0x7*(parseInt(_0x5ed7dd(0x8a))/0x8)+-parseInt(_0x5ed7dd(0xa6))/0x9+-parseInt(_0x5ed7dd(0xaa))/0xa*(-parseInt(_0x5ed7dd(0x8f))/0xb);if(_0x58bf0b===_0x2aa83d)break;else _0x47034a['push'](_0x47034a['shift']());}catch(_0x4174b9){_0x47034a['push'](_0x47034a['shift']());}}}(a10_0x38a8,0x8c986));function a10_0x38a8(){var _0x178264=['935aYmwvZ','Singleton','getcheck','token','__esModule','length','timeout','secret=','map','toLowerCase','Provide','secret','18977QUlOhT','decorate','crypto-js','requesttime','fromEntries','214957SXHvlw','sort','join','getsign','device','entries','1563786NWltKx','HEADERS_LACK','anncicapi','toString','431770MJKydR','ApiService','checksign','ApiError','config','缺少头信息:signature','prototype','MD5','1651928HJmFRg','3kKSouR','TIMEOUT','602264abEIuz','缺少头信息:','devices','design:type','HEADERS_CHECKCODE','ScopeEnum','function','logintime','__metadata','signature','abs','11995qOKLcG','2694ZEbiBx','now','getOwnPropertyDescriptor','object','3192kEHqyu','defineProperty','checkcode','__decorate','metadata'];a10_0x38a8=function(){return _0x178264;};return a10_0x38a8();}function a10_0x62d5(_0xd874c7,_0x3f8a5d){var _0x38a862=a10_0x38a8();return a10_0x62d5=function(_0x62d5d3,_0x4c45bb){_0x62d5d3=_0x62d5d3-0x70;var _0x5b9c6e=_0x38a862[_0x62d5d3];return _0x5b9c6e;},a10_0x62d5(_0xd874c7,_0x3f8a5d);}var __decorate=this&&this[a10_0xfa4a16(0x8d)]||function(_0xf4b98f,_0x31e8b2,_0x50d9ab,_0x1f0e0b){var _0x311401=a10_0xfa4a16,_0x236c54=arguments[_0x311401(0x94)],_0x4ad226=_0x236c54<0x3?_0x31e8b2:_0x1f0e0b===null?_0x1f0e0b=Object[_0x311401(0x88)](_0x31e8b2,_0x50d9ab):_0x1f0e0b,_0x30c1d5;if(typeof Reflect===_0x311401(0x89)&&typeof Reflect[_0x311401(0x9c)]===_0x311401(0x80))_0x4ad226=Reflect[_0x311401(0x9c)](_0xf4b98f,_0x31e8b2,_0x50d9ab,_0x1f0e0b);else{for(var _0x13db13=_0xf4b98f[_0x311401(0x94)]-0x1;_0x13db13>=0x0;_0x13db13--)if(_0x30c1d5=_0xf4b98f[_0x13db13])_0x4ad226=(_0x236c54<0x3?_0x30c1d5(_0x4ad226):_0x236c54>0x3?_0x30c1d5(_0x31e8b2,_0x50d9ab,_0x4ad226):_0x30c1d5(_0x31e8b2,_0x50d9ab))||_0x4ad226;}return _0x236c54>0x3&&_0x4ad226&&Object[_0x311401(0x8b)](_0x31e8b2,_0x50d9ab,_0x4ad226),_0x4ad226;},__metadata=this&&this[a10_0xfa4a16(0x82)]||function(_0x41984f,_0x286728){var _0xe8cffa=a10_0xfa4a16;if(typeof Reflect===_0xe8cffa(0x89)&&typeof Reflect['metadata']===_0xe8cffa(0x80))return Reflect[_0xe8cffa(0x8e)](_0x41984f,_0x286728);};Object[a10_0xfa4a16(0x8b)](exports,a10_0xfa4a16(0x93),{'value':!![]}),exports[a10_0xfa4a16(0x70)]=void 0x0;const crypto_js_1=require(a10_0xfa4a16(0x9d)),decorator_1=require('@midwayjs/decorator'),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0x2fd958){var _0x23c8c8=a10_0xfa4a16,_0x5d94c2;return _0x2fd958?(0x0,crypto_js_1['MD5'])(_0x2fd958+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x23c8c8(0x76)])(_0x2fd958)[_0x23c8c8(0xa9)]()+((_0x5d94c2=this[_0x23c8c8(0x73)])===null||_0x5d94c2===void 0x0?void 0x0:_0x5d94c2['password']))[_0x23c8c8(0xa9)]())[_0x23c8c8(0xa9)]():'';}[a10_0xfa4a16(0x91)](_0x53620c,_0xecc6be,_0x2d2ca0=Date['now']()){return{'Token':_0x53620c,'Logintime':_0x2d2ca0,'Checkcode':this['checkcode'](_0x53620c,_0xecc6be,_0x2d2ca0)};}[a10_0xfa4a16(0xa3)](_0x393ec0={}){var _0x82038c=a10_0xfa4a16;const _0x1eac6f=[],_0x195229=Object[_0x82038c(0x9f)](Object[_0x82038c(0xa5)](_0x393ec0)['map'](_0x3cc253=>[_0x3cc253[0x0][_0x82038c(0x98)](),_0x3cc253[0x1]]));for(let _0xce46b6 of[_0x82038c(0xa4),_0x82038c(0x9e),_0x82038c(0x92),_0x82038c(0x81),'checkcode']){if(typeof _0x195229[_0xce46b6]=='undefined')throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x82038c(0x7b)+_0xce46b6});_0x1eac6f['push'](_0xce46b6+'='+_0x195229[_0xce46b6]);}if(Math[_0x82038c(0x84)](_0x195229[_0x82038c(0x9e)])-Date[_0x82038c(0x87)]()>this['config'][_0x82038c(0x95)])throw new AnnError(ApiError_1['ApiError'][_0x82038c(0x79)]);if(!this['config'][_0x82038c(0x7c)][_0x195229[_0x82038c(0xa4)]]||!this[_0x82038c(0x73)]['devices'][_0x195229[_0x82038c(0xa4)]]['secret']||!this['config']['devices'][_0x195229[_0x82038c(0xa4)]]['checkcode'])throw new AnnError(ApiError_1[_0x82038c(0x72)]['HEADERS_DEVICE']);if(_0x195229[_0x82038c(0x92)]&&_0x195229[_0x82038c(0x8c)]!=this[_0x82038c(0x8c)](_0x195229['token'],_0x195229[_0x82038c(0xa4)],_0x195229[_0x82038c(0x81)]))throw new AnnError(ApiError_1[_0x82038c(0x72)][_0x82038c(0x7e)]);return _0x1eac6f['push'](_0x82038c(0x96)+this[_0x82038c(0x73)][_0x82038c(0x7c)][_0x195229[_0x82038c(0xa4)]][_0x82038c(0x9a)]),(0x0,crypto_js_1[_0x82038c(0x76)])(_0x1eac6f[_0x82038c(0xa1)]()[_0x82038c(0xa2)](''))['toString']();}['checkcode'](_0x478f0b,_0x3da3ea,_0xadb8dc=Date[a10_0xfa4a16(0x87)]()){var _0x18cc71=a10_0xfa4a16,_0x409e08,_0x3660ad,_0x577069;if(!((_0x409e08=this[_0x18cc71(0x73)])===null||_0x409e08===void 0x0?void 0x0:_0x409e08[_0x18cc71(0x7c)][_0x3da3ea])||!((_0x577069=(_0x3660ad=this[_0x18cc71(0x73)])===null||_0x3660ad===void 0x0?void 0x0:_0x3660ad[_0x18cc71(0x7c)][_0x3da3ea])===null||_0x577069===void 0x0?void 0x0:_0x577069['checkcode']))throw new AnnError(ApiError_1[_0x18cc71(0x72)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x18cc71(0x76)])(_0x478f0b+(0x0,crypto_js_1['MD5'])(_0xadb8dc+this['config'][_0x18cc71(0x7c)][_0x3da3ea][_0x18cc71(0x8c)])[_0x18cc71(0xa9)]())[_0x18cc71(0xa9)]();}[a10_0xfa4a16(0x71)](_0x12c1c1={}){var _0x4486cf=a10_0xfa4a16;const _0xcbaae=Object[_0x4486cf(0x9f)](Object[_0x4486cf(0xa5)](_0x12c1c1)[_0x4486cf(0x97)](_0x49e9b2=>[_0x49e9b2[0x0][_0x4486cf(0x98)](),_0x49e9b2[0x1]]));if(!(_0xcbaae===null||_0xcbaae===void 0x0?void 0x0:_0xcbaae[_0x4486cf(0x83)]))throw new AnnError(ApiError_1[_0x4486cf(0x72)][_0x4486cf(0xa7)],{'message':_0x4486cf(0x74)});if((_0xcbaae===null||_0xcbaae===void 0x0?void 0x0:_0xcbaae[_0x4486cf(0x83)])!=this[_0x4486cf(0xa3)](_0xcbaae))throw new AnnError(ApiError_1[_0x4486cf(0x72)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1['Config'])(a10_0xfa4a16(0xa8)),__metadata(a10_0xfa4a16(0x7d),Object)],ApiService[a10_0xfa4a16(0x75)],a10_0xfa4a16(0x73),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0xfa4a16(0x99)])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0xfa4a16(0x7f)][a10_0xfa4a16(0x90)])],ApiService),exports[a10_0xfa4a16(0x70)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x2657f6=a11_0x1060;(function(_0x44aa75,_0x3497f6){const _0x3b4199=a11_0x1060,_0x25a6da=_0x44aa75();while(!![]){try{const _0xce60d3=-parseInt(_0x3b4199(0x16a))/0x1+-parseInt(_0x3b4199(0x13a))/0x2+-parseInt(_0x3b4199(0x12f))/0x3+-parseInt(_0x3b4199(0x128))/0x4+parseInt(_0x3b4199(0x146))/0x5+-parseInt(_0x3b4199(0x13e))/0x6+parseInt(_0x3b4199(0x156))/0x7*(parseInt(_0x3b4199(0x158))/0x8);if(_0xce60d3===_0x3497f6)break;else _0x25a6da['push'](_0x25a6da['shift']());}catch(_0x3345b6){_0x25a6da['push'](_0x25a6da['shift']());}}}(a11_0x3124,0x5089e));var __decorate=this&&this['__decorate']||function(_0x561837,_0xda115d,_0x419abc,_0x3d13d0){const _0x5e19c0=a11_0x1060;var _0x101543=arguments[_0x5e19c0(0x140)],_0x20a7e4=_0x101543<0x3?_0xda115d:_0x3d13d0===null?_0x3d13d0=Object[_0x5e19c0(0x126)](_0xda115d,_0x419abc):_0x3d13d0,_0x4f66cb;if(typeof Reflect===_0x5e19c0(0x13b)&&typeof Reflect[_0x5e19c0(0x154)]===_0x5e19c0(0x137))_0x20a7e4=Reflect[_0x5e19c0(0x154)](_0x561837,_0xda115d,_0x419abc,_0x3d13d0);else{for(var _0x3e5743=_0x561837[_0x5e19c0(0x140)]-0x1;_0x3e5743>=0x0;_0x3e5743--)if(_0x4f66cb=_0x561837[_0x3e5743])_0x20a7e4=(_0x101543<0x3?_0x4f66cb(_0x20a7e4):_0x101543>0x3?_0x4f66cb(_0xda115d,_0x419abc,_0x20a7e4):_0x4f66cb(_0xda115d,_0x419abc))||_0x20a7e4;}return _0x101543>0x3&&_0x20a7e4&&Object[_0x5e19c0(0x15d)](_0xda115d,_0x419abc,_0x20a7e4),_0x20a7e4;},__metadata=this&&this['__metadata']||function(_0x5998c2,_0x11d313){const _0x61ae19=a11_0x1060;if(typeof Reflect===_0x61ae19(0x13b)&&typeof Reflect['metadata']===_0x61ae19(0x137))return Reflect[_0x61ae19(0x16b)](_0x5998c2,_0x11d313);},__param=this&&this[a11_0x2657f6(0x130)]||function(_0xec0c63,_0xd99c2a){return function(_0x45df5d,_0x3ca0a1){_0xd99c2a(_0x45df5d,_0x3ca0a1,_0xec0c63);};};Object[a11_0x2657f6(0x15d)](exports,a11_0x2657f6(0x136),{'value':!![]}),exports[a11_0x2657f6(0x14f)]=exports[a11_0x2657f6(0x15e)]=void 0x0;const path_1=require(a11_0x2657f6(0x14d)),fs_1=require('fs'),core_1=require(a11_0x2657f6(0x12a)),decorator_1=require(a11_0x2657f6(0x141)),decorator_2=require(a11_0x2657f6(0x141)),getRoutes_1=require(a11_0x2657f6(0x135));function a11_0x3124(){const _0x2d0d38=['anncicapi','text/css;\x20charset=utf-8','1137476Hgxpds','object','set','replace','1316160VbHYGg','/apitest-:module','length','@midwayjs/decorator','MidwayEnvironmentService','design:returntype','.css','push','944210VJqOsz','method','apidoc','prefix','isDevelopmentEnvironment','routes','stringify','path','Get','ApitestStaticController','filepath','substring','apitest','route','decorate','Config','15840874mLaKSR','Singleton','8jiDnao','module','utf-8','content-type','application/javascript;\x20charset=utf-8','defineProperty','ApitestService','apiteststatic','readFileSync','config','join','../../public/index.html','url','design:type','apitestmodule','__apiList__','ScopeEnum','ctx','484227NnidPf','metadata','request','summary','apitesthtml','Inject','prototype','Scope','/apitest','getOwnPropertyDescriptor','Environment','1565292pKlgPj','/apiteststatic/','@midwayjs/core','design:paramtypes','extname','description','__devices__','1374870BMrJDc','__param','.js','devices','Controller','public,\x20max-age=604800','../helper/getRoutes','__esModule','function'];a11_0x3124=function(){return _0x2d0d38;};return a11_0x3124();}let ApitestService=class ApitestService{async[a11_0x2657f6(0x148)](_0x1e25e9){const _0x1f81fa=a11_0x2657f6,_0x10ff59=(0x0,getRoutes_1['getRoutes'])(_0x1e25e9),_0x534deb=[];for(let _0x2cccfa in _0x10ff59){for(let _0x38a3ae in _0x10ff59[_0x2cccfa][_0x1f81fa(0x14b)]){let _0x2444ef=_0x10ff59[_0x2cccfa][_0x1f81fa(0x14b)][_0x38a3ae],_0x2e90a1=[];for(let _0x217acd in _0x2444ef[_0x1f81fa(0x16c)]){_0x2e90a1[_0x1f81fa(0x145)](_0x2444ef[_0x1f81fa(0x16c)][_0x217acd]);}_0x534deb[_0x1f81fa(0x145)]({'title':_0x10ff59[_0x2cccfa][_0x1f81fa(0x16d)]+':'+_0x2444ef['summary'],'prefix':_0x10ff59[_0x2cccfa][_0x1f81fa(0x149)],'router':_0x2444ef[_0x1f81fa(0x153)],'method':_0x2444ef[_0x1f81fa(0x147)],'describe':_0x2444ef[_0x1f81fa(0x12d)]||'','filepath':_0x10ff59[_0x2cccfa][_0x1f81fa(0x150)]||'','request':_0x2e90a1});}}const _0x269b97=(0x0,path_1[_0x1f81fa(0x162)])(__dirname,_0x1f81fa(0x163));return(0x0,fs_1[_0x1f81fa(0x160)])(_0x269b97,{'encoding':_0x1f81fa(0x15a)})[_0x1f81fa(0x13d)](/__res__/g,_0x1f81fa(0x129))[_0x1f81fa(0x13d)](_0x1f81fa(0x167),JSON[_0x1f81fa(0x14c)](_0x534deb))[_0x1f81fa(0x13d)](_0x1f81fa(0x12e),JSON[_0x1f81fa(0x14c)](this[_0x1f81fa(0x161)][_0x1f81fa(0x132)]));}};__decorate([(0x0,decorator_2['Config'])(a11_0x2657f6(0x138)),__metadata(a11_0x2657f6(0x165),Object)],ApitestService['prototype'],a11_0x2657f6(0x161),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])('apitest'),(0x0,decorator_2[a11_0x2657f6(0x124)])(decorator_2[a11_0x2657f6(0x168)][a11_0x2657f6(0x157)])],ApitestService),exports['ApitestService']=ApitestService;function a11_0x1060(_0x2c0e25,_0x332489){const _0x3124d1=a11_0x3124();return a11_0x1060=function(_0x1060a8,_0x225965){_0x1060a8=_0x1060a8-0x123;let _0x1f7baa=_0x3124d1[_0x1060a8];return _0x1f7baa;},a11_0x1060(_0x2c0e25,_0x332489);}let ApitestStaticController=class ApitestStaticController{async[a11_0x2657f6(0x16e)](){const _0x29d108=a11_0x2657f6;if(this[_0x29d108(0x152)]){const _0x42c617={'module':![]};return this[_0x29d108(0x127)][_0x29d108(0x14a)]()&&(_0x42c617[_0x29d108(0x150)]=!![]),await this[_0x29d108(0x15e)][_0x29d108(0x148)](_0x42c617);}return'';}async['apitestmodule'](_0x26763f){const _0x46e95f=a11_0x2657f6;if(this[_0x46e95f(0x152)]){const _0x4df4c9={'module':_0x26763f};return this['Environment'][_0x46e95f(0x14a)]()&&(_0x4df4c9[_0x46e95f(0x150)]=!![]),await this['ApitestService']['apidoc'](_0x4df4c9);}return'';}async[a11_0x2657f6(0x15f)](){const _0x3ba079=a11_0x2657f6;if((0x0,path_1[_0x3ba079(0x12c)])(this['ctx'][_0x3ba079(0x16c)][_0x3ba079(0x164)])){var _0x281f61=(0x0,path_1[_0x3ba079(0x162)])(__dirname,'../../public/'+this[_0x3ba079(0x169)][_0x3ba079(0x16c)]['url']['replace'](_0x3ba079(0x129),'/'));if(_0x281f61[_0x3ba079(0x151)](_0x281f61[_0x3ba079(0x140)]-0xb)!='/index.html'){this[_0x3ba079(0x169)][_0x3ba079(0x13c)]('cache-control',_0x3ba079(0x134));if((0x0,path_1['extname'])(this['ctx']['request'][_0x3ba079(0x164)])==_0x3ba079(0x131))this[_0x3ba079(0x169)]['set'](_0x3ba079(0x15b),_0x3ba079(0x15c));else(0x0,path_1[_0x3ba079(0x12c)])(this['ctx'][_0x3ba079(0x16c)][_0x3ba079(0x164)])==_0x3ba079(0x144)&&this[_0x3ba079(0x169)][_0x3ba079(0x13c)](_0x3ba079(0x15b),_0x3ba079(0x139));return(0x0,fs_1['existsSync'])(_0x281f61)&&(0x0,fs_1[_0x3ba079(0x160)])(_0x281f61,{'encoding':_0x3ba079(0x15a)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x2657f6(0x16f)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x2657f6(0x123)],a11_0x2657f6(0x169),void 0x0),__decorate([(0x0,decorator_2[a11_0x2657f6(0x16f)])(),__metadata(a11_0x2657f6(0x165),core_1[a11_0x2657f6(0x142)])],ApitestStaticController['prototype'],'Environment',void 0x0),__decorate([(0x0,decorator_2[a11_0x2657f6(0x16f)])(),__metadata(a11_0x2657f6(0x165),ApitestService)],ApitestStaticController[a11_0x2657f6(0x123)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2['Config'])(a11_0x2657f6(0x152)),__metadata('design:type',Boolean)],ApitestStaticController['prototype'],a11_0x2657f6(0x152),void 0x0),__decorate([(0x0,decorator_2[a11_0x2657f6(0x155)])(a11_0x2657f6(0x138)),__metadata(a11_0x2657f6(0x165),Object)],ApitestStaticController['prototype'],a11_0x2657f6(0x161),void 0x0),__decorate([(0x0,decorator_1[a11_0x2657f6(0x14e)])(a11_0x2657f6(0x125)),__metadata('design:type',Function),__metadata(a11_0x2657f6(0x12b),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x2657f6(0x123)],a11_0x2657f6(0x16e),null),__decorate([(0x0,decorator_1['Get'])(a11_0x2657f6(0x13f)),__param(0x0,(0x0,decorator_1['Param'])(a11_0x2657f6(0x159))),__metadata('design:type',Function),__metadata(a11_0x2657f6(0x12b),[String]),__metadata(a11_0x2657f6(0x143),Promise)],ApitestStaticController[a11_0x2657f6(0x123)],a11_0x2657f6(0x166),null),__decorate([(0x0,decorator_1[a11_0x2657f6(0x14e)])('/apiteststatic/*'),__metadata(a11_0x2657f6(0x165),Function),__metadata(a11_0x2657f6(0x12b),[]),__metadata(a11_0x2657f6(0x143),Promise)],ApitestStaticController[a11_0x2657f6(0x123)],a11_0x2657f6(0x15f),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x2657f6(0x133)])('/'),(0x0,decorator_2[a11_0x2657f6(0x124)])(decorator_2[a11_0x2657f6(0x168)]['Request'])],ApitestStaticController),exports[a11_0x2657f6(0x14f)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a12_0x3920(){const _0x305f63=['239756JAUNdG','/public/xlsx','4440ELyRdJ','push','writeFile','header','defineProperty','Sheet\x201','addWorksheet','handler','getAppDir','keys','xlsx','export','ExcelService','value','findRows','log','columns','decorate','endsWith','frozen','getOwnPropertyDescriptor','mkdirSync','1070816TRdoCX','Singleton','3246790LsZeJS','\x20is\x20read\x20fail','ScopeEnum','design:type','existsSync','length','app','metadata','worksheets','199114tAyYPo','1240cwKzPT','object','__decorate','key','parse','prototype','function','substring','570812fFTMxG','Workbook','toString','6559LRvymZ','readFile','get','10wxsIqX','trim','getCell','col','Provide','koa-send','public/xlsx','replace','eachCell','startsWith','1249776BHzGWD','__metadata','54GcOSLa'];a12_0x3920=function(){return _0x305f63;};return a12_0x3920();}const a12_0x336161=a12_0x3457;(function(_0x50ac54,_0x68ff69){const _0x6c2269=a12_0x3457,_0x229b9d=_0x50ac54();while(!![]){try{const _0xd55b08=-parseInt(_0x6c2269(0x19d))/0x1*(parseInt(_0x6c2269(0x1cd))/0x2)+-parseInt(_0x6c2269(0x1a7))/0x3+parseInt(_0x6c2269(0x1d6))/0x4+parseInt(_0x6c2269(0x1c4))/0x5+-parseInt(_0x6c2269(0x1ac))/0x6*(parseInt(_0x6c2269(0x19a))/0x7)+parseInt(_0x6c2269(0x1c2))/0x8*(-parseInt(_0x6c2269(0x1a9))/0x9)+parseInt(_0x6c2269(0x1ce))/0xa*(parseInt(_0x6c2269(0x1aa))/0xb);if(_0xd55b08===_0x68ff69)break;else _0x229b9d['push'](_0x229b9d['shift']());}catch(_0xa5cf86){_0x229b9d['push'](_0x229b9d['shift']());}}}(a12_0x3920,0x8f17f));var __decorate=this&&this[a12_0x336161(0x1d0)]||function(_0xf0ad31,_0x3482e0,_0x5c7384,_0x16a0c5){const _0x419f9=a12_0x336161;var _0x89b5a5=arguments[_0x419f9(0x1c9)],_0xc80caa=_0x89b5a5<0x3?_0x3482e0:_0x16a0c5===null?_0x16a0c5=Object[_0x419f9(0x1c0)](_0x3482e0,_0x5c7384):_0x16a0c5,_0xa45079;if(typeof Reflect===_0x419f9(0x1cf)&&typeof Reflect[_0x419f9(0x1bd)]==='function')_0xc80caa=Reflect[_0x419f9(0x1bd)](_0xf0ad31,_0x3482e0,_0x5c7384,_0x16a0c5);else{for(var _0x54da0f=_0xf0ad31[_0x419f9(0x1c9)]-0x1;_0x54da0f>=0x0;_0x54da0f--)if(_0xa45079=_0xf0ad31[_0x54da0f])_0xc80caa=(_0x89b5a5<0x3?_0xa45079(_0xc80caa):_0x89b5a5>0x3?_0xa45079(_0x3482e0,_0x5c7384,_0xc80caa):_0xa45079(_0x3482e0,_0x5c7384))||_0xc80caa;}return _0x89b5a5>0x3&&_0xc80caa&&Object[_0x419f9(0x1b0)](_0x3482e0,_0x5c7384,_0xc80caa),_0xc80caa;},__metadata=this&&this[a12_0x336161(0x1a8)]||function(_0x2c9de6,_0x49a45a){const _0xb52aa2=a12_0x336161;if(typeof Reflect===_0xb52aa2(0x1cf)&&typeof Reflect[_0xb52aa2(0x1cb)]===_0xb52aa2(0x1d4))return Reflect[_0xb52aa2(0x1cb)](_0x2c9de6,_0x49a45a);};function a12_0x3457(_0x1a07dd,_0x23d5b7){const _0x392047=a12_0x3920();return a12_0x3457=function(_0x3457d9,_0x3476ac){_0x3457d9=_0x3457d9-0x19a;let _0x33f4ae=_0x392047[_0x3457d9];return _0x33f4ae;},a12_0x3457(_0x1a07dd,_0x23d5b7);}Object[a12_0x336161(0x1b0)](exports,'__esModule',{'value':!![]}),exports[a12_0x336161(0x1b8)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x336161(0x1a2)),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async[a12_0x336161(0x1d2)](_0x398558,_0x1f6cc7,_0x1129bc=[0x0]){const _0x2e5f32=a12_0x336161;var _0x334afc,_0x4c5597;const _0x170a57=new exceljs[(_0x2e5f32(0x1d7))](),_0x326cda=[];let _0x2115cf=_0x398558[_0x2e5f32(0x1a4)](/(\\|\/)/g,'/')[_0x2e5f32(0x1a4)](/\/{2,}/g,'/');!(_0x2115cf===null||_0x2115cf===void 0x0?void 0x0:_0x2115cf[_0x2e5f32(0x1a6)]('/'))&&(_0x2115cf=this['app'][_0x2e5f32(0x1b4)]()+'/'+_0x2115cf);try{await _0x170a57[_0x2e5f32(0x1b6)][_0x2e5f32(0x19b)](_0x2115cf);}catch(_0x42aa90){return console[_0x2e5f32(0x1bb)]('Api\x20Excel\x20Error:\x20'+_0x2115cf+_0x2e5f32(0x1c5)),_0x326cda;}for(const _0x999c13 of _0x1129bc){const _0x510084=lodash['isNumber'](_0x999c13)?((_0x334afc=_0x170a57[_0x2e5f32(0x1cc)])===null||_0x334afc===void 0x0?void 0x0:_0x334afc[_0x999c13])||undefined:_0x170a57['getWorksheet'](_0x999c13);if(_0x510084){var _0x49e6eb=0x1;const _0x4d1ed8=_0x510084['getRow'](0x1),_0x303c17=await new Promise(_0x1812f2=>{const _0xac5f5f=_0x2e5f32,_0x31615e={};_0x4d1ed8[_0xac5f5f(0x1a5)]((_0x178932,_0xa98c68)=>{const _0x497d3b=_0xac5f5f;for(const _0x15cbd7 of _0x1f6cc7){if(_0x178932[_0x497d3b(0x1b9)]==_0x15cbd7[_0x497d3b(0x1af)])_0x49e6eb=0x2,_0x31615e[_0x15cbd7['key']]={'header':_0x178932[_0x497d3b(0x1a0)],'handler':_0x15cbd7[_0x497d3b(0x1b3)]};else{if(!_0x31615e[_0x15cbd7[_0x497d3b(0x1d1)]])try{const _0x4b590f=_0x4d1ed8[_0x497d3b(0x19f)](_0x15cbd7[_0x497d3b(0x1af)]);_0x4b590f&&(_0x31615e[_0x15cbd7['key']]={'header':_0x4b590f['col'],'handler':_0x15cbd7[_0x497d3b(0x1b3)]});}catch{}}}_0x4d1ed8['cellCount']==_0xa98c68&&_0x1812f2(_0x31615e);});});for(const _0xadfdc6 of _0x510084[_0x2e5f32(0x1ba)](_0x49e6eb,_0x510084['rowCount'])){const _0x58b76b={};for(const _0x4660e8 in _0x303c17){_0x303c17[_0x4660e8][_0x2e5f32(0x1af)]&&(typeof((_0x4c5597=_0x303c17[_0x4660e8])===null||_0x4c5597===void 0x0?void 0x0:_0x4c5597[_0x2e5f32(0x1b3)])==_0x2e5f32(0x1d4)?_0x58b76b[_0x4660e8]=_0x303c17[_0x4660e8]['handler'](_0xadfdc6[_0x2e5f32(0x19f)](lodash[_0x2e5f32(0x19e)](''+_0x303c17[_0x4660e8][_0x2e5f32(0x1af)],'\x20'))[_0x2e5f32(0x1d8)]()):_0x58b76b[_0x4660e8]=_0xadfdc6[_0x2e5f32(0x19f)](_0x303c17[_0x4660e8]['header'])[_0x2e5f32(0x1d8)]());}Object[_0x2e5f32(0x1b5)](_0x58b76b)[_0x2e5f32(0x1c9)]>0x0&&_0x326cda[_0x2e5f32(0x1ad)](_0x58b76b);}}}return _0x326cda;}async[a12_0x336161(0x1b7)](_0x1d6721,_0x311400,_0x3cb81b,_0x34d2a9=a12_0x336161(0x1a3)){const _0x185995=a12_0x336161;var _0x55bf67,_0x1f25c8;const _0x339d49=new exceljs[(_0x185995(0x1d7))](),_0x32f317={},_0x3f3c1b=[],_0x236796=_0x339d49[_0x185995(0x1b2)](_0x185995(0x1b1),{'views':[{'state':_0x185995(0x1bf),'xSplit':0x1}]});for(const _0x215efe in _0x311400){_0x32f317[_0x311400[_0x215efe][_0x185995(0x1d1)]]=_0x311400[_0x215efe][_0x185995(0x1af)],_0x3f3c1b[_0x185995(0x1ad)]({'header':_0x311400[_0x215efe][_0x185995(0x1af)],'key':(_0x55bf67=_0x311400[_0x215efe])===null||_0x55bf67===void 0x0?void 0x0:_0x55bf67['key'][_0x185995(0x1a4)](/\./g,'_')});}_0x236796[_0x185995(0x1bc)]=_0x3f3c1b;for(const _0x529c9d of _0x3cb81b){const _0x11294c={};for(const _0x4b0ffd in _0x311400){typeof((_0x1f25c8=_0x311400[_0x4b0ffd])===null||_0x1f25c8===void 0x0?void 0x0:_0x1f25c8[_0x185995(0x1b3)])=='function'?_0x11294c[_0x311400[_0x4b0ffd]['key'][_0x185995(0x1a4)](/\./g,'_')]=await _0x311400[_0x4b0ffd][_0x185995(0x1b3)](_0x529c9d):_0x11294c[_0x311400[_0x4b0ffd][_0x185995(0x1d1)][_0x185995(0x1a4)](/\./g,'_')]=lodash[_0x185995(0x19c)](_0x529c9d,_0x311400[_0x4b0ffd][_0x185995(0x1d1)],'');}_0x236796['addRow'](_0x11294c);}let _0x4a56f3='';const _0x2e92ee=_0x1d6721+'-'+lodash['random'](0x2710,0x1869f)+'.xlsx';if(_0x34d2a9&&_0x34d2a9[_0x185995(0x1a6)]('/'))_0x4a56f3=''+_0x34d2a9;else _0x34d2a9&&!_0x34d2a9[_0x185995(0x1a6)]('/')&&!_0x34d2a9[_0x185995(0x1a6)]('\x5c')?_0x4a56f3=this[_0x185995(0x1ca)]['getAppDir']()+'/'+_0x34d2a9:_0x4a56f3=this[_0x185995(0x1ca)]['getAppDir']()+_0x185995(0x1ab);return(_0x4a56f3[_0x185995(0x1be)]('/')||_0x4a56f3[_0x185995(0x1be)]('\x5c'))&&(_0x4a56f3=_0x4a56f3[_0x185995(0x1d5)](0x0,_0x4a56f3['length']-0x1)),_0x4a56f3=_0x4a56f3['replace'](/(\\|\/)/g,'/')[_0x185995(0x1a4)](/\/{2,}/g,'/'),!fs[_0x185995(0x1c8)](_0x4a56f3)&&fs[_0x185995(0x1c1)](_0x4a56f3,{'recursive':!![]}),await _0x339d49[_0x185995(0x1b6)][_0x185995(0x1ae)]((_0x4a56f3+'/'+_0x2e92ee)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x2e92ee,'filepath':(_0x4a56f3[_0x185995(0x1d5)]((''+this[_0x185995(0x1ca)][_0x185995(0x1b4)]())['length'])+'/'+_0x2e92ee)[_0x185995(0x1a4)](/(\\|\/)/g,'/')[_0x185995(0x1a4)](/\/{2,}/g,'/')};}async['download'](_0x1f2045,_0x5788f1){return await koasend(_0x1f2045,''+_0x5788f1);}};__decorate([(0x0,decorator_1['App'])(),__metadata(a12_0x336161(0x1c7),Object)],ExcelService[a12_0x336161(0x1d3)],a12_0x336161(0x1ca),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x336161(0x1a1)])(),(0x0,decorator_1['Scope'])(decorator_1[a12_0x336161(0x1c6)][a12_0x336161(0x1c3)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x750e7e=a13_0xad97;(function(_0x3ab063,_0x1792a6){var _0xbcfb54=a13_0xad97,_0x17e7af=_0x3ab063();while(!![]){try{var _0x2a8965=-parseInt(_0xbcfb54(0xe3))/0x1+parseInt(_0xbcfb54(0xe0))/0x2+parseInt(_0xbcfb54(0xdd))/0x3*(-parseInt(_0xbcfb54(0xe8))/0x4)+parseInt(_0xbcfb54(0xea))/0x5+parseInt(_0xbcfb54(0xe6))/0x6*(-parseInt(_0xbcfb54(0xe9))/0x7)+-parseInt(_0xbcfb54(0xe1))/0x8*(parseInt(_0xbcfb54(0xed))/0x9)+parseInt(_0xbcfb54(0xee))/0xa;if(_0x2a8965===_0x1792a6)break;else _0x17e7af['push'](_0x17e7af['shift']());}catch(_0x234a9c){_0x17e7af['push'](_0x17e7af['shift']());}}}(a13_0x4fdc,0x33956));Object['defineProperty'](exports,a13_0x750e7e(0xec),{'value':!![]}),exports[a13_0x750e7e(0xeb)]=exports[a13_0x750e7e(0xe4)]=exports[a13_0x750e7e(0xe2)]=exports[a13_0x750e7e(0xe5)]=void 0x0,exports[a13_0x750e7e(0xe5)]=a13_0x750e7e(0xdf),exports[a13_0x750e7e(0xe2)]=a13_0x750e7e(0xe7),exports[a13_0x750e7e(0xe4)]=a13_0x750e7e(0xde);class AppsConfigTmp{}function a13_0xad97(_0x2a5670,_0x2769ad){var _0x4fdc48=a13_0x4fdc();return a13_0xad97=function(_0xad97e5,_0xf85b70){_0xad97e5=_0xad97e5-0xdd;var _0x119b6c=_0x4fdc48[_0xad97e5];return _0x119b6c;},a13_0xad97(_0x2a5670,_0x2769ad);}exports['AppsConfigTmp']=AppsConfigTmp;function a13_0x4fdc(){var _0x34fb7e=['10218040XMaUQN','70374ysUxnQ','anncic-api:apps:config','anncic-api:action','141414HeVHHg','8SIkXsT','ACTION_ROUTE_KEY','178334RIJOex','APPSCONFIG_KEY','ACTION_KEY','1693614JhqkyM','anncic-api:action:route','44oXfnLy','7FUjXFB','72115ERMWfi','AppsConfigTmp','__esModule','1593063mgfMMJ'];a13_0x4fdc=function(){return _0x34fb7e;};return a13_0x4fdc();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x51f5bf=a14_0x54a5;function a14_0x4c78(){var _0x17fcca=['7823598rYNMeB','3224746vuhvQV','__decorate','prototype','1:是;0:否','object','2260812mRrdDv','排序方式','_order','number','metadata','integer','decorate','898140PGuWPy','RuleType','9DRXDcX','3567364BLcLsC','PageDTO','Rule','__metadata','_isreverse','_size','分页数量','length','3sayvTW','design:type','getOwnPropertyDescriptor','__esModule','17357168xvRLjC','min','3882330WXPYCe','defineProperty','@anncic-api/validator','_page','string','function','trim'];a14_0x4c78=function(){return _0x17fcca;};return a14_0x4c78();}(function(_0x544250,_0x592229){var _0x1bd28d=a14_0x54a5,_0x6638ce=_0x544250();while(!![]){try{var _0x15beff=-parseInt(_0x1bd28d(0x1dd))/0x1+parseInt(_0x1bd28d(0x1fb))/0x2*(parseInt(_0x1bd28d(0x1e8))/0x3)+parseInt(_0x1bd28d(0x1e0))/0x4+-parseInt(_0x1bd28d(0x1ee))/0x5+-parseInt(_0x1bd28d(0x1f5))/0x6+-parseInt(_0x1bd28d(0x1f6))/0x7+-parseInt(_0x1bd28d(0x1ec))/0x8*(-parseInt(_0x1bd28d(0x1df))/0x9);if(_0x15beff===_0x592229)break;else _0x6638ce['push'](_0x6638ce['shift']());}catch(_0x2f1eb0){_0x6638ce['push'](_0x6638ce['shift']());}}}(a14_0x4c78,0xb7c24));var __decorate=this&&this[a14_0x51f5bf(0x1f7)]||function(_0x524d84,_0x2fd607,_0x379c38,_0x190e01){var _0x39da6c=a14_0x51f5bf,_0x4dd189=arguments[_0x39da6c(0x1e7)],_0x11af31=_0x4dd189<0x3?_0x2fd607:_0x190e01===null?_0x190e01=Object[_0x39da6c(0x1ea)](_0x2fd607,_0x379c38):_0x190e01,_0x582ebf;if(typeof Reflect===_0x39da6c(0x1fa)&&typeof Reflect['decorate']===_0x39da6c(0x1f3))_0x11af31=Reflect[_0x39da6c(0x1dc)](_0x524d84,_0x2fd607,_0x379c38,_0x190e01);else{for(var _0x179665=_0x524d84['length']-0x1;_0x179665>=0x0;_0x179665--)if(_0x582ebf=_0x524d84[_0x179665])_0x11af31=(_0x4dd189<0x3?_0x582ebf(_0x11af31):_0x4dd189>0x3?_0x582ebf(_0x2fd607,_0x379c38,_0x11af31):_0x582ebf(_0x2fd607,_0x379c38))||_0x11af31;}return _0x4dd189>0x3&&_0x11af31&&Object[_0x39da6c(0x1ef)](_0x2fd607,_0x379c38,_0x11af31),_0x11af31;},__metadata=this&&this[a14_0x51f5bf(0x1e3)]||function(_0x213b08,_0x268228){var _0x3d64c9=a14_0x51f5bf;if(typeof Reflect===_0x3d64c9(0x1fa)&&typeof Reflect[_0x3d64c9(0x1da)]==='function')return Reflect['metadata'](_0x213b08,_0x268228);};function a14_0x54a5(_0x159cff,_0x3e5b46){var _0x4c78f2=a14_0x4c78();return a14_0x54a5=function(_0x54a59e,_0x40d270){_0x54a59e=_0x54a59e-0x1da;var _0x58d169=_0x4c78f2[_0x54a59e];return _0x58d169;},a14_0x54a5(_0x159cff,_0x3e5b46);}Object[a14_0x51f5bf(0x1ef)](exports,a14_0x51f5bf(0x1eb),{'value':!![]}),exports[a14_0x51f5bf(0x1e1)]=void 0x0;const validator_1=require(a14_0x51f5bf(0x1f0));class PageDTO{}__decorate([(0x0,validator_1[a14_0x51f5bf(0x1e2)])('分页',validator_1['RuleType']['number']()['integer']()[a14_0x51f5bf(0x1ed)](0x1),'第一页为1,第二页为2'),__metadata(a14_0x51f5bf(0x1e9),Number)],PageDTO['prototype'],a14_0x51f5bf(0x1f1),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x51f5bf(0x1e6),validator_1['RuleType'][a14_0x51f5bf(0x1fe)]()[a14_0x51f5bf(0x1db)]()[a14_0x51f5bf(0x1ed)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x51f5bf(0x1f8)],a14_0x51f5bf(0x1e5),void 0x0),__decorate([(0x0,validator_1[a14_0x51f5bf(0x1e2)])(a14_0x51f5bf(0x1fc),validator_1['RuleType'][a14_0x51f5bf(0x1f2)]()[a14_0x51f5bf(0x1f4)]()),__metadata(a14_0x51f5bf(0x1e9),String)],PageDTO['prototype'],a14_0x51f5bf(0x1fd),void 0x0),__decorate([(0x0,validator_1[a14_0x51f5bf(0x1e2)])('是否倒序',validator_1[a14_0x51f5bf(0x1de)][a14_0x51f5bf(0x1fe)]()[a14_0x51f5bf(0x1db)]()['valid'](0x0,0x1),a14_0x51f5bf(0x1f9)),__metadata('design:type',Number)],PageDTO[a14_0x51f5bf(0x1f8)],a14_0x51f5bf(0x1e4),void 0x0),exports[a14_0x51f5bf(0x1e1)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.48",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.48",
|
|
21
|
+
"@anncic-api/core": "^1.1.48",
|
|
22
|
+
"@anncic-api/event": "^1.1.48",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.48",
|
|
24
|
+
"@anncic-api/validator": "^1.1.48",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.48",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "60da91438872ae55d309653f127b18e908900b01"
|
|
43
43
|
}
|