anncic-api 1.1.46 → 1.1.47
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_0x450f2f=a0_0x2509;function a0_0x32b0(){var _0x12bbd0=['text','defineProperty','appDir','1976PVPIIG','json','56OukeFe','20mb','10gMayEn','6GDumtO','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','6093FEpGvi','132325tizhnn','1305300AzJpdi','form','138660GqqeJg','default','3379431hnOcwN','311318lAIffp','__esModule','1118493vGVeiR','/runtime/.upload','name','20QBJdnP','414ShPSTK'];a0_0x32b0=function(){return _0x12bbd0;};return a0_0x32b0();}function a0_0x2509(_0x1346e7,_0x4600db){var _0x32b07d=a0_0x32b0();return a0_0x2509=function(_0x2509b6,_0x33e783){_0x2509b6=_0x2509b6-0x1d9;var _0x31758c=_0x32b07d[_0x2509b6];return _0x31758c;},a0_0x2509(_0x1346e7,_0x4600db);}(function(_0x5c9d6a,_0x387071){var _0x1f44cb=a0_0x2509,_0x356b73=_0x5c9d6a();while(!![]){try{var _0x33df34=parseInt(_0x1f44cb(0x1f0))/0x1+-parseInt(_0x1f44cb(0x1e3))/0x2*(parseInt(_0x1f44cb(0x1ef))/0x3)+parseInt(_0x1f44cb(0x1f1))/0x4*(-parseInt(_0x1f44cb(0x1eb))/0x5)+parseInt(_0x1f44cb(0x1ec))/0x6*(parseInt(_0x1f44cb(0x1dd))/0x7)+-parseInt(_0x1f44cb(0x1e9))/0x8*(parseInt(_0x1f44cb(0x1df))/0x9)+-parseInt(_0x1f44cb(0x1e2))/0xa*(-parseInt(_0x1f44cb(0x1dc))/0xb)+-parseInt(_0x1f44cb(0x1da))/0xc*(-parseInt(_0x1f44cb(0x1e7))/0xd);if(_0x33df34===_0x387071)break;else _0x356b73['push'](_0x356b73['shift']());}catch(_0x34d88a){_0x356b73['push'](_0x356b73['shift']());}}}(a0_0x32b0,0x939b3));Object[a0_0x450f2f(0x1e5)](exports,a0_0x450f2f(0x1de),{'value':!![]}),exports[a0_0x450f2f(0x1db)]=_0x518bdb=>{var _0x4d348d=a0_0x450f2f;return{'apitest':!![],'keys':_0x518bdb[_0x4d348d(0x1e1)],'anncicapi':{'timeout':0x1388,'password':_0x4d348d(0x1ed),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4d348d(0x1ee)}}},'bodyParser':{'enableTypes':[_0x4d348d(0x1e8),_0x4d348d(0x1d9),_0x4d348d(0x1e4),'xml'],'formLimit':'20mb','jsonLimit':'20mb','textLimit':'20mb','xmlLimit':_0x4d348d(0x1ea)},'upload':{'tmpdir':_0x518bdb[_0x4d348d(0x1e6)]+_0x4d348d(0x1e0),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x153923=a1_0x529e;(function(_0x4e221b,_0x1b7fce){var _0x44bfcd=a1_0x529e,_0x19104d=_0x4e221b();while(!![]){try{var _0x5803c2=parseInt(_0x44bfcd(0x6f))/0x1*(-parseInt(_0x44bfcd(0x71))/0x2)+-parseInt(_0x44bfcd(0x77))/0x3+parseInt(_0x44bfcd(0x6d))/0x4*(parseInt(_0x44bfcd(0x6e))/0x5)+parseInt(_0x44bfcd(0x70))/0x6+parseInt(_0x44bfcd(0x73))/0x7+parseInt(_0x44bfcd(0x75))/0x8+parseInt(_0x44bfcd(0x72))/0x9*(-parseInt(_0x44bfcd(0x74))/0xa);if(_0x5803c2===_0x1b7fce)break;else _0x19104d['push'](_0x19104d['shift']());}catch(_0x1eec8a){_0x19104d['push'](_0x19104d['shift']());}}}(a1_0x3b3f,0xbdd0f));function a1_0x3b3f(){var _0x576b7b=['11470312IxPvbe','__esModule','3258792fScwVj','defineProperty','118852UtvMXZ','225VVnRYZ','191wpsYRQ','3452118FnKoYa','4534lntKAW','468378DiDNyh','8682583qyxUbV','440DbQtKm'];a1_0x3b3f=function(){return _0x576b7b;};return a1_0x3b3f();}function a1_0x529e(_0x5b275c,_0x1bed3b){var _0x3b3f64=a1_0x3b3f();return a1_0x529e=function(_0x529ea6,_0x4a57ad){_0x529ea6=_0x529ea6-0x6c;var _0x45d084=_0x3b3f64[_0x529ea6];return _0x45d084;},a1_0x529e(_0x5b275c,_0x1bed3b);}Object[a1_0x153923(0x6c)](exports,a1_0x153923(0x76),{'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_0x2c6dd5=a2_0x17c6;(function(_0x4a6840,_0x2e4a48){const _0x38fe17=a2_0x17c6,_0x2c2e88=_0x4a6840();while(!![]){try{const _0x40926a=parseInt(_0x38fe17(0xde))/0x1*(parseInt(_0x38fe17(0xda))/0x2)+parseInt(_0x38fe17(0xd5))/0x3+-parseInt(_0x38fe17(0x10b))/0x4+parseInt(_0x38fe17(0xcd))/0x5*(parseInt(_0x38fe17(0xfd))/0x6)+parseInt(_0x38fe17(0xe0))/0x7*(parseInt(_0x38fe17(0xfe))/0x8)+-parseInt(_0x38fe17(0x104))/0x9*(-parseInt(_0x38fe17(0xc4))/0xa)+-parseInt(_0x38fe17(0x105))/0xb;if(_0x40926a===_0x2e4a48)break;else _0x2c2e88['push'](_0x2c2e88['shift']());}catch(_0x1014f9){_0x2c2e88['push'](_0x2c2e88['shift']());}}}(a2_0x51ad,0x976c7));function a2_0x17c6(_0x546eed,_0x34af68){const _0x51ad1e=a2_0x51ad();return a2_0x17c6=function(_0x17c644,_0x2448c){_0x17c644=_0x17c644-0xb6;let _0x1e25be=_0x51ad1e[_0x17c644];return _0x1e25be;},a2_0x17c6(_0x546eed,_0x34af68);}var __decorate=this&&this[a2_0x2c6dd5(0xca)]||function(_0x3639a2,_0x51834f,_0x5e5127,_0x4b70c9){const _0x11cc2f=a2_0x2c6dd5;var _0x35b2ff=arguments[_0x11cc2f(0xf3)],_0x356c1f=_0x35b2ff<0x3?_0x51834f:_0x4b70c9===null?_0x4b70c9=Object[_0x11cc2f(0xe4)](_0x51834f,_0x5e5127):_0x4b70c9,_0xbab05d;if(typeof Reflect===_0x11cc2f(0xfa)&&typeof Reflect[_0x11cc2f(0xc5)]===_0x11cc2f(0xb7))_0x356c1f=Reflect[_0x11cc2f(0xc5)](_0x3639a2,_0x51834f,_0x5e5127,_0x4b70c9);else{for(var _0x52c67e=_0x3639a2[_0x11cc2f(0xf3)]-0x1;_0x52c67e>=0x0;_0x52c67e--)if(_0xbab05d=_0x3639a2[_0x52c67e])_0x356c1f=(_0x35b2ff<0x3?_0xbab05d(_0x356c1f):_0x35b2ff>0x3?_0xbab05d(_0x51834f,_0x5e5127,_0x356c1f):_0xbab05d(_0x51834f,_0x5e5127))||_0x356c1f;}return _0x35b2ff>0x3&&_0x356c1f&&Object['defineProperty'](_0x51834f,_0x5e5127,_0x356c1f),_0x356c1f;},__metadata=this&&this[a2_0x2c6dd5(0xb9)]||function(_0x3984e1,_0xb3ab7c){const _0x3216e6=a2_0x2c6dd5;if(typeof Reflect==='object'&&typeof Reflect[_0x3216e6(0xf5)]===_0x3216e6(0xb7))return Reflect['metadata'](_0x3984e1,_0xb3ab7c);};Object[a2_0x2c6dd5(0xcb)](exports,a2_0x2c6dd5(0xe7),{'value':!![]}),exports[a2_0x2c6dd5(0x117)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x2c6dd5(0xe5)),ApiService_1=require(a2_0x2c6dd5(0xdb)),action_1=require(a2_0x2c6dd5(0x10a)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require(a2_0x2c6dd5(0xeb)),upload=require(a2_0x2c6dd5(0xf1)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2c6dd5(0xfb)),ConfigDefault=require(a2_0x2c6dd5(0xed)),ConfigProduction=require(a2_0x2c6dd5(0xd2)),anncic=require(a2_0x2c6dd5(0xef)),anncicCache=require(a2_0x2c6dd5(0xdc)),anncicEvent=require(a2_0x2c6dd5(0xff)),anncicTypeorm=require(a2_0x2c6dd5(0xe6)),anncicValidator=require(a2_0x2c6dd5(0xb6)),anncicHelper=require(a2_0x2c6dd5(0xdf));let CustomConfiguration=class CustomConfiguration{async[a2_0x2c6dd5(0x115)](){const _0x1cc5ac=a2_0x2c6dd5;await this['filterConfig'](),await this[_0x1cc5ac(0xc0)](),await this[_0x1cc5ac(0x113)](),await this['hanlderApplications']();}async[a2_0x2c6dd5(0xc0)](){}async[a2_0x2c6dd5(0x113)](){const _0x6c6b0b=a2_0x2c6dd5,_0x44841f=this['config'][_0x6c6b0b(0xc6)]();this['decorator'][_0x6c6b0b(0xd4)](action_1[_0x6c6b0b(0x103)],_0x4b994d=>{const _0x79ad85=_0x6c6b0b,_0x47e9b8=_0x4b994d[_0x79ad85(0xf5)];return{'before':async _0x30cfff=>{const _0x23fe9e=_0x79ad85;var _0x24bdae,_0x31273d;const _0x573ca2=(_0x24bdae=_0x30cfff===null||_0x30cfff===void 0x0?void 0x0:_0x30cfff[_0x23fe9e(0xdd)])===null||_0x24bdae===void 0x0?void 0x0:_0x24bdae[core_1[_0x23fe9e(0xf6)]];if(_0x573ca2&&(_0x47e9b8===null||_0x47e9b8===void 0x0?void 0x0:_0x47e9b8[_0x23fe9e(0xb8)])){if(!this[_0x23fe9e(0xd9)][_0x23fe9e(0xd0)]((_0x31273d=_0x573ca2===null||_0x573ca2===void 0x0?void 0x0:_0x573ca2[_0x23fe9e(0xe1)])===null||_0x31273d===void 0x0?void 0x0:_0x31273d[_0x23fe9e(0xf9)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x34b9e9=>{const _0x1cf7fc=_0x79ad85;var _0x590efe,_0x36d19d,_0x1c9ed5,_0x81ec1c,_0x4ceaf2;const _0x440224=(_0x590efe=_0x34b9e9===null||_0x34b9e9===void 0x0?void 0x0:_0x34b9e9[_0x1cf7fc(0xdd)])===null||_0x590efe===void 0x0?void 0x0:_0x590efe[core_1[_0x1cf7fc(0xf6)]];if(_0x440224&&(_0x47e9b8===null||_0x47e9b8===void 0x0?void 0x0:_0x47e9b8[_0x1cf7fc(0xb8)])){if(((_0x36d19d=_0x440224[_0x1cf7fc(0xf9)])===null||_0x36d19d===void 0x0?void 0x0:_0x36d19d[_0x1cf7fc(0x10e)])&&((_0x4ceaf2=(_0x81ec1c=(_0x1c9ed5=_0x44841f===null||_0x44841f===void 0x0?void 0x0:_0x44841f[_0x1cf7fc(0x101)])===null||_0x1c9ed5===void 0x0?void 0x0:_0x1c9ed5['devices'])===null||_0x81ec1c===void 0x0?void 0x0:_0x81ec1c[_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]])===null||_0x4ceaf2===void 0x0?void 0x0:_0x4ceaf2[_0x1cf7fc(0xbb)])){const _0x384111=Array['isArray'](_0x44841f['anncicapi'][_0x1cf7fc(0xe3)][_0x440224['headers'][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)])?_0x44841f[_0x1cf7fc(0x101)][_0x1cf7fc(0xe3)][_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)]:[_0x44841f[_0x1cf7fc(0x101)][_0x1cf7fc(0xe3)][_0x440224[_0x1cf7fc(0xf9)][_0x1cf7fc(0x10e)]][_0x1cf7fc(0xbb)]];for(const _0x325e65 of _0x384111){if(decorator_1[_0x1cf7fc(0xe2)][_0x1cf7fc(0xd8)](_0x325e65)||typeof _0x325e65==_0x1cf7fc(0xba)){const _0x192e24=await _0x440224[_0x1cf7fc(0x100)][_0x1cf7fc(0xbe)](_0x325e65);typeof(_0x192e24===null||_0x192e24===void 0x0?void 0x0:_0x192e24[_0x1cf7fc(0xcc)])==_0x1cf7fc(0xb7)&&await _0x192e24[_0x1cf7fc(0xcc)](typeof(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224['method'])==_0x1cf7fc(0xba)&&(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)])?_0x440224['method'][_0x1cf7fc(0xc2)]()+'@'+(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)]):undefined,_0x440224,_0x47e9b8);}else decorator_1[_0x1cf7fc(0xe2)][_0x1cf7fc(0xbc)](_0x325e65)&&await _0x325e65(typeof(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xd6)])==_0x1cf7fc(0xba)&&(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)])?_0x440224[_0x1cf7fc(0xd6)][_0x1cf7fc(0xc2)]()+'@'+(_0x440224===null||_0x440224===void 0x0?void 0x0:_0x440224[_0x1cf7fc(0xec)]):undefined,_0x440224,_0x47e9b8);}}}return await _0x34b9e9[_0x1cf7fc(0xf7)](..._0x34b9e9[_0x1cf7fc(0xd7)]);},'afterThrow':(_0x1a6a84,_0x28f556)=>{throw _0x28f556;}};});}async[a2_0x2c6dd5(0x106)](){const _0x568950=a2_0x2c6dd5;this['application'][_0x568950(0xce)]([_0x568950(0x111)])[_0x568950(0x107)](_0x5597dc=>{const _0x167807=_0x568950;(_0x5597dc===null||_0x5597dc===void 0x0?void 0x0:_0x5597dc[_0x167807(0x112)])&&Object[_0x167807(0xc3)](_0x5597dc[_0x167807(0x112)],{'ok':{'value':function(_0x542443,_0x29ab07,_0x542ae0=0x0){return{'code':_0x542ae0,'data':_0x542443,'extra':_0x29ab07};}},'input':{'value':function(_0x31a57b,_0x93fb23){const _0x53b491=_0x167807;var _0x424bff;const _0x13b86b=lodash[_0x53b491(0xf0)]({},this['request'][_0x53b491(0xee)]||this[_0x53b491(0xe1)][((_0x424bff=config===null||config===void 0x0?void 0x0:config[_0x53b491(0x118)])===null||_0x424bff===void 0x0?void 0x0:_0x424bff[_0x53b491(0x108)])||_0x53b491(0xee)]||{},this[_0x53b491(0xe1)][_0x53b491(0xc1)]||{});return _0x31a57b?lodash['get'](_0x13b86b,_0x31a57b,_0x93fb23):_0x13b86b;}},'when':{'value':async function(_0x33f3af,_0x32723b){const _0x4cd315=_0x167807,_0x102822=this[_0x4cd315(0xf8)](_0x33f3af,null);if(!lodash[_0x4cd315(0x110)](_0x102822))return await _0x32723b(_0x102822);}},'only':{'value':function(_0x4fcc19){const _0x263e31=_0x167807,_0x5b0728={};for(let _0xfa0470=0x0;_0xfa0470<_0x4fcc19[_0x263e31(0xf3)];_0xfa0470++){lodash[_0x263e31(0xbd)](_0x4fcc19[_0xfa0470])&&_0x4fcc19[_0xfa0470]['length']>0x0&&lodash['isString'](_0x4fcc19[_0xfa0470][0x0])&&(_0x5b0728[_0x4fcc19[_0xfa0470][0x0]]=this[_0x263e31(0xf8)](_0x4fcc19[_0xfa0470][0x0],_0x4fcc19[_0xfa0470][_0x263e31(0xf3)]>0x1?_0x4fcc19[_0xfa0470][0x1]:null));}return _0x5b0728;}}});});}async[a2_0x2c6dd5(0x10f)](){const _0x2b250c=a2_0x2c6dd5;var _0x5697db,_0x561ed0,_0xff45fd,_0x490597,_0x68cd0e,_0x169b18;const _0x4c0f10=this[_0x2b250c(0x10d)][_0x2b250c(0xc6)]();((_0x561ed0=(_0x5697db=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10['anncicapi'])===null||_0x5697db===void 0x0?void 0x0:_0x5697db[_0x2b250c(0xe3)])===null||_0x561ed0===void 0x0?void 0x0:_0x561ed0['DEFAULT'])&&Object[_0x2b250c(0xe8)](_0x4c0f10[_0x2b250c(0x101)][_0x2b250c(0xe3)])[_0x2b250c(0xf3)]>0x1&&delete _0x4c0f10['anncicapi'][_0x2b250c(0xe3)]['DEFAULT'];if((_0xff45fd=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10[_0x2b250c(0xbf)])===null||_0xff45fd===void 0x0?void 0x0:_0xff45fd[_0x2b250c(0x109)])for(const _0x293c66 in _0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)]){((_0x490597=_0x4c0f10[_0x2b250c(0xbf)]['dirs'][_0x293c66])===null||_0x490597===void 0x0?void 0x0:_0x490597[_0x2b250c(0xd1)])&&typeof((_0x68cd0e=_0x4c0f10[_0x2b250c(0xbf)]['dirs'][_0x293c66])===null||_0x68cd0e===void 0x0?void 0x0:_0x68cd0e[_0x2b250c(0xd1)])==_0x2b250c(0xba)&&!fs[_0x2b250c(0xea)](_0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)][_0x293c66][_0x2b250c(0xd1)])&&(fs[_0x2b250c(0x116)](_0x4c0f10['staticFile']['dirs'][_0x293c66][_0x2b250c(0xd1)],{'recursive':!![]}),console['log'](_0x2b250c(0x10c)+_0x4c0f10[_0x2b250c(0xbf)][_0x2b250c(0x109)][_0x293c66][_0x2b250c(0xd1)]));}((_0x169b18=_0x4c0f10===null||_0x4c0f10===void 0x0?void 0x0:_0x4c0f10[_0x2b250c(0x102)])===null||_0x169b18===void 0x0?void 0x0:_0x169b18[_0x2b250c(0xe9)])&&!fs['existsSync'](_0x4c0f10[_0x2b250c(0x102)][_0x2b250c(0xe9)])&&(fs[_0x2b250c(0x116)](_0x4c0f10['upload']['tmpdir'],{'recursive':!![]}),console['log'](_0x2b250c(0xf2)+_0x4c0f10[_0x2b250c(0x102)][_0x2b250c(0xe9)])),this['config'][_0x2b250c(0x114)](_0x4c0f10);}};function a2_0x51ad(){const _0x40d9af=['anncicapi','upload','ACTION_ROUTE_KEY','119916wbfXsu','24284601yjaUOl','hanlderApplications','forEach','key','dirs','./types/action','4648248dhsInz','Anncic-api\x20static-file\x20:\x20mkdir\x20','config','device','filterConfig','isNull','koa','context','handlerActionRoute','addObject','onReady','mkdirSync','CustomConfiguration','bodyXml','@anncic-api/validator','function','apimit','__metadata','string','intercept','isFunction','isArray','getAsync','staticFile','checkConfigKeys','query','toLowerCase','defineProperties','860AFFSAA','decorate','getConfiguration','decorator','Configuration','environment','__decorate','defineProperty','handler','250865oHgbkw','getApplications','Inject','checksign','dir','./config/config.production','MidwayConfigService','registerMethodHandler','3031026RqFqfJ','method','args','isClass','ApiService','4FNNayq','./service/ApiService','@anncic-api/cache','target','77237pBNEyP','anncic-apihelper','7WRQhBp','request','Types','devices','getOwnPropertyDescriptor','./exception/ApiError','@anncic-api/typeorm','__esModule','keys','tmpdir','existsSync','@midwayjs/task','_matchedRoute','./config/config.default','body','@anncic-api/core','defaultsDeep','@midwayjs/upload','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','length','prototype','metadata','REQUEST_OBJ_CTX_KEY','proceed','input','headers','object','@midwayjs/cross-domain','design:type','138kLyFgc','4202600LdchHB','@anncic-api/event','requestContext'];a2_0x51ad=function(){return _0x40d9af;};return a2_0x51ad();}__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1[a2_0x2c6dd5(0xd3)])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0x10d),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0xc7),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x2c6dd5(0xfc),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x2c6dd5(0xc9),void 0x0),__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xcf)])(),__metadata(a2_0x2c6dd5(0xfc),ApiService_1[a2_0x2c6dd5(0xd9)])],CustomConfiguration[a2_0x2c6dd5(0xf4)],a2_0x2c6dd5(0xd9),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2c6dd5(0xc8)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x555524=a3_0x9adb;(function(_0x1a1f53,_0x8915db){const _0x1f75c3=a3_0x9adb,_0x6bfe42=_0x1a1f53();while(!![]){try{const _0x1be0ac=parseInt(_0x1f75c3(0x187))/0x1+parseInt(_0x1f75c3(0x154))/0x2*(parseInt(_0x1f75c3(0x169))/0x3)+-parseInt(_0x1f75c3(0x171))/0x4*(-parseInt(_0x1f75c3(0x178))/0x5)+-parseInt(_0x1f75c3(0x17a))/0x6*(parseInt(_0x1f75c3(0x180))/0x7)+-parseInt(_0x1f75c3(0x181))/0x8*(parseInt(_0x1f75c3(0x152))/0x9)+-parseInt(_0x1f75c3(0x167))/0xa*(parseInt(_0x1f75c3(0x16f))/0xb)+parseInt(_0x1f75c3(0x17f))/0xc*(parseInt(_0x1f75c3(0x173))/0xd);if(_0x1be0ac===_0x8915db)break;else _0x6bfe42['push'](_0x6bfe42['shift']());}catch(_0x2339a2){_0x6bfe42['push'](_0x6bfe42['shift']());}}}(a3_0x3770,0x2e34c));function a3_0x9adb(_0x5e7e58,_0x56b255){const _0x3770e0=a3_0x3770();return a3_0x9adb=function(_0x9adb19,_0x49a34a){_0x9adb19=_0x9adb19-0x150;let _0x272681=_0x3770e0[_0x9adb19];return _0x272681;},a3_0x9adb(_0x5e7e58,_0x56b255);}Object[a3_0x555524(0x182)](exports,a3_0x555524(0x158),{'value':!![]}),exports[a3_0x555524(0x150)]=exports[a3_0x555524(0x17b)]=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x555524(0x163));function Action(_0x47c12d,_0x482a04,_0x486333={'middleware':[],'sensitive':!![]}){return _0x3393a4=>{const _0x3086f3=a3_0x9adb;_0x486333[_0x3086f3(0x17d)]=_0x482a04;const _0x527fce=parseRoute(_0x47c12d);if(_0x527fce[_0x3086f3(0x164)]){_0x486333[_0x3086f3(0x16b)]=_0x486333[_0x3086f3(0x16b)]?'/'+_0x527fce[_0x3086f3(0x164)]+'/'+_0x486333['prefix']:'/'+_0x527fce[_0x3086f3(0x166)];_0x527fce['prefix']&&(_0x486333[_0x3086f3(0x16b)]='/'+_0x527fce['prefix']+'/'+_0x486333[_0x3086f3(0x16b)]);if(fs[_0x3086f3(0x162)](_0x527fce[_0x3086f3(0x155)]+'/apps/'+_0x527fce['module']+_0x3086f3(0x170)+(lodash[_0x3086f3(0x186)](_0x527fce[_0x3086f3(0x176)],'ts')?'ts':'js'))){const _0x5ea57b=include(_0x527fce['rootpath']+'/apps/'+_0x527fce[_0x3086f3(0x164)]+_0x3086f3(0x170)+(lodash['endsWith'](_0x527fce[_0x3086f3(0x176)],'ts')?'ts':'js'));if(_0x5ea57b[_0x3086f3(0x17e)]&&lodash[_0x3086f3(0x161)](_0x5ea57b[_0x3086f3(0x17e)])&&_0x5ea57b[_0x3086f3(0x17e)][_0x3086f3(0x16d)]>0x0)for(let _0x3b8bec in _0x5ea57b[_0x3086f3(0x17e)]){_0x5ea57b[_0x3086f3(0x151)][_0x3086f3(0x156)](_0x5ea57b['middleware'][_0x3b8bec])==-0x1&&_0x486333[_0x3086f3(0x17e)]['push'](_0x5ea57b[_0x3086f3(0x17e)][_0x3b8bec]);}const _0x25b894=(0x0,decorator_1[_0x3086f3(0x15a)])(action_1['APPSCONFIG_KEY'],action_1[_0x3086f3(0x168)])||{};_0x25b894[''+_0x527fce[_0x3086f3(0x164)]]=_0x5ea57b,(0x0,decorator_1[_0x3086f3(0x184)])(action_1[_0x3086f3(0x15e)],_0x25b894,action_1[_0x3086f3(0x168)]);}_0x486333['prefix']=_0x486333[_0x3086f3(0x16b)][_0x3086f3(0x172)]()[_0x3086f3(0x189)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x3086f3(0x177)])(action_1['ACTION_KEY'],_0x3393a4),(0x0,decorator_1['Controller'])(_0x486333[_0x3086f3(0x16b)],_0x486333)(_0x3393a4),(0x0,decorator_1[_0x3086f3(0x184)])(action_1[_0x3086f3(0x159)],{'prefix':_0x486333[_0x3086f3(0x16b)],'pprefix':_0x527fce[_0x3086f3(0x16b)],'module':_0x527fce[_0x3086f3(0x164)],'filepath':_0x527fce['filepath'],'routerOptions':_0x486333},_0x3393a4);}else _0x486333['prefix']=_0x486333[_0x3086f3(0x16b)]?'/'+_0x486333[_0x3086f3(0x16b)]:'/'+_0x527fce[_0x3086f3(0x166)],_0x527fce['prefix']&&(_0x486333[_0x3086f3(0x16b)]='/'+_0x527fce['prefix']+'/'+_0x486333[_0x3086f3(0x16b)]),_0x486333[_0x3086f3(0x16b)]=_0x486333[_0x3086f3(0x16b)][_0x3086f3(0x172)]()[_0x3086f3(0x189)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x3086f3(0x177)])(action_1[_0x3086f3(0x159)],_0x3393a4),(0x0,decorator_1[_0x3086f3(0x15f)])(_0x486333['prefix'],_0x486333)(_0x3393a4),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x3086f3(0x159)],{'prefix':_0x486333[_0x3086f3(0x16b)],'module':_0x527fce[_0x3086f3(0x164)],'pprefix':_0x527fce['prefix'],'filepath':_0x527fce['filepath'],'routerOptions':_0x486333},_0x3393a4);};}exports[a3_0x555524(0x17b)]=Action;function parseRoute(_0x2f89b0){const _0x1795a3=a3_0x555524;_0x2f89b0=_0x2f89b0['replace'](/(\\|\/)/g,'/');const _0x2996a2=process[_0x1795a3(0x16a)]()[_0x1795a3(0x189)](/(\\|\/)/g,'/'),_0x441010=_0x2f89b0['substring'](0x0,_0x2996a2[_0x1795a3(0x16d)]+_0x2f89b0[_0x1795a3(0x16e)](_0x2996a2[_0x1795a3(0x16d)]+0x1)[_0x1795a3(0x156)]('/')+0x1),_0x5c4f70=_0x2f89b0[_0x1795a3(0x16e)](_0x441010[_0x1795a3(0x16d)]+0x1)[_0x1795a3(0x189)](/(\\|\/)/g,'/'),_0x12d90d={'route':'','prefix':![],'module':![],'rootpath':_0x441010,'filepath':_0x5c4f70};if(_0x5c4f70[_0x1795a3(0x188)]('app/controller/')){const _0x1fdc6a=_0x5c4f70[_0x1795a3(0x16e)](_0x1795a3(0x174)[_0x1795a3(0x16d)])[_0x1795a3(0x15c)]('/')[_0x1795a3(0x153)](_0x138ad5=>_0x138ad5&&_0x138ad5[_0x1795a3(0x15b)]());return _0x1fdc6a[_0x1795a3(0x16d)]>0x1&&(_0x12d90d[_0x1795a3(0x16b)]=_0x1fdc6a[0x0][_0x1795a3(0x172)](),_0x1fdc6a[_0x1795a3(0x179)](0x0,0x1)),_0x12d90d['route']=('/'+_0x1fdc6a['join']('/'))[_0x1795a3(0x189)](/(\.ts|\.js)$/,'')[_0x1795a3(0x189)](/\/{2,}/g,'/')[_0x1795a3(0x175)](/[\/|A-Z]*[^A-Z]+/g)[_0x1795a3(0x17c)]('-')[_0x1795a3(0x172)]()[_0x1795a3(0x189)](/\/\-/g,'/'),_0x12d90d['route'][_0x1795a3(0x186)](_0x1795a3(0x16c))&&(_0x12d90d[_0x1795a3(0x166)]=_0x12d90d['route']['substring'](0x0,_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x16d)]-0x7)),_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x186)]('-controller')&&(_0x12d90d[_0x1795a3(0x166)]=_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x16e)](0x0,_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x16d)]-0xb)),_0x12d90d;}else{if(_0x5c4f70[_0x1795a3(0x188)](_0x1795a3(0x157))){const _0x2cf426=_0x5c4f70[_0x1795a3(0x16e)](0x0,_0x5c4f70[_0x1795a3(0x156)](_0x1795a3(0x165))+0x5),_0x114478=_0x5c4f70['substring'](_0x2cf426[_0x1795a3(0x16d)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x1795a3(0x15c)]('/')[0x0];if(_0x5c4f70[_0x1795a3(0x188)](_0x1795a3(0x157)+_0x114478+'/controller/')){const _0x279ea2=_0x5c4f70[_0x1795a3(0x16e)]((_0x2cf426+'/'+_0x114478+_0x1795a3(0x183))['length'])['split']('/')['filter'](_0x10a988=>_0x10a988&&_0x10a988[_0x1795a3(0x15b)]());return _0x279ea2['length']>0x1&&(_0x12d90d[_0x1795a3(0x16b)]=_0x279ea2[0x0][_0x1795a3(0x172)](),_0x279ea2[_0x1795a3(0x179)](0x0,0x1)),_0x12d90d[_0x1795a3(0x164)]=_0x114478,_0x12d90d['route']=('/'+_0x114478+'/'+_0x279ea2[_0x1795a3(0x17c)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x1795a3(0x189)](/\/{2,}/,'/')[_0x1795a3(0x175)](/[\/|A-Z]*[^A-Z]+/g)[_0x1795a3(0x17c)]('-')[_0x1795a3(0x172)]()[_0x1795a3(0x189)](/\/\-/g,'/'),_0x12d90d[_0x1795a3(0x166)]['endsWith'](_0x1795a3(0x16c))&&(_0x12d90d[_0x1795a3(0x166)]=_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x16e)](0x0,_0x12d90d['route'][_0x1795a3(0x16d)]-0x7)),_0x12d90d['route']['endsWith'](_0x1795a3(0x185))&&(_0x12d90d[_0x1795a3(0x166)]=_0x12d90d[_0x1795a3(0x166)]['substring'](0x0,_0x12d90d[_0x1795a3(0x166)][_0x1795a3(0x16d)]-0xb)),_0x12d90d;}throw new Error(_0x5c4f70+_0x1795a3(0x15d)+_0x114478+'/controller/文件下');}}throw new Error(_0x5c4f70+_0x1795a3(0x160));}function a3_0x3770(){const _0x4e3658=['defineProperty','/controller/','saveClassMetadata','-controller','endsWith','337635zqvimf','startsWith','replace','parseRoute','middlewareIgnore','2818143AAOaWN','filter','180870fEpvwy','rootpath','indexOf','apps/','__esModule','ACTION_KEY','getClassMetadata','trim','split','\x20文件请放在apps/','APPSCONFIG_KEY','Controller','\x20文件请放在app/controller/文件下','isArray','existsSync','../types/action','module','/apps/','route','84640JLiBKx','AppsConfigTmp','3ESEFHd','cwd','prefix','-action','length','substring','407DlIlcp','/config.','92dFznLw','toLowerCase','2866461ojbESF','app/controller/','match','filepath','saveModule','72580XHorhn','splice','6720qfGLvq','Action','join','tagName','middleware','12CLgKeb','1043kHSTgi','8PNCouq'];a3_0x3770=function(){return _0x4e3658;};return a3_0x3770();}exports[a3_0x555524(0x150)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x229f9b=a4_0x2f41;(function(_0x3cfda5,_0x30f6d0){const _0x3827f0=a4_0x2f41,_0x2a45e8=_0x3cfda5();while(!![]){try{const _0x41b5a0=-parseInt(_0x3827f0(0x172))/0x1+-parseInt(_0x3827f0(0x16e))/0x2*(parseInt(_0x3827f0(0x185))/0x3)+-parseInt(_0x3827f0(0x17b))/0x4*(-parseInt(_0x3827f0(0x170))/0x5)+parseInt(_0x3827f0(0x173))/0x6+parseInt(_0x3827f0(0x177))/0x7+parseInt(_0x3827f0(0x17c))/0x8+-parseInt(_0x3827f0(0x16a))/0x9;if(_0x41b5a0===_0x30f6d0)break;else _0x2a45e8['push'](_0x2a45e8['shift']());}catch(_0x269a20){_0x2a45e8['push'](_0x2a45e8['shift']());}}}(a4_0x5103,0xbffb4));function a4_0x5103(){const _0x1e8b2d=['toLowerCase','51IeViBq','filter','middleware','get','middlewareIgnore','8743572caNvol','RequestMapping','../types/action','validate','75522fcjIIi','ACTION_ROUTE_KEY','2601195fDMVNH','indexOf','608675wAPxCq','5972706JXLBzr','Validator','apimit','length','9257815qeZFFw','del','@anncic-api/validator','description','4qIuQTW','1361928hNOKqw','Api','attachClassMetadata','validationOptions','createCustomMethodDecorator','routerName','__esModule','delete'];a4_0x5103=function(){return _0x1e8b2d;};return a4_0x5103();}Object['defineProperty'](exports,a4_0x229f9b(0x182),{'value':!![]}),exports[a4_0x229f9b(0x17d)]=void 0x0;const validator_1=require(a4_0x229f9b(0x179)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x229f9b(0x16c));function Api(_0x1cbd25,_0x25e6b6=a4_0x229f9b(0x168),_0x26db14='/',_0x2b435e={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2df7c9,_0x14b86f,_0x50cca5)=>{const _0x98405b=a4_0x2f41;var _0x1b9768,_0x2d865a,_0x2bb09e;!_0x2b435e[_0x98405b(0x187)]&&(_0x2b435e[_0x98405b(0x187)]=[]);!((_0x1b9768=_0x2b435e===null||_0x2b435e===void 0x0?void 0x0:_0x2b435e[_0x98405b(0x16d)])===null||_0x1b9768===void 0x0?void 0x0:_0x1b9768[_0x98405b(0x17f)])&&(_0x2b435e[_0x98405b(0x16d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'utc'}});if(((_0x2d865a=_0x2b435e===null||_0x2b435e===void 0x0?void 0x0:_0x2b435e[_0x98405b(0x187)])===null||_0x2d865a===void 0x0?void 0x0:_0x2d865a['length'])>0x0&&((_0x2bb09e=_0x2b435e===null||_0x2b435e===void 0x0?void 0x0:_0x2b435e[_0x98405b(0x169)])===null||_0x2bb09e===void 0x0?void 0x0:_0x2bb09e[_0x98405b(0x176)])>0x0)for(let _0x58ec57 in _0x2b435e['middleware']){_0x2b435e[_0x98405b(0x169)][_0x98405b(0x171)](_0x2b435e[_0x98405b(0x187)][_0x58ec57])!==-0x1&&(_0x2b435e[_0x98405b(0x187)][_0x58ec57]=null);}_0x2b435e[_0x98405b(0x181)]=_0x1cbd25,(0x0,validator_1[_0x98405b(0x174)])(_0x2b435e[_0x98405b(0x16d)])(_0x2df7c9,_0x14b86f,_0x50cca5),(0x0,decorator_1[_0x98405b(0x16b)])(Object['assign'](_0x2b435e,{'path':_0x26db14,'requestMethod':(_0x25e6b6==_0x98405b(0x178)?_0x98405b(0x183):_0x25e6b6)[_0x98405b(0x184)]()}))(_0x2df7c9,_0x14b86f,_0x50cca5),(0x0,decorator_1[_0x98405b(0x17e)])(action_1[_0x98405b(0x16f)],{'path':_0x26db14,'method':_0x14b86f,'apimit':_0x2b435e['apimit'],'routerName':_0x2b435e[_0x98405b(0x181)],'description':_0x2b435e[_0x98405b(0x17a)],'middleware':(_0x2b435e['middleware']||[])[_0x98405b(0x186)](_0x1e5f7e=>!!_0x1e5f7e),'requestMethod':(_0x25e6b6==_0x98405b(0x178)?_0x98405b(0x183):_0x25e6b6)['toLowerCase']()},_0x2df7c9),(0x0,decorator_1[_0x98405b(0x180)])(action_1[_0x98405b(0x16f)],{'path':_0x26db14,'method':_0x14b86f,'apimit':_0x2b435e[_0x98405b(0x175)],'routerName':_0x2b435e[_0x98405b(0x181)],'description':_0x2b435e['description'],'middleware':(_0x2b435e[_0x98405b(0x187)]||[])['filter'](_0x2176b4=>!!_0x2176b4),'requestMethod':(_0x25e6b6==_0x98405b(0x178)?_0x98405b(0x183):_0x25e6b6)[_0x98405b(0x184)]()})(_0x2df7c9,_0x14b86f,_0x50cca5);};}function a4_0x2f41(_0x3b3853,_0x1acba0){const _0x510342=a4_0x5103();return a4_0x2f41=function(_0x2f4178,_0x54ccc4){_0x2f4178=_0x2f4178-0x168;let _0x165860=_0x510342[_0x2f4178];return _0x165860;},a4_0x2f41(_0x3b3853,_0x1acba0);}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x4d0c83=a5_0x47d5;(function(_0x36bafb,_0x5477fd){const _0x4ef7b3=a5_0x47d5,_0x56e3ae=_0x36bafb();while(!![]){try{const _0x3dc2cd=parseInt(_0x4ef7b3(0x15c))/0x1+-parseInt(_0x4ef7b3(0x163))/0x2*(-parseInt(_0x4ef7b3(0x155))/0x3)+-parseInt(_0x4ef7b3(0x151))/0x4*(parseInt(_0x4ef7b3(0x154))/0x5)+parseInt(_0x4ef7b3(0x15e))/0x6*(parseInt(_0x4ef7b3(0x15b))/0x7)+parseInt(_0x4ef7b3(0x14e))/0x8+parseInt(_0x4ef7b3(0x158))/0x9+-parseInt(_0x4ef7b3(0x14f))/0xa;if(_0x3dc2cd===_0x5477fd)break;else _0x56e3ae['push'](_0x56e3ae['shift']());}catch(_0x4fa6b3){_0x56e3ae['push'](_0x56e3ae['shift']());}}}(a5_0x1604,0x43ad8));Object[a5_0x4d0c83(0x160)](exports,'__esModule',{'value':!![]}),exports[a5_0x4d0c83(0x162)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x4d0c83(0x150)),ApitestService_1=require('../service/ApitestService');function a5_0x1604(){const _0x63223a=['10304LcNliL','get','ApitestService','40RpugJo','106179GTkUON','getApplicationContext','REQUEST_OBJ_CTX_KEY','2438433ZwlZkJ','value','app','889dFCcIC','371419hVyDjc','getAsync','17100UfbPfp','getConfig','defineProperty','isDevelopmentEnvironment','Apitest','2Jflnpu','1132296cbnLkZ','8834200hrgkUf','@midwayjs/core'];a5_0x1604=function(){return _0x63223a;};return a5_0x1604();}function Apitest(_0x1ab0d2='/apitest',_0x2e30d1){return(_0x426047,_0x49799f,_0x24d650)=>{const _0x14479a=a5_0x47d5;return(0x0,decorator_1['RequestMapping'])({'path':_0x1ab0d2,'requestMethod':_0x14479a(0x152)})(_0x426047,_0x49799f,_0x24d650),_0x24d650[_0x14479a(0x159)]=async function(..._0xf25c74){const _0x24211a=_0x14479a;var _0xcaa375;const _0x2f8f7e=(_0xcaa375=this[core_1[_0x24211a(0x157)]])===null||_0xcaa375===void 0x0?void 0x0:_0xcaa375[_0x24211a(0x15a)];if(_0x2f8f7e&&_0x2f8f7e[_0x24211a(0x15f)]('apitest')){const _0x364729=await _0x2f8f7e['getApplicationContext']()[_0x24211a(0x15d)](ApitestService_1[_0x24211a(0x153)]),_0x5a6ec4=await _0x2f8f7e[_0x24211a(0x156)]()[_0x24211a(0x15d)](core_1['MidwayEnvironmentService']);return _0x5a6ec4[_0x24211a(0x161)]()&&(_0x2e30d1['filepath']=!![]),await _0x364729['apidoc'](_0x2e30d1);}return'';},_0x24d650;};}function a5_0x47d5(_0x2657da,_0x299f5f){const _0x1604c3=a5_0x1604();return a5_0x47d5=function(_0x47d501,_0x109c5e){_0x47d501=_0x47d501-0x14e;let _0x206f83=_0x1604c3[_0x47d501];return _0x206f83;},a5_0x47d5(_0x2657da,_0x299f5f);}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x1dbad1=a6_0x2c1a;(function(_0x216e8e,_0x44846f){var _0x39a91f=a6_0x2c1a,_0x307c74=_0x216e8e();while(!![]){try{var _0x3c0a14=-parseInt(_0x39a91f(0x14a))/0x1*(-parseInt(_0x39a91f(0x144))/0x2)+parseInt(_0x39a91f(0x136))/0x3*(-parseInt(_0x39a91f(0x13e))/0x4)+-parseInt(_0x39a91f(0x148))/0x5+parseInt(_0x39a91f(0x145))/0x6+-parseInt(_0x39a91f(0x143))/0x7*(parseInt(_0x39a91f(0x137))/0x8)+parseInt(_0x39a91f(0x132))/0x9+parseInt(_0x39a91f(0x13a))/0xa;if(_0x3c0a14===_0x44846f)break;else _0x307c74['push'](_0x307c74['shift']());}catch(_0x343d4f){_0x307c74['push'](_0x307c74['shift']());}}}(a6_0x1115,0xd8b78));var __decorate=this&&this[a6_0x1dbad1(0x14e)]||function(_0x9d1fe,_0x2c448e,_0x3a3431,_0x100e25){var _0x4aee7a=a6_0x1dbad1,_0x3f2e86=arguments[_0x4aee7a(0x13f)],_0x1d9061=_0x3f2e86<0x3?_0x2c448e:_0x100e25===null?_0x100e25=Object[_0x4aee7a(0x134)](_0x2c448e,_0x3a3431):_0x100e25,_0x2405da;if(typeof Reflect===_0x4aee7a(0x14b)&&typeof Reflect[_0x4aee7a(0x13b)]===_0x4aee7a(0x147))_0x1d9061=Reflect[_0x4aee7a(0x13b)](_0x9d1fe,_0x2c448e,_0x3a3431,_0x100e25);else{for(var _0x518eec=_0x9d1fe[_0x4aee7a(0x13f)]-0x1;_0x518eec>=0x0;_0x518eec--)if(_0x2405da=_0x9d1fe[_0x518eec])_0x1d9061=(_0x3f2e86<0x3?_0x2405da(_0x1d9061):_0x3f2e86>0x3?_0x2405da(_0x2c448e,_0x3a3431,_0x1d9061):_0x2405da(_0x2c448e,_0x3a3431))||_0x1d9061;}return _0x3f2e86>0x3&&_0x1d9061&&Object[_0x4aee7a(0x133)](_0x2c448e,_0x3a3431,_0x1d9061),_0x1d9061;},__metadata=this&&this[a6_0x1dbad1(0x141)]||function(_0x190756,_0x39cb28){var _0x4aab30=a6_0x1dbad1;if(typeof Reflect===_0x4aab30(0x14b)&&typeof Reflect['metadata']===_0x4aab30(0x147))return Reflect[_0x4aab30(0x142)](_0x190756,_0x39cb28);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a6_0x1dbad1(0x138)]=void 0x0;function a6_0x1115(){var _0x4d57f=['length','signature验证失败','__metadata','metadata','343hSovBd','2Awcoft','7415190mJXLkn','HEADERS_DEVICE','function','3163930puostI','checkcode验证失败','182555sVPjzY','object','design:type','请使用正确的设备','__decorate','3645711jitwds','defineProperty','getOwnPropertyDescriptor','HEADERS_SIGNATURE','15RmEDPf','77144puIUVZ','ApiError','HEADERS_CHECKCODE','16018310QpOMSB','decorate','TIMEOUT','HEADERS_LACK','1145892AVDuXG'];a6_0x1115=function(){return _0x4d57f;};return a6_0x1115();}class ApiError{}function a6_0x2c1a(_0x42013a,_0xb71c88){var _0x1115d6=a6_0x1115();return a6_0x2c1a=function(_0x2c1a83,_0x4f1b4c){_0x2c1a83=_0x2c1a83-0x132;var _0x1e0be0=_0x1115d6[_0x2c1a83];return _0x1e0be0;},a6_0x2c1a(_0x42013a,_0xb71c88);}ApiError[a6_0x1dbad1(0x13c)]=0x3d7e31,ApiError[a6_0x1dbad1(0x13d)]=0x3d7e32,ApiError[a6_0x1dbad1(0x146)]=0x3d7e33,ApiError[a6_0x1dbad1(0x139)]=0x3d7e34,ApiError[a6_0x1dbad1(0x135)]=0x3d7e35,__decorate([AnnErrorMsg('网络繁忙,请稍后重试'),__metadata('design:type',Object)],ApiError,a6_0x1dbad1(0x13c),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a6_0x1dbad1(0x13d),void 0x0),__decorate([AnnErrorMsg(a6_0x1dbad1(0x14d)),__metadata('design:type',Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x1dbad1(0x149)),__metadata(a6_0x1dbad1(0x14c),Object)],ApiError,a6_0x1dbad1(0x139),void 0x0),__decorate([AnnErrorMsg(a6_0x1dbad1(0x140)),__metadata(a6_0x1dbad1(0x14c),Object)],ApiError,a6_0x1dbad1(0x135),void 0x0),exports[a6_0x1dbad1(0x138)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x54a572=a7_0x4b35;(function(_0x5a6173,_0x5f17cb){const _0x1a1b65=a7_0x4b35,_0xcb18eb=_0x5a6173();while(!![]){try{const _0x427bb3=parseInt(_0x1a1b65(0x18e))/0x1+-parseInt(_0x1a1b65(0x198))/0x2+parseInt(_0x1a1b65(0x199))/0x3+parseInt(_0x1a1b65(0x197))/0x4+parseInt(_0x1a1b65(0x196))/0x5+parseInt(_0x1a1b65(0x190))/0x6*(-parseInt(_0x1a1b65(0x18d))/0x7)+parseInt(_0x1a1b65(0x193))/0x8*(-parseInt(_0x1a1b65(0x18b))/0x9);if(_0x427bb3===_0x5f17cb)break;else _0xcb18eb['push'](_0xcb18eb['shift']());}catch(_0x477613){_0xcb18eb['push'](_0xcb18eb['shift']());}}}(a7_0x416c,0x44d2b));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x54a572(0x18c)]=void 0x0;function a7_0x4b35(_0x24f343,_0xbcd70f){const _0x416cca=a7_0x416c();return a7_0x4b35=function(_0x4b357e,_0x514ad9){_0x4b357e=_0x4b357e-0x18b;let _0x350371=_0x416cca[_0x4b357e];return _0x350371;},a7_0x4b35(_0x24f343,_0xbcd70f);}const decorator_1=require('@midwayjs/decorator'),action_1=require(a7_0x54a572(0x192));function getAppsConfig(_0x401a40){const _0x59e82b=a7_0x54a572,_0x1e0d18=(0x0,decorator_1[_0x59e82b(0x195)])(action_1[_0x59e82b(0x194)],action_1[_0x59e82b(0x191)])||{};return _0x401a40?lodash[_0x59e82b(0x18f)](_0x1e0d18,_0x401a40):_0x1e0d18;}exports['getAppsConfig']=getAppsConfig;function a7_0x416c(){const _0x458254=['../types/action','3160sZDqnJ','APPSCONFIG_KEY','getClassMetadata','640260mXpSjz','1709904JMjDqP','370890FoMgRK','268242KLczyQ','5436ZryORX','getAppsConfig','2051iWwzkE','397053loiXux','get','6882euiYzr','AppsConfigTmp'];a7_0x416c=function(){return _0x458254;};return a7_0x416c();}
|
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_0x4f8726=a8_0x1e1d;(function(_0xdeb66c,_0x340fb8){const _0x69cb84=a8_0x1e1d,_0xcdd26a=_0xdeb66c();while(!![]){try{const _0x4dcb54=-parseInt(_0x69cb84(0x140))/0x1+-parseInt(_0x69cb84(0x14c))/0x2*(-parseInt(_0x69cb84(0x174))/0x3)+-parseInt(_0x69cb84(0x151))/0x4*(parseInt(_0x69cb84(0x143))/0x5)+-parseInt(_0x69cb84(0x15e))/0x6+parseInt(_0x69cb84(0x177))/0x7*(-parseInt(_0x69cb84(0x176))/0x8)+parseInt(_0x69cb84(0x136))/0x9+parseInt(_0x69cb84(0x13f))/0xa;if(_0x4dcb54===_0x340fb8)break;else _0xcdd26a['push'](_0xcdd26a['shift']());}catch(_0x2f65d6){_0xcdd26a['push'](_0xcdd26a['shift']());}}}(a8_0x29e3,0x22c98));Object[a8_0x4f8726(0x187)](exports,'__esModule',{'value':!![]}),exports[a8_0x4f8726(0x155)]=void 0x0;const lodash_1=require(a8_0x4f8726(0x145)),validator_1=require(a8_0x4f8726(0x16a)),decorator_1=require(a8_0x4f8726(0x14b)),decorator_2=require(a8_0x4f8726(0x14b)),decorator_3=require(a8_0x4f8726(0x14b)),action_1=require('../types/action');function getRoutes(_0x2baf1a={'prefix':'/','module':![]}){const _0x4c4af3=a8_0x4f8726;var _0x4e6e55,_0x390935;const _0x418a18=(0x0,decorator_3['listModule'])(action_1[_0x4c4af3(0x13b)]),_0x4d7085={},_0x2e4a92=Array['isArray'](_0x2baf1a['filter']||[])?_0x2baf1a[_0x4c4af3(0x132)]||[]:[_0x2baf1a[_0x4c4af3(0x132)]];_0x7b483:for(const _0x17200c of _0x418a18){let _0x19efeb=(0x0,decorator_3[_0x4c4af3(0x170)])(action_1[_0x4c4af3(0x13b)],_0x17200c),_0xbd8b62=(0x0,decorator_3[_0x4c4af3(0x170)])(action_1[_0x4c4af3(0x17c)],_0x17200c);if(_0x19efeb&&_0xbd8b62){let _0x296361=_0x19efeb[_0x4c4af3(0x15f)],_0x2dade9={};if(_0x2baf1a[_0x4c4af3(0x188)]&&(0x0,lodash_1[_0x4c4af3(0x159)])(_0x19efeb,_0x4c4af3(0x188),![])!=_0x2baf1a[_0x4c4af3(0x188)])continue _0x7b483;else{if(_0x2baf1a[_0x4c4af3(0x188)]===![]&&!!(0x0,lodash_1[_0x4c4af3(0x159)])(_0x19efeb,'module',null))continue _0x7b483;}if(_0x2baf1a[_0x4c4af3(0x15f)]&&!_0x296361[_0x4c4af3(0x146)](_0x2baf1a['prefix']))continue _0x7b483;_0x296361!=='/'?(_0x2dade9[_0x4c4af3(0x189)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x18a)])||(/^\//[_0x4c4af3(0x168)](_0x296361)?_0x296361[_0x4c4af3(0x164)]('/')[0x1]:_0x296361),_0x2dade9[_0x4c4af3(0x13a)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)]['description'])||_0x2dade9[_0x4c4af3(0x189)],_0x2dade9[_0x4c4af3(0x16d)]=[]):(_0x2dade9[_0x4c4af3(0x189)]=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x18a)])||_0x4c4af3(0x18b),_0x2dade9['description']=(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x14f)][_0x4c4af3(0x13a)])||'',_0x2dade9['routes']=[]);_0x2baf1a['filepath']&&(_0x2dade9[_0x4c4af3(0x150)]=_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x150)]);(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x154)])&&(_0x2dade9['prefix']=_0x19efeb[_0x4c4af3(0x154)]);(_0x19efeb===null||_0x19efeb===void 0x0?void 0x0:_0x19efeb[_0x4c4af3(0x188)])&&(_0x2dade9[_0x4c4af3(0x188)]=_0x19efeb['module']);let _0x3bd0bd=(0x0,decorator_3[_0x4c4af3(0x170)])(decorator_2[_0x4c4af3(0x141)],_0x17200c)||{};if(typeof _0xbd8b62[Symbol[_0x4c4af3(0x15a)]]===_0x4c4af3(0x16f))for(let _0x3b8eed of _0xbd8b62){let _0x4eb498={};_0x4eb498[_0x4c4af3(0x13c)]=_0x3b8eed['requestMethod'],_0x4eb498[_0x4c4af3(0x165)]=(_0x296361+_0x3b8eed[_0x4c4af3(0x18c)])[_0x4c4af3(0x15b)](/\/{1,}/,'/'),_0x4eb498[_0x4c4af3(0x189)]=(_0x3b8eed===null||_0x3b8eed===void 0x0?void 0x0:_0x3b8eed['routerName'])||_0x2dade9[_0x4c4af3(0x189)]||'default',_0x4eb498[_0x4c4af3(0x13a)]=(_0x3b8eed===null||_0x3b8eed===void 0x0?void 0x0:_0x3b8eed[_0x4c4af3(0x13a)])||'',_0x4eb498[_0x4c4af3(0x162)]=[];if(!(0x0,lodash_1['startsWith'])(_0x4eb498[_0x4c4af3(0x165)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x4eb498[_0x4c4af3(0x165)],_0x4c4af3(0x153))&&_0x2e4a92[_0x4c4af3(0x17b)](_0x4eb498[_0x4c4af3(0x165)])===-0x1){if(!(_0x2baf1a===null||_0x2baf1a===void 0x0?void 0x0:_0x2baf1a['noreq'])){let _0x4736df=(0x0,decorator_3[_0x4c4af3(0x16e)])(new _0x17200c(),_0x3b8eed[_0x4c4af3(0x13c)]);for(const _0x5ba86d in _0x4736df){let _0x58eb7f=(_0x4e6e55=_0x3bd0bd[_0x3b8eed[_0x4c4af3(0x13c)]])===null||_0x4e6e55===void 0x0?void 0x0:_0x4e6e55[_0x4c4af3(0x134)](_0x2861b6=>_0x2861b6[_0x4c4af3(0x17e)]==_0x5ba86d&&_0x2861b6[_0x4c4af3(0x171)]===decorator_2[_0x4c4af3(0x169)]&&(_0x2861b6===null||_0x2861b6===void 0x0?void 0x0:_0x2861b6['metadata']));if(_0x58eb7f===null||_0x58eb7f===void 0x0?void 0x0:_0x58eb7f[_0x4c4af3(0x182)]){let _0x6771dd=convertTypeToString(_0x58eb7f[_0x4c4af3(0x182)][_0x4c4af3(0x137)]||0x0);if([_0x4c4af3(0x142),'body'][_0x4c4af3(0x17b)](_0x6771dd)!=-0x1&&_0x58eb7f[_0x4c4af3(0x182)]['propertyData'][_0x4c4af3(0x17b)](':')==-0x1&&!_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x134)](_0x3a8063=>_0x3a8063[_0x4c4af3(0x171)]==_0x58eb7f[_0x4c4af3(0x182)]['propertyData']))_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x167)]({'key':_0x58eb7f[_0x4c4af3(0x182)]['propertyData'],'title':_0x58eb7f[_0x4c4af3(0x182)][_0x4c4af3(0x139)],'type':convertSchemaType(_0x4736df[_0x58eb7f[_0x4c4af3(0x17e)]][_0x4c4af3(0x157)]),'required':![],'default':'','desc':''});else{if(_0x6771dd=='file'){let _0x433094=((_0x390935=_0x58eb7f===null||_0x58eb7f===void 0x0?void 0x0:_0x58eb7f[_0x4c4af3(0x182)])===null||_0x390935===void 0x0?void 0x0:_0x390935['propertyData'])||_0x4c4af3(0x185);_0x433094[_0x4c4af3(0x17b)](':')==-0x1&&!_0x4eb498['request'][_0x4c4af3(0x134)](_0x328258=>_0x328258['key']==_0x433094&&_0x328258[_0x4c4af3(0x137)]=='file')&&_0x4eb498[_0x4c4af3(0x162)][_0x4c4af3(0x167)]({'key':_0x433094,'title':_0x4c4af3(0x17f)+_0x433094,'type':_0x4c4af3(0x185),'required':!![],'default':'','desc':''});}}}else{const _0x4b2283=(0x0,decorator_3[_0x4c4af3(0x163)])(validator_1[_0x4c4af3(0x14d)],_0x4736df[_0x5ba86d]);_0x4b2283&&_0x4eb498['request'][_0x4c4af3(0x167)](...getJoiRequest(_0x4b2283));}}}_0x2dade9[_0x4c4af3(0x16d)][_0x4c4af3(0x167)](_0x4eb498);}}if(_0x2dade9['routes'][_0x4c4af3(0x180)]>0x0){let _0x4aeaaf=_0x4d7085[_0x296361];_0x4aeaaf?(_0x4aeaaf[_0x4c4af3(0x189)]!=_0x2dade9[_0x4c4af3(0x189)]&&(_0x4aeaaf[_0x4c4af3(0x189)]=_0x4aeaaf[_0x4c4af3(0x189)]+','+_0x2dade9[_0x4c4af3(0x189)]),_0x4aeaaf[_0x4c4af3(0x13a)]!=_0x2dade9[_0x4c4af3(0x13a)]&&(_0x4aeaaf[_0x4c4af3(0x13a)]=_0x4aeaaf['description']+','+_0x2dade9[_0x4c4af3(0x13a)]),_0x4aeaaf[_0x4c4af3(0x16d)]=_0x4aeaaf[_0x4c4af3(0x16d)][_0x4c4af3(0x149)](_0x2dade9[_0x4c4af3(0x16d)]),_0x4d7085[_0x296361]=_0x4aeaaf):_0x4d7085[_0x296361]=_0x2dade9;}}}return _0x4d7085;}exports[a8_0x4f8726(0x155)]=getRoutes;function a8_0x1e1d(_0x3b1cf6,_0x34272d){const _0x29e3d6=a8_0x29e3();return a8_0x1e1d=function(_0x1e1dd9,_0x3f40d7){_0x1e1dd9=_0x1e1dd9-0x131;let _0x118485=_0x29e3d6[_0x1e1dd9];return _0x118485;},a8_0x1e1d(_0x3b1cf6,_0x34272d);}function getJoiRequest(_0x2cca52){const _0x575b69=a8_0x4f8726,_0x1766de=[];for(let _0x50aeb1 in _0x2cca52){const _0x324143={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x519cfd=typeof _0x2cca52[_0x50aeb1][_0x575b69(0x160)]==_0x575b69(0x16f)?_0x2cca52[_0x50aeb1]['describe']():_0x2cca52[_0x50aeb1];_0x324143[_0x575b69(0x171)]=_0x50aeb1,_0x324143[_0x575b69(0x137)]=_0x519cfd['type'],_0x324143[_0x575b69(0x18d)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,_0x575b69(0x138),_0x50aeb1),_0x324143[_0x575b69(0x18b)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,'flags.default',''),_0x324143[_0x575b69(0x148)]=(0x0,lodash_1[_0x575b69(0x159)])(_0x519cfd,_0x575b69(0x183),'')=='required',_0x324143[_0x575b69(0x13a)]=(0x0,lodash_1['get'])(_0x519cfd,_0x575b69(0x131),'');if(_0x519cfd[_0x575b69(0x137)]==_0x575b69(0x14a))_0x324143['children']=getJoiRequest(_0x519cfd[_0x575b69(0x17d)]);else _0x519cfd[_0x575b69(0x137)]==_0x575b69(0x14e)&&_0x519cfd[_0x575b69(0x147)]&&Array[_0x575b69(0x15d)](_0x519cfd['items'])&&_0x519cfd[_0x575b69(0x147)][0x0]&&console[_0x575b69(0x172)](_0x50aeb1+'-array',_0x519cfd);_0x519cfd[_0x575b69(0x178)]&&Array[_0x575b69(0x15d)](_0x519cfd[_0x575b69(0x178)])&&_0x519cfd['allow'][_0x575b69(0x180)]>0x0&&(_0x324143[_0x575b69(0x13a)]='只允许:['+_0x519cfd[_0x575b69(0x178)][_0x575b69(0x16b)](',')+'];'+_0x324143[_0x575b69(0x13a)]);if(_0x324143['key']&&_0x324143[_0x575b69(0x137)]){const _0x35d45f={};for(const _0x220acd of _0x519cfd[_0x575b69(0x173)]||[]){if(_0x220acd[_0x575b69(0x157)]===_0x575b69(0x16c)&&_0x220acd['args'])_0x35d45f[_0x575b69(0x16c)]=_0x220acd[_0x575b69(0x133)]['limit'];else _0x220acd[_0x575b69(0x157)]===_0x575b69(0x179)&&(_0x35d45f[_0x575b69(0x179)]=_0x220acd[_0x575b69(0x133)][_0x575b69(0x13d)]);}_0x324143[_0x575b69(0x173)]=_0x35d45f;}_0x324143[_0x575b69(0x171)]&&_0x324143[_0x575b69(0x18d)]&&_0x1766de[_0x575b69(0x167)](_0x324143);}return _0x1766de;}function convertSchemaType(_0x144d82){const _0x369ab4=a8_0x4f8726;switch(_0x144d82){case _0x369ab4(0x158):return _0x369ab4(0x14a);case _0x369ab4(0x13e):return _0x369ab4(0x156);case _0x369ab4(0x166):return _0x369ab4(0x15c);case _0x369ab4(0x152):return _0x369ab4(0x184);case _0x369ab4(0x175):return'file';default:return _0x369ab4(0x184);}}function a8_0x29e3(){const _0x1d59f5=['flags.presence','string','file','FIELDS','defineProperty','module','summary','tagName','default','path','title','flags.description','filter','args','find','QUERY','2014380xOdIXN','type','flags.label','propertyData','description','ACTION_KEY','method','limit','Boolean','3700730IILwmi','186628iSFUcJ','INJECT_CUSTOM_PARAM','query','10UnqiRZ','RouteParamTypes','lodash','startsWith','items','required','concat','object','@midwayjs/decorator','18566VemjMg','RULES_KEY','array','routerOptions','filepath','268268gUyIKM','String','/static/apitest','pprefix','getRoutes','boolean','name','Object','get','iterator','replace','number','isArray','1538772mTTpsA','prefix','describe','body','request','getClassExtendedMetadata','split','route','Number','push','test','WEB_ROUTER_PARAM_KEY','@anncic-api/validator','join','min','routes','getMethodParamTypes','function','getClassMetadata','key','log','rules','57aqNALO','File','23792iLqWCF','119XZglTb','allow','max','header','indexOf','ACTION_ROUTE_KEY','keys','parameterIndex','文件上传-','length','BODY','metadata'];a8_0x29e3=function(){return _0x1d59f5;};return a8_0x29e3();}function convertTypeToString(_0x8c712a){const _0x5b6d38=a8_0x4f8726;switch(_0x8c712a){case decorator_1[_0x5b6d38(0x144)]['HEADERS']:return _0x5b6d38(0x17a);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x135)]:return _0x5b6d38(0x142);case decorator_1[_0x5b6d38(0x144)]['PARAM']:return _0x5b6d38(0x18c);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x181)]:return _0x5b6d38(0x161);case decorator_1[_0x5b6d38(0x144)][_0x5b6d38(0x186)]:case decorator_1['RouteParamTypes']['FILESSTREAM']:case decorator_1[_0x5b6d38(0x144)]['FILESTREAM']:return _0x5b6d38(0x185);default:return _0x5b6d38(0x17a);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a9_0x4ffb(_0x336840,_0x1f456a){var _0x1ffd7e=a9_0x1ffd();return a9_0x4ffb=function(_0x4ffb9e,_0x56410e){_0x4ffb9e=_0x4ffb9e-0xb8;var _0x3f33ea=_0x1ffd7e[_0x4ffb9e];return _0x3f33ea;},a9_0x4ffb(_0x336840,_0x1f456a);}function a9_0x1ffd(){var _0x101856=['ExcelService','writable','./types/common','Api','Query','@anncic-api/cache','Action','Headers','Init','get','@midwayjs/decorator','./service/ApiService','Config','getRoutes','ValidatorService','Logger','__exportStar','Provide','1424HotVWM','Scope','getAppsConfig','6UZkFBt','Inject','Param','./service/ExcelService','Fields','./exception/ApiError','346465OXNvwR','default','ScopeEnum','./service/ApitestService','ApiService','ValidatorError','create','defineProperty','@anncic-api/event','Apitest','call','Files','prototype','21790LyxXPW','./configuration','1395vngIQy','Configuration','./helper/getAppsConfig','ApiError','CustomConfiguration','EventService','502465fhbQBy','File','QueueService','296770FNMaaL','./decorator/Action','Body','configurable','@midwayjs/task','CacheService','974808JLFyLp','hasOwnProperty','App','__esModule','__createBinding','10AZDKXg','1018323QzUvfa'];a9_0x1ffd=function(){return _0x101856;};return a9_0x1ffd();}var a9_0x443448=a9_0x4ffb;(function(_0x380702,_0x1a5516){var _0x309cc3=a9_0x4ffb,_0x37ffc7=_0x380702();while(!![]){try{var _0x7d332d=-parseInt(_0x309cc3(0xde))/0x1+parseInt(_0x309cc3(0xe9))/0x2+parseInt(_0x309cc3(0xe0))/0x3*(-parseInt(_0x309cc3(0xc8))/0x4)+-parseInt(_0x309cc3(0xe6))/0x5*(-parseInt(_0x309cc3(0xcb))/0x6)+parseInt(_0x309cc3(0xd1))/0x7+-parseInt(_0x309cc3(0xef))/0x8+-parseInt(_0x309cc3(0xf5))/0x9*(-parseInt(_0x309cc3(0xf4))/0xa);if(_0x7d332d===_0x1a5516)break;else _0x37ffc7['push'](_0x37ffc7['shift']());}catch(_0x16c708){_0x37ffc7['push'](_0x37ffc7['shift']());}}}(a9_0x1ffd,0x18fc3));var __createBinding=this&&this[a9_0x443448(0xf3)]||(Object[a9_0x443448(0xd7)]?function(_0x1a261d,_0x48c957,_0x10e8f9,_0x42b91a){var _0x1acb5e=a9_0x443448;if(_0x42b91a===undefined)_0x42b91a=_0x10e8f9;var _0x5607fd=Object['getOwnPropertyDescriptor'](_0x48c957,_0x10e8f9);(!_0x5607fd||(_0x1acb5e(0xbf)in _0x5607fd?!_0x48c957['__esModule']:_0x5607fd[_0x1acb5e(0xf7)]||_0x5607fd[_0x1acb5e(0xec)]))&&(_0x5607fd={'enumerable':!![],'get':function(){return _0x48c957[_0x10e8f9];}}),Object['defineProperty'](_0x1a261d,_0x42b91a,_0x5607fd);}:function(_0x1d3563,_0x3e4f1d,_0x1b53be,_0x398eb0){if(_0x398eb0===undefined)_0x398eb0=_0x1b53be;_0x1d3563[_0x398eb0]=_0x3e4f1d[_0x1b53be];}),__exportStar=this&&this[a9_0x443448(0xc6)]||function(_0x1892d9,_0x26be58){var _0x7994ad=a9_0x443448;for(var _0x48cb66 in _0x1892d9)if(_0x48cb66!==_0x7994ad(0xd2)&&!Object[_0x7994ad(0xdd)][_0x7994ad(0xf0)][_0x7994ad(0xdb)](_0x26be58,_0x48cb66))__createBinding(_0x26be58,_0x1892d9,_0x48cb66);};Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xf2),{'value':!![]}),exports[a9_0x443448(0xca)]=exports[a9_0x443448(0xd3)]=exports[a9_0x443448(0xc9)]=exports[a9_0x443448(0xcc)]=exports[a9_0x443448(0xc7)]=exports['Logger']=exports[a9_0x443448(0xc2)]=exports['App']=exports['Init']=exports[a9_0x443448(0xbd)]=exports['Query']=exports['Param']=exports[a9_0x443448(0xeb)]=exports[a9_0x443448(0xcf)]=exports[a9_0x443448(0xdc)]=exports[a9_0x443448(0xe7)]=exports[a9_0x443448(0xe1)]=exports[a9_0x443448(0xc4)]=exports['ValidatorError']=exports['ExcelService']=exports[a9_0x443448(0xd5)]=exports[a9_0x443448(0xe5)]=exports[a9_0x443448(0xee)]=exports[a9_0x443448(0xe8)]=exports[a9_0x443448(0xe3)]=exports[a9_0x443448(0xc3)]=exports[a9_0x443448(0xda)]=exports['Action']=exports[a9_0x443448(0xb9)]=void 0x0;const getAppsConfig_1=require(a9_0x443448(0xe2));Object[a9_0x443448(0xd8)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x443448(0xb8)),exports),__exportStar(require(a9_0x443448(0xd4)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a9_0x443448(0xd8)](exports,'Api',{'enumerable':!![],'get':function(){var _0x3cab6e=a9_0x443448;return ActionApi_1[_0x3cab6e(0xb9)];}});var Action_1=require(a9_0x443448(0xea));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xbc),{'enumerable':!![],'get':function(){var _0x3f158c=a9_0x443448;return Action_1[_0x3f158c(0xbc)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object['defineProperty'](exports,a9_0x443448(0xda),{'enumerable':!![],'get':function(){var _0x550e30=a9_0x443448;return ActionApitest_1[_0x550e30(0xda)];}});var getRoutes_1=require('./helper/getRoutes');Object['defineProperty'](exports,a9_0x443448(0xc3),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x443448(0xd0));Object['defineProperty'](exports,a9_0x443448(0xe3),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require(a9_0x443448(0xed));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xe8),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0x443448(0xbb));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xee),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x443448(0xd9));Object[a9_0x443448(0xd8)](exports,'EventService',{'enumerable':!![],'get':function(){var _0xefabab=a9_0x443448;return event_1[_0xefabab(0xe5)];}});var ApiService_1=require(a9_0x443448(0xc1));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xd5),{'enumerable':!![],'get':function(){var _0x24af58=a9_0x443448;return ApiService_1[_0x24af58(0xd5)];}});var ExcelService_1=require(a9_0x443448(0xce));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xf6),{'enumerable':!![],'get':function(){var _0x591e6e=a9_0x443448;return ExcelService_1[_0x591e6e(0xf6)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xd6),{'enumerable':!![],'get':function(){var _0x2b3a1d=a9_0x443448;return validator_1[_0x2b3a1d(0xd6)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xc4),{'enumerable':!![],'get':function(){var _0xe5515=a9_0x443448;return validator_1[_0xe5515(0xc4)];}});var configuration_1=require(a9_0x443448(0xdf));Object[a9_0x443448(0xd8)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x119bf3=a9_0x443448;return configuration_1[_0x119bf3(0xe4)];}});var decorator_1=require(a9_0x443448(0xc0));Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xe7),{'enumerable':!![],'get':function(){var _0x428ad3=a9_0x443448;return decorator_1[_0x428ad3(0xe7)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xdc),{'enumerable':!![],'get':function(){var _0x4283cd=a9_0x443448;return decorator_1[_0x4283cd(0xdc)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xcf),{'enumerable':!![],'get':function(){var _0x3e842d=a9_0x443448;return decorator_1[_0x3e842d(0xcf)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xeb),{'enumerable':!![],'get':function(){var _0x17bbc2=a9_0x443448;return decorator_1[_0x17bbc2(0xeb)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xcd),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object['defineProperty'](exports,a9_0x443448(0xba),{'enumerable':!![],'get':function(){var _0x1fab67=a9_0x443448;return decorator_1[_0x1fab67(0xba)];}}),Object['defineProperty'](exports,a9_0x443448(0xbd),{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,a9_0x443448(0xbe),{'enumerable':!![],'get':function(){var _0x33ee5e=a9_0x443448;return decorator_1[_0x33ee5e(0xbe)];}});var decorator_2=require('@midwayjs/decorator');Object['defineProperty'](exports,a9_0x443448(0xf1),{'enumerable':!![],'get':function(){var _0x223773=a9_0x443448;return decorator_2[_0x223773(0xf1)];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xc2),{'enumerable':!![],'get':function(){var _0x18b23a=a9_0x443448;return decorator_2[_0x18b23a(0xc2)];}}),Object[a9_0x443448(0xd8)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x269405=a9_0x443448;return decorator_2[_0x269405(0xc5)];}}),Object[a9_0x443448(0xd8)](exports,'Provide',{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xcc),{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object[a9_0x443448(0xd8)](exports,a9_0x443448(0xc9),{'enumerable':!![],'get':function(){var _0x377444=a9_0x443448;return decorator_2[_0x377444(0xc9)];}}),Object[a9_0x443448(0xd8)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x2c65e4=a9_0x443448;return decorator_2[_0x2c65e4(0xd3)];}}),global[a9_0x443448(0xca)]=getAppsConfig_1[a9_0x443448(0xca)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x35aca6=a10_0x3c22;(function(_0x11ee4e,_0x46360c){var _0x4ee0d0=a10_0x3c22,_0x462b4a=_0x11ee4e();while(!![]){try{var _0x532918=parseInt(_0x4ee0d0(0x150))/0x1*(parseInt(_0x4ee0d0(0x145))/0x2)+-parseInt(_0x4ee0d0(0x16c))/0x3+parseInt(_0x4ee0d0(0x155))/0x4*(parseInt(_0x4ee0d0(0x135))/0x5)+-parseInt(_0x4ee0d0(0x148))/0x6+parseInt(_0x4ee0d0(0x152))/0x7+-parseInt(_0x4ee0d0(0x13d))/0x8*(-parseInt(_0x4ee0d0(0x146))/0x9)+-parseInt(_0x4ee0d0(0x162))/0xa;if(_0x532918===_0x46360c)break;else _0x462b4a['push'](_0x462b4a['shift']());}catch(_0x3df7ba){_0x462b4a['push'](_0x462b4a['shift']());}}}(a10_0x21c6,0x45b96));var __decorate=this&&this[a10_0x35aca6(0x161)]||function(_0x343d07,_0x3993cf,_0x586b84,_0x384849){var _0x24736f=a10_0x35aca6,_0x1b31ca=arguments[_0x24736f(0x168)],_0x4dfa60=_0x1b31ca<0x3?_0x3993cf:_0x384849===null?_0x384849=Object['getOwnPropertyDescriptor'](_0x3993cf,_0x586b84):_0x384849,_0x286616;if(typeof Reflect===_0x24736f(0x142)&&typeof Reflect['decorate']===_0x24736f(0x16b))_0x4dfa60=Reflect[_0x24736f(0x137)](_0x343d07,_0x3993cf,_0x586b84,_0x384849);else{for(var _0x1268d7=_0x343d07['length']-0x1;_0x1268d7>=0x0;_0x1268d7--)if(_0x286616=_0x343d07[_0x1268d7])_0x4dfa60=(_0x1b31ca<0x3?_0x286616(_0x4dfa60):_0x1b31ca>0x3?_0x286616(_0x3993cf,_0x586b84,_0x4dfa60):_0x286616(_0x3993cf,_0x586b84))||_0x4dfa60;}return _0x1b31ca>0x3&&_0x4dfa60&&Object[_0x24736f(0x138)](_0x3993cf,_0x586b84,_0x4dfa60),_0x4dfa60;},__metadata=this&&this[a10_0x35aca6(0x151)]||function(_0x2a87d5,_0x136e2f){var _0x1b3447=a10_0x35aca6;if(typeof Reflect===_0x1b3447(0x142)&&typeof Reflect['metadata']===_0x1b3447(0x16b))return Reflect['metadata'](_0x2a87d5,_0x136e2f);};Object[a10_0x35aca6(0x138)](exports,a10_0x35aca6(0x139),{'value':!![]}),exports[a10_0x35aca6(0x163)]=void 0x0;const crypto_js_1=require(a10_0x35aca6(0x159)),decorator_1=require('@midwayjs/decorator'),ApiError_1=require('../exception/ApiError');function a10_0x21c6(){var _0x6bff75=['ApiError','config','34cBIpyV','1143qLFbTr','缺少头信息:signature','3087024HeiEwQ','timeout','secret','fromEntries','push','token','MD5','toString','30323uEqktB','__metadata','591738XLYXni','HEADERS_CHECKCODE','logintime','548280QCBhOh','anncicapi','undefined','getsign','crypto-js','signature','device','Singleton','HEADERS_SIGNATURE','checkcode','requesttime','缺少头信息:','__decorate','2738060douXLL','ApiService','sort','now','getcheck','Provide','length','entries','HEADERS_DEVICE','function','101073GPaPDl','devices','10DFqBxM','password','decorate','defineProperty','__esModule','HEADERS_LACK','Scope','secret=','14704sykfUY','TIMEOUT','toLowerCase','checksign','map','object'];a10_0x21c6=function(){return _0x6bff75;};return a10_0x21c6();}function a10_0x3c22(_0x38b9b0,_0x38542e){var _0x21c623=a10_0x21c6();return a10_0x3c22=function(_0x3c2218,_0x402962){_0x3c2218=_0x3c2218-0x135;var _0xcd383f=_0x21c623[_0x3c2218];return _0xcd383f;},a10_0x3c22(_0x38b9b0,_0x38542e);}let ApiService=class ApiService{[a10_0x35aca6(0x136)](_0x2f970a){var _0x49b9cc=a10_0x35aca6,_0x4f6d6b;return _0x2f970a?(0x0,crypto_js_1[_0x49b9cc(0x14e)])(_0x2f970a+(0x0,crypto_js_1[_0x49b9cc(0x14e)])((0x0,crypto_js_1[_0x49b9cc(0x14e)])(_0x2f970a)['toString']()+((_0x4f6d6b=this['config'])===null||_0x4f6d6b===void 0x0?void 0x0:_0x4f6d6b['password']))['toString']())['toString']():'';}[a10_0x35aca6(0x166)](_0xaad6d,_0x320a1d,_0x31f454=Date[a10_0x35aca6(0x165)]()){var _0x260a1a=a10_0x35aca6;return{'Token':_0xaad6d,'Logintime':_0x31f454,'Checkcode':this[_0x260a1a(0x15e)](_0xaad6d,_0x320a1d,_0x31f454)};}[a10_0x35aca6(0x158)](_0x1a7201={}){var _0x37f814=a10_0x35aca6;const _0x4dc40b=[],_0x1c6d29=Object[_0x37f814(0x14b)](Object[_0x37f814(0x169)](_0x1a7201)[_0x37f814(0x141)](_0x2eff68=>[_0x2eff68[0x0][_0x37f814(0x13f)](),_0x2eff68[0x1]]));for(let _0x27375e of[_0x37f814(0x15b),_0x37f814(0x15f),_0x37f814(0x14d),'logintime',_0x37f814(0x15e)]){if(typeof _0x1c6d29[_0x27375e]==_0x37f814(0x157))throw new AnnError(ApiError_1[_0x37f814(0x143)][_0x37f814(0x13a)],{'message':_0x37f814(0x160)+_0x27375e});_0x4dc40b[_0x37f814(0x14c)](_0x27375e+'='+_0x1c6d29[_0x27375e]);}if(Math['abs'](_0x1c6d29['requesttime'])-Date[_0x37f814(0x165)]()>this['config'][_0x37f814(0x149)])throw new AnnError(ApiError_1[_0x37f814(0x143)][_0x37f814(0x13e)]);if(!this[_0x37f814(0x144)]['devices'][_0x1c6d29['device']]||!this[_0x37f814(0x144)]['devices'][_0x1c6d29[_0x37f814(0x15b)]][_0x37f814(0x14a)]||!this[_0x37f814(0x144)][_0x37f814(0x16d)][_0x1c6d29[_0x37f814(0x15b)]]['checkcode'])throw new AnnError(ApiError_1[_0x37f814(0x143)][_0x37f814(0x16a)]);if(_0x1c6d29[_0x37f814(0x14d)]&&_0x1c6d29[_0x37f814(0x15e)]!=this[_0x37f814(0x15e)](_0x1c6d29[_0x37f814(0x14d)],_0x1c6d29[_0x37f814(0x15b)],_0x1c6d29[_0x37f814(0x154)]))throw new AnnError(ApiError_1['ApiError'][_0x37f814(0x153)]);return _0x4dc40b[_0x37f814(0x14c)](_0x37f814(0x13c)+this['config']['devices'][_0x1c6d29['device']]['secret']),(0x0,crypto_js_1[_0x37f814(0x14e)])(_0x4dc40b[_0x37f814(0x164)]()['join'](''))[_0x37f814(0x14f)]();}[a10_0x35aca6(0x15e)](_0x35fcf9,_0x1e5516,_0x41633b=Date[a10_0x35aca6(0x165)]()){var _0x40889d=a10_0x35aca6,_0xd21b35,_0x4cfce6,_0x43085c;if(!((_0xd21b35=this[_0x40889d(0x144)])===null||_0xd21b35===void 0x0?void 0x0:_0xd21b35[_0x40889d(0x16d)][_0x1e5516])||!((_0x43085c=(_0x4cfce6=this[_0x40889d(0x144)])===null||_0x4cfce6===void 0x0?void 0x0:_0x4cfce6[_0x40889d(0x16d)][_0x1e5516])===null||_0x43085c===void 0x0?void 0x0:_0x43085c[_0x40889d(0x15e)]))throw new AnnError(ApiError_1['ApiError'][_0x40889d(0x16a)]);return(0x0,crypto_js_1['MD5'])(_0x35fcf9+(0x0,crypto_js_1[_0x40889d(0x14e)])(_0x41633b+this[_0x40889d(0x144)][_0x40889d(0x16d)][_0x1e5516]['checkcode'])[_0x40889d(0x14f)]())['toString']();}[a10_0x35aca6(0x140)](_0x26c014={}){var _0x157308=a10_0x35aca6;const _0x3466cc=Object[_0x157308(0x14b)](Object[_0x157308(0x169)](_0x26c014)[_0x157308(0x141)](_0x1ea697=>[_0x1ea697[0x0][_0x157308(0x13f)](),_0x1ea697[0x1]]));if(!(_0x3466cc===null||_0x3466cc===void 0x0?void 0x0:_0x3466cc[_0x157308(0x15a)]))throw new AnnError(ApiError_1['ApiError'][_0x157308(0x13a)],{'message':_0x157308(0x147)});if((_0x3466cc===null||_0x3466cc===void 0x0?void 0x0:_0x3466cc[_0x157308(0x15a)])!=this[_0x157308(0x158)](_0x3466cc))throw new AnnError(ApiError_1[_0x157308(0x143)][_0x157308(0x15d)]);return!![];}};__decorate([(0x0,decorator_1['Config'])(a10_0x35aca6(0x156)),__metadata('design:type',Object)],ApiService['prototype'],a10_0x35aca6(0x144),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x35aca6(0x167)])(),(0x0,decorator_1[a10_0x35aca6(0x13b)])(decorator_1['ScopeEnum'][a10_0x35aca6(0x15c)])],ApiService),exports[a10_0x35aca6(0x163)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x2e1f(_0x58da53,_0xda745b){const _0xdfe697=a11_0xdfe6();return a11_0x2e1f=function(_0x2e1f9e,_0x5247f8){_0x2e1f9e=_0x2e1f9e-0x74;let _0x1bea89=_0xdfe697[_0x2e1f9e];return _0x1bea89;},a11_0x2e1f(_0x58da53,_0xda745b);}const a11_0x4dcfe4=a11_0x2e1f;(function(_0x362d3f,_0x1f4b4b){const _0x27f524=a11_0x2e1f,_0x222173=_0x362d3f();while(!![]){try{const _0x1b534e=-parseInt(_0x27f524(0x86))/0x1+-parseInt(_0x27f524(0xa8))/0x2*(parseInt(_0x27f524(0xac))/0x3)+parseInt(_0x27f524(0x97))/0x4+-parseInt(_0x27f524(0x9d))/0x5+parseInt(_0x27f524(0xb3))/0x6+-parseInt(_0x27f524(0xa5))/0x7*(parseInt(_0x27f524(0x7d))/0x8)+parseInt(_0x27f524(0x8e))/0x9;if(_0x1b534e===_0x1f4b4b)break;else _0x222173['push'](_0x222173['shift']());}catch(_0x125def){_0x222173['push'](_0x222173['shift']());}}}(a11_0xdfe6,0x2cd19));function a11_0xdfe6(){const _0x1708e1=['apiteststatic','substring','Controller','prefix','Get','function','routes','16uLbZMD','module','content-type','__param','../helper/getRoutes','devices','.css','length','__devices__','317756WwpmhW','existsSync','text/css;\x20charset=utf-8','Inject','../../public/','filepath','decorate','method','4276116DOBeiY','Provide','/index.html','@midwayjs/decorator','/apiteststatic/*','getOwnPropertyDescriptor','stringify','config','/apiteststatic/','179392YRBiJo','__esModule','description','apidoc','Scope','Param','187045IHPggp','set','Environment','__apiList__','url','Singleton','push','prototype','468090IgeyzP','.js','design:paramtypes','378698gvLNtq','utf-8','design:returntype','getRoutes','3WDEjVV','design:type','ctx','defineProperty','ScopeEnum','Config','ApitestService','2051154zzxQXV','apitest','MidwayEnvironmentService','cache-control','summary','@midwayjs/core','apitesthtml','application/javascript;\x20charset=utf-8','metadata','object','../../public/index.html','/apitest','replace','isDevelopmentEnvironment','request','anncicapi','ApitestStaticController','__decorate','extname','Request','apitestmodule','join'];a11_0xdfe6=function(){return _0x1708e1;};return a11_0xdfe6();}var __decorate=this&&this[a11_0x4dcfe4(0xc4)]||function(_0x563e04,_0x3b1bca,_0x5d92b3,_0x115ddc){const _0x7011e8=a11_0x4dcfe4;var _0x231d5f=arguments[_0x7011e8(0x84)],_0x411549=_0x231d5f<0x3?_0x3b1bca:_0x115ddc===null?_0x115ddc=Object[_0x7011e8(0x93)](_0x3b1bca,_0x5d92b3):_0x115ddc,_0x284426;if(typeof Reflect===_0x7011e8(0xbc)&&typeof Reflect[_0x7011e8(0x8c)]===_0x7011e8(0x7b))_0x411549=Reflect[_0x7011e8(0x8c)](_0x563e04,_0x3b1bca,_0x5d92b3,_0x115ddc);else{for(var _0x15c950=_0x563e04[_0x7011e8(0x84)]-0x1;_0x15c950>=0x0;_0x15c950--)if(_0x284426=_0x563e04[_0x15c950])_0x411549=(_0x231d5f<0x3?_0x284426(_0x411549):_0x231d5f>0x3?_0x284426(_0x3b1bca,_0x5d92b3,_0x411549):_0x284426(_0x3b1bca,_0x5d92b3))||_0x411549;}return _0x231d5f>0x3&&_0x411549&&Object[_0x7011e8(0xaf)](_0x3b1bca,_0x5d92b3,_0x411549),_0x411549;},__metadata=this&&this['__metadata']||function(_0x4567d0,_0xcf7fa){const _0x21529b=a11_0x4dcfe4;if(typeof Reflect==='object'&&typeof Reflect[_0x21529b(0xbb)]==='function')return Reflect['metadata'](_0x4567d0,_0xcf7fa);},__param=this&&this[a11_0x4dcfe4(0x80)]||function(_0x489809,_0x32c9d2){return function(_0x5a0b03,_0x45bac1){_0x32c9d2(_0x5a0b03,_0x45bac1,_0x489809);};};Object[a11_0x4dcfe4(0xaf)](exports,a11_0x4dcfe4(0x98),{'value':!![]}),exports[a11_0x4dcfe4(0xc3)]=exports['ApitestService']=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x4dcfe4(0xb8)),decorator_1=require(a11_0x4dcfe4(0x91)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a11_0x4dcfe4(0x81));let ApitestService=class ApitestService{async['apidoc'](_0x469255){const _0x41d26a=a11_0x4dcfe4,_0x422890=(0x0,getRoutes_1[_0x41d26a(0xab)])(_0x469255),_0x484a7e=[];for(let _0x585b67 in _0x422890){for(let _0x178cbf in _0x422890[_0x585b67][_0x41d26a(0x7c)]){let _0x170c1d=_0x422890[_0x585b67][_0x41d26a(0x7c)][_0x178cbf],_0x29d90e=[];for(let _0x215be3 in _0x170c1d['request']){_0x29d90e[_0x41d26a(0xa3)](_0x170c1d[_0x41d26a(0xc1)][_0x215be3]);}_0x484a7e[_0x41d26a(0xa3)]({'title':_0x422890[_0x585b67][_0x41d26a(0xb7)]+':'+_0x170c1d[_0x41d26a(0xb7)],'prefix':_0x422890[_0x585b67][_0x41d26a(0x79)],'router':_0x170c1d['route'],'method':_0x170c1d[_0x41d26a(0x8d)],'describe':_0x170c1d[_0x41d26a(0x99)]||'','filepath':_0x422890[_0x585b67]['filepath']||'','request':_0x29d90e});}}const _0x5499f7=(0x0,path_1[_0x41d26a(0x75)])(__dirname,_0x41d26a(0xbd));return(0x0,fs_1['readFileSync'])(_0x5499f7,{'encoding':_0x41d26a(0xa9)})[_0x41d26a(0xbf)](/__res__/g,_0x41d26a(0x96))[_0x41d26a(0xbf)](_0x41d26a(0xa0),JSON[_0x41d26a(0x94)](_0x484a7e))['replace'](_0x41d26a(0x85),JSON[_0x41d26a(0x94)](this['config'][_0x41d26a(0x82)]));}};__decorate([(0x0,decorator_2[a11_0x4dcfe4(0xb1)])(a11_0x4dcfe4(0xc2)),__metadata('design:type',Object)],ApitestService[a11_0x4dcfe4(0xa4)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x4dcfe4(0x8f)])('apitest'),(0x0,decorator_2[a11_0x4dcfe4(0x9b)])(decorator_2[a11_0x4dcfe4(0xb0)][a11_0x4dcfe4(0xa2)])],ApitestService),exports[a11_0x4dcfe4(0xb2)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x4dcfe4(0xb9)](){const _0xf7495a=a11_0x4dcfe4;if(this['apitest']){const _0x13d8ec={'module':![]};return this['Environment'][_0xf7495a(0xc0)]()&&(_0x13d8ec[_0xf7495a(0x8b)]=!![]),await this[_0xf7495a(0xb2)]['apidoc'](_0x13d8ec);}return'';}async[a11_0x4dcfe4(0x74)](_0x46cc37){const _0x9ebff4=a11_0x4dcfe4;if(this[_0x9ebff4(0xb4)]){const _0x124f54={'module':_0x46cc37};return this[_0x9ebff4(0x9f)][_0x9ebff4(0xc0)]()&&(_0x124f54[_0x9ebff4(0x8b)]=!![]),await this[_0x9ebff4(0xb2)][_0x9ebff4(0x9a)](_0x124f54);}return'';}async[a11_0x4dcfe4(0x76)](){const _0x53a746=a11_0x4dcfe4;if((0x0,path_1[_0x53a746(0xc5)])(this['ctx'][_0x53a746(0xc1)][_0x53a746(0xa1)])){var _0x5a748b=(0x0,path_1[_0x53a746(0x75)])(__dirname,_0x53a746(0x8a)+this[_0x53a746(0xae)][_0x53a746(0xc1)][_0x53a746(0xa1)]['replace']('/apiteststatic/','/'));if(_0x5a748b[_0x53a746(0x77)](_0x5a748b[_0x53a746(0x84)]-0xb)!=_0x53a746(0x90)){this[_0x53a746(0xae)][_0x53a746(0x9e)](_0x53a746(0xb6),'public,\x20max-age=604800');if((0x0,path_1[_0x53a746(0xc5)])(this[_0x53a746(0xae)][_0x53a746(0xc1)]['url'])==_0x53a746(0xa6))this[_0x53a746(0xae)][_0x53a746(0x9e)](_0x53a746(0x7f),_0x53a746(0xba));else(0x0,path_1[_0x53a746(0xc5)])(this[_0x53a746(0xae)]['request'][_0x53a746(0xa1)])==_0x53a746(0x83)&&this[_0x53a746(0xae)][_0x53a746(0x9e)]('content-type',_0x53a746(0x88));return(0x0,fs_1[_0x53a746(0x87)])(_0x5a748b)&&(0x0,fs_1['readFileSync'])(_0x5a748b,{'encoding':_0x53a746(0xa9)});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x4dcfe4(0xa4)],a11_0x4dcfe4(0xae),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x4dcfe4(0xad),core_1[a11_0x4dcfe4(0xb5)])],ApitestStaticController[a11_0x4dcfe4(0xa4)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a11_0x4dcfe4(0x89)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x4dcfe4(0xa4)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a11_0x4dcfe4(0xb1)])('apitest'),__metadata(a11_0x4dcfe4(0xad),Boolean)],ApitestStaticController[a11_0x4dcfe4(0xa4)],a11_0x4dcfe4(0xb4),void 0x0),__decorate([(0x0,decorator_2[a11_0x4dcfe4(0xb1)])(a11_0x4dcfe4(0xc2)),__metadata('design:type',Object)],ApitestStaticController[a11_0x4dcfe4(0xa4)],a11_0x4dcfe4(0x95),void 0x0),__decorate([(0x0,decorator_1[a11_0x4dcfe4(0x7a)])(a11_0x4dcfe4(0xbe)),__metadata(a11_0x4dcfe4(0xad),Function),__metadata(a11_0x4dcfe4(0xa7),[]),__metadata(a11_0x4dcfe4(0xaa),Promise)],ApitestStaticController[a11_0x4dcfe4(0xa4)],a11_0x4dcfe4(0xb9),null),__decorate([(0x0,decorator_1['Get'])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a11_0x4dcfe4(0x9c)])(a11_0x4dcfe4(0x7e))),__metadata(a11_0x4dcfe4(0xad),Function),__metadata(a11_0x4dcfe4(0xa7),[String]),__metadata(a11_0x4dcfe4(0xaa),Promise)],ApitestStaticController[a11_0x4dcfe4(0xa4)],'apitestmodule',null),__decorate([(0x0,decorator_1[a11_0x4dcfe4(0x7a)])(a11_0x4dcfe4(0x92)),__metadata(a11_0x4dcfe4(0xad),Function),__metadata(a11_0x4dcfe4(0xa7),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x4dcfe4(0xa4)],a11_0x4dcfe4(0x76),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x4dcfe4(0x78)])('/'),(0x0,decorator_2[a11_0x4dcfe4(0x9b)])(decorator_2[a11_0x4dcfe4(0xb0)][a11_0x4dcfe4(0xc6)])],ApitestStaticController),exports[a11_0x4dcfe4(0xc3)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a12_0x1dec5b=a12_0x3c5d;(function(_0x1845cf,_0x4ff281){const _0x100a57=a12_0x3c5d,_0x5b75ff=_0x1845cf();while(!![]){try{const _0x589833=-parseInt(_0x100a57(0x162))/0x1*(-parseInt(_0x100a57(0x178))/0x2)+-parseInt(_0x100a57(0x151))/0x3*(-parseInt(_0x100a57(0x179))/0x4)+-parseInt(_0x100a57(0x13e))/0x5+parseInt(_0x100a57(0x166))/0x6+-parseInt(_0x100a57(0x149))/0x7*(-parseInt(_0x100a57(0x17b))/0x8)+-parseInt(_0x100a57(0x164))/0x9+-parseInt(_0x100a57(0x14e))/0xa*(parseInt(_0x100a57(0x154))/0xb);if(_0x589833===_0x4ff281)break;else _0x5b75ff['push'](_0x5b75ff['shift']());}catch(_0x48f2d7){_0x5b75ff['push'](_0x5b75ff['shift']());}}}(a12_0x20db,0x6e0cf));function a12_0x3c5d(_0x12719a,_0x4f8b9b){const _0x20dbe6=a12_0x20db();return a12_0x3c5d=function(_0x3c5d74,_0x307d9a){_0x3c5d74=_0x3c5d74-0x13c;let _0x377e06=_0x20dbe6[_0x3c5d74];return _0x377e06;},a12_0x3c5d(_0x12719a,_0x4f8b9b);}function a12_0x20db(){const _0x437cf5=['3722256eZftdc','getOwnPropertyDescriptor','2898450LkHMaO','getCell','public/xlsx','existsSync','App','koa-send','export','value','Scope','eachCell','decorate','\x20is\x20read\x20fail','replace','Provide','prototype','substring','readFile','ScopeEnum','230OtFXBH','292oPFzcp','xlsx','984ShfJrp','Api\x20Excel\x20Error:\x20','getRow','handler','push','4159385QBYepx','trim','addRow','/public/xlsx','getAppDir','exceljs','@midwayjs/decorator','keys','random','key','function','49399wqsOxn','cellCount','mkdirSync','Sheet\x201','length','4527590nHxzsr','writeFile','get','7251qJNiVM','col','frozen','11gqOYmi','isNumber','__decorate','ExcelService','app','endsWith','metadata','header','design:type','object','toString','Workbook','startsWith','log','5404MdseMq','Singleton'];a12_0x20db=function(){return _0x437cf5;};return a12_0x20db();}var __decorate=this&&this[a12_0x1dec5b(0x156)]||function(_0x7d4551,_0x6d7325,_0x1def0e,_0x4304c3){const _0x3cf8a9=a12_0x1dec5b;var _0x54a824=arguments['length'],_0x4440c8=_0x54a824<0x3?_0x6d7325:_0x4304c3===null?_0x4304c3=Object[_0x3cf8a9(0x165)](_0x6d7325,_0x1def0e):_0x4304c3,_0x2235b0;if(typeof Reflect===_0x3cf8a9(0x15d)&&typeof Reflect[_0x3cf8a9(0x170)]===_0x3cf8a9(0x148))_0x4440c8=Reflect[_0x3cf8a9(0x170)](_0x7d4551,_0x6d7325,_0x1def0e,_0x4304c3);else{for(var _0x4ff670=_0x7d4551['length']-0x1;_0x4ff670>=0x0;_0x4ff670--)if(_0x2235b0=_0x7d4551[_0x4ff670])_0x4440c8=(_0x54a824<0x3?_0x2235b0(_0x4440c8):_0x54a824>0x3?_0x2235b0(_0x6d7325,_0x1def0e,_0x4440c8):_0x2235b0(_0x6d7325,_0x1def0e))||_0x4440c8;}return _0x54a824>0x3&&_0x4440c8&&Object['defineProperty'](_0x6d7325,_0x1def0e,_0x4440c8),_0x4440c8;},__metadata=this&&this['__metadata']||function(_0x3218cc,_0x5b9afa){const _0x4cd305=a12_0x1dec5b;if(typeof Reflect===_0x4cd305(0x15d)&&typeof Reflect[_0x4cd305(0x15a)]===_0x4cd305(0x148))return Reflect[_0x4cd305(0x15a)](_0x3218cc,_0x5b9afa);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a12_0x1dec5b(0x157)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1dec5b(0x143)),koasend=require(a12_0x1dec5b(0x16b)),decorator_1=require(a12_0x1dec5b(0x144));let ExcelService=class ExcelService{async['parse'](_0x29e035,_0x215391,_0x5c2a92=[0x0]){const _0x4dd928=a12_0x1dec5b;var _0x195252,_0x5a5fc4;const _0x305a77=new exceljs[(_0x4dd928(0x15f))](),_0x2fd5c2=[];let _0x608b0d=_0x29e035['replace'](/(\\|\/)/g,'/')[_0x4dd928(0x172)](/\/{2,}/g,'/');!(_0x608b0d===null||_0x608b0d===void 0x0?void 0x0:_0x608b0d['startsWith']('/'))&&(_0x608b0d=this[_0x4dd928(0x158)][_0x4dd928(0x142)]()+'/'+_0x608b0d);try{await _0x305a77[_0x4dd928(0x17a)][_0x4dd928(0x176)](_0x608b0d);}catch(_0x31e7ee){return console[_0x4dd928(0x161)](_0x4dd928(0x17c)+_0x608b0d+_0x4dd928(0x171)),_0x2fd5c2;}for(const _0x547d10 of _0x5c2a92){const _0x4c483b=lodash[_0x4dd928(0x155)](_0x547d10)?((_0x195252=_0x305a77['worksheets'])===null||_0x195252===void 0x0?void 0x0:_0x195252[_0x547d10])||undefined:_0x305a77['getWorksheet'](_0x547d10);if(_0x4c483b){var _0x4c095c=0x1;const _0xd8ef73=_0x4c483b[_0x4dd928(0x17d)](0x1),_0x5a24d7=await new Promise(_0x40ff89=>{const _0x25e30a=_0x4dd928,_0x3d43a0={};_0xd8ef73[_0x25e30a(0x16f)]((_0x14b0f6,_0x436f66)=>{const _0x8c375f=_0x25e30a;for(const _0x33f3f5 of _0x215391){if(_0x14b0f6[_0x8c375f(0x16d)]==_0x33f3f5[_0x8c375f(0x15b)])_0x4c095c=0x2,_0x3d43a0[_0x33f3f5[_0x8c375f(0x147)]]={'header':_0x14b0f6[_0x8c375f(0x152)],'handler':_0x33f3f5['handler']};else{if(!_0x3d43a0[_0x33f3f5[_0x8c375f(0x147)]])try{const _0xbda689=_0xd8ef73[_0x8c375f(0x167)](_0x33f3f5['header']);_0xbda689&&(_0x3d43a0[_0x33f3f5[_0x8c375f(0x147)]]={'header':_0xbda689[_0x8c375f(0x152)],'handler':_0x33f3f5[_0x8c375f(0x13c)]});}catch{}}}_0xd8ef73[_0x8c375f(0x14a)]==_0x436f66&&_0x40ff89(_0x3d43a0);});});for(const _0x29517c of _0x4c483b['findRows'](_0x4c095c,_0x4c483b['rowCount'])){const _0x6009bd={};for(const _0x556364 in _0x5a24d7){_0x5a24d7[_0x556364][_0x4dd928(0x15b)]&&(typeof((_0x5a5fc4=_0x5a24d7[_0x556364])===null||_0x5a5fc4===void 0x0?void 0x0:_0x5a5fc4[_0x4dd928(0x13c)])==_0x4dd928(0x148)?_0x6009bd[_0x556364]=_0x5a24d7[_0x556364]['handler'](_0x29517c['getCell'](lodash[_0x4dd928(0x13f)](''+_0x5a24d7[_0x556364]['header'],'\x20'))['toString']()):_0x6009bd[_0x556364]=_0x29517c[_0x4dd928(0x167)](_0x5a24d7[_0x556364][_0x4dd928(0x15b)])[_0x4dd928(0x15e)]());}Object[_0x4dd928(0x145)](_0x6009bd)[_0x4dd928(0x14d)]>0x0&&_0x2fd5c2[_0x4dd928(0x13d)](_0x6009bd);}}}return _0x2fd5c2;}async[a12_0x1dec5b(0x16c)](_0x1e0843,_0x420f34,_0x5c0759,_0x4ed92e=a12_0x1dec5b(0x168)){const _0x4e2fe9=a12_0x1dec5b;var _0x1bbbbf,_0x2b53a7;const _0x8a6a=new exceljs[(_0x4e2fe9(0x15f))](),_0xa15444={},_0x15d4d2=[],_0x1df31e=_0x8a6a['addWorksheet'](_0x4e2fe9(0x14c),{'views':[{'state':_0x4e2fe9(0x153),'xSplit':0x1}]});for(const _0x4d733f in _0x420f34){_0xa15444[_0x420f34[_0x4d733f]['key']]=_0x420f34[_0x4d733f][_0x4e2fe9(0x15b)],_0x15d4d2[_0x4e2fe9(0x13d)]({'header':_0x420f34[_0x4d733f][_0x4e2fe9(0x15b)],'key':(_0x1bbbbf=_0x420f34[_0x4d733f])===null||_0x1bbbbf===void 0x0?void 0x0:_0x1bbbbf[_0x4e2fe9(0x147)][_0x4e2fe9(0x172)](/\./g,'_')});}_0x1df31e['columns']=_0x15d4d2;for(const _0x5d7ce7 of _0x5c0759){const _0x1b3e40={};for(const _0x42ff55 in _0x420f34){typeof((_0x2b53a7=_0x420f34[_0x42ff55])===null||_0x2b53a7===void 0x0?void 0x0:_0x2b53a7[_0x4e2fe9(0x13c)])==_0x4e2fe9(0x148)?_0x1b3e40[_0x420f34[_0x42ff55][_0x4e2fe9(0x147)][_0x4e2fe9(0x172)](/\./g,'_')]=await _0x420f34[_0x42ff55]['handler'](_0x5d7ce7):_0x1b3e40[_0x420f34[_0x42ff55]['key'][_0x4e2fe9(0x172)](/\./g,'_')]=lodash[_0x4e2fe9(0x150)](_0x5d7ce7,_0x420f34[_0x42ff55]['key'],'');}_0x1df31e[_0x4e2fe9(0x140)](_0x1b3e40);}let _0x5a064a='';const _0x4d9f84=_0x1e0843+'-'+lodash[_0x4e2fe9(0x146)](0x2710,0x1869f)+'.xlsx';if(_0x4ed92e&&_0x4ed92e[_0x4e2fe9(0x160)]('/'))_0x5a064a=''+_0x4ed92e;else _0x4ed92e&&!_0x4ed92e['startsWith']('/')&&!_0x4ed92e['startsWith']('\x5c')?_0x5a064a=this['app'][_0x4e2fe9(0x142)]()+'/'+_0x4ed92e:_0x5a064a=this[_0x4e2fe9(0x158)][_0x4e2fe9(0x142)]()+_0x4e2fe9(0x141);return(_0x5a064a[_0x4e2fe9(0x159)]('/')||_0x5a064a[_0x4e2fe9(0x159)]('\x5c'))&&(_0x5a064a=_0x5a064a[_0x4e2fe9(0x175)](0x0,_0x5a064a[_0x4e2fe9(0x14d)]-0x1)),_0x5a064a=_0x5a064a['replace'](/(\\|\/)/g,'/')[_0x4e2fe9(0x172)](/\/{2,}/g,'/'),!fs[_0x4e2fe9(0x169)](_0x5a064a)&&fs[_0x4e2fe9(0x14b)](_0x5a064a,{'recursive':!![]}),await _0x8a6a[_0x4e2fe9(0x17a)][_0x4e2fe9(0x14f)]((_0x5a064a+'/'+_0x4d9f84)[_0x4e2fe9(0x172)](/(\\|\/)/g,'/')[_0x4e2fe9(0x172)](/\/{2,}/g,'/')),{'filename':_0x4d9f84,'filepath':(_0x5a064a[_0x4e2fe9(0x175)]((''+this[_0x4e2fe9(0x158)][_0x4e2fe9(0x142)]())[_0x4e2fe9(0x14d)])+'/'+_0x4d9f84)[_0x4e2fe9(0x172)](/(\\|\/)/g,'/')[_0x4e2fe9(0x172)](/\/{2,}/g,'/')};}async['download'](_0x26fb56,_0x23577a){return await koasend(_0x26fb56,''+_0x23577a);}};__decorate([(0x0,decorator_1[a12_0x1dec5b(0x16a)])(),__metadata(a12_0x1dec5b(0x15c),Object)],ExcelService[a12_0x1dec5b(0x174)],a12_0x1dec5b(0x158),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x1dec5b(0x173)])(),(0x0,decorator_1[a12_0x1dec5b(0x16e)])(decorator_1[a12_0x1dec5b(0x177)][a12_0x1dec5b(0x163)])],ExcelService),exports[a12_0x1dec5b(0x157)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x2675(_0x97ffce,_0x3a9333){var _0x176b4b=a13_0x176b();return a13_0x2675=function(_0x2675d8,_0x2cbd3e){_0x2675d8=_0x2675d8-0x81;var _0x5bbd73=_0x176b4b[_0x2675d8];return _0x5bbd73;},a13_0x2675(_0x97ffce,_0x3a9333);}var a13_0x5cc081=a13_0x2675;function a13_0x176b(){var _0x420c05=['4314kEKyPI','279675BNcONW','503368UeLuep','__esModule','ACTION_KEY','1226xgUBQA','380825XaklKh','129512JZjsNM','9zBcElE','anncic-api:action','APPSCONFIG_KEY','ACTION_ROUTE_KEY','1225MKlAGf','294ltAuaS','255178DzDOuk','290fRTHCI','anncic-api:action:route','AppsConfigTmp'];a13_0x176b=function(){return _0x420c05;};return a13_0x176b();}(function(_0x48b934,_0x5a7555){var _0xc84f89=a13_0x2675,_0x5d7c51=_0x48b934();while(!![]){try{var _0x4ecf19=-parseInt(_0xc84f89(0x88))/0x1+parseInt(_0xc84f89(0x8c))/0x2*(-parseInt(_0xc84f89(0x82))/0x3)+-parseInt(_0xc84f89(0x89))/0x4+parseInt(_0xc84f89(0x8d))/0x5+parseInt(_0xc84f89(0x87))/0x6*(-parseInt(_0xc84f89(0x81))/0x7)+parseInt(_0xc84f89(0x8e))/0x8*(-parseInt(_0xc84f89(0x8f))/0x9)+parseInt(_0xc84f89(0x84))/0xa*(parseInt(_0xc84f89(0x83))/0xb);if(_0x4ecf19===_0x5a7555)break;else _0x5d7c51['push'](_0x5d7c51['shift']());}catch(_0x11dc7f){_0x5d7c51['push'](_0x5d7c51['shift']());}}}(a13_0x176b,0x227f6));Object['defineProperty'](exports,a13_0x5cc081(0x8a),{'value':!![]}),exports[a13_0x5cc081(0x86)]=exports[a13_0x5cc081(0x91)]=exports[a13_0x5cc081(0x92)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x5cc081(0x8b)]=a13_0x5cc081(0x90),exports[a13_0x5cc081(0x92)]=a13_0x5cc081(0x85),exports['APPSCONFIG_KEY']='anncic-api:apps:config';class AppsConfigTmp{}exports[a13_0x5cc081(0x86)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0x56a7(){var _0x3149b6=['是否倒序','design:type','分页数量','850026erIwlO','__esModule','4048990fPksjJ','3ejmAVw','function','2152804UylJlG','27WcZIPa','1712935MsOZEA','number','RuleType','Rule','1:是;0:否','trim','@anncic-api/validator','__metadata','_order','9009480lloXZn','string','_isreverse','prototype','metadata','排序方式','第一页为1,第二页为2','valid','defineProperty','min','2PrThfA','36hgyGDT','decorate','4581643jsYyrD','length','30vDfQdp','integer','PageDTO','330414xgugiq','object','getOwnPropertyDescriptor'];a14_0x56a7=function(){return _0x3149b6;};return a14_0x56a7();}var a14_0x2389cb=a14_0x55cd;(function(_0x2aef26,_0x1e8547){var _0xc08be3=a14_0x55cd,_0x4cbb31=_0x2aef26();while(!![]){try{var _0x1ec4be=parseInt(_0xc08be3(0x1d5))/0x1*(-parseInt(_0xc08be3(0x1b5))/0x2)+parseInt(_0xc08be3(0x1be))/0x3*(parseInt(_0xc08be3(0x1c0))/0x4)+-parseInt(_0xc08be3(0x1b2))/0x5*(parseInt(_0xc08be3(0x1bb))/0x6)+parseInt(_0xc08be3(0x1c2))/0x7+parseInt(_0xc08be3(0x1cb))/0x8+parseInt(_0xc08be3(0x1c1))/0x9*(parseInt(_0xc08be3(0x1bd))/0xa)+parseInt(_0xc08be3(0x1b0))/0xb*(-parseInt(_0xc08be3(0x1ae))/0xc);if(_0x1ec4be===_0x1e8547)break;else _0x4cbb31['push'](_0x4cbb31['shift']());}catch(_0x26fc1a){_0x4cbb31['push'](_0x4cbb31['shift']());}}}(a14_0x56a7,0xa9631));var __decorate=this&&this['__decorate']||function(_0x343f7e,_0x11945e,_0x489868,_0x2368ee){var _0x13556a=a14_0x55cd,_0x2d510a=arguments['length'],_0x292fb7=_0x2d510a<0x3?_0x11945e:_0x2368ee===null?_0x2368ee=Object[_0x13556a(0x1b7)](_0x11945e,_0x489868):_0x2368ee,_0x5b2fd6;if(typeof Reflect===_0x13556a(0x1b6)&&typeof Reflect[_0x13556a(0x1af)]===_0x13556a(0x1bf))_0x292fb7=Reflect[_0x13556a(0x1af)](_0x343f7e,_0x11945e,_0x489868,_0x2368ee);else{for(var _0x23ad92=_0x343f7e[_0x13556a(0x1b1)]-0x1;_0x23ad92>=0x0;_0x23ad92--)if(_0x5b2fd6=_0x343f7e[_0x23ad92])_0x292fb7=(_0x2d510a<0x3?_0x5b2fd6(_0x292fb7):_0x2d510a>0x3?_0x5b2fd6(_0x11945e,_0x489868,_0x292fb7):_0x5b2fd6(_0x11945e,_0x489868))||_0x292fb7;}return _0x2d510a>0x3&&_0x292fb7&&Object[_0x13556a(0x1d3)](_0x11945e,_0x489868,_0x292fb7),_0x292fb7;},__metadata=this&&this[a14_0x2389cb(0x1c9)]||function(_0x243041,_0xe74b90){var _0x48dd6a=a14_0x2389cb;if(typeof Reflect==='object'&&typeof Reflect[_0x48dd6a(0x1cf)]===_0x48dd6a(0x1bf))return Reflect[_0x48dd6a(0x1cf)](_0x243041,_0xe74b90);};Object['defineProperty'](exports,a14_0x2389cb(0x1bc),{'value':!![]}),exports[a14_0x2389cb(0x1b4)]=void 0x0;const validator_1=require(a14_0x2389cb(0x1c8));class PageDTO{}function a14_0x55cd(_0x3f5bc5,_0x20a89){var _0x56a74f=a14_0x56a7();return a14_0x55cd=function(_0x55cd8c,_0x2ae0f1){_0x55cd8c=_0x55cd8c-0x1ae;var _0x573c77=_0x56a74f[_0x55cd8c];return _0x573c77;},a14_0x55cd(_0x3f5bc5,_0x20a89);}__decorate([(0x0,validator_1[a14_0x2389cb(0x1c5)])('分页',validator_1[a14_0x2389cb(0x1c4)][a14_0x2389cb(0x1c3)]()['integer']()['min'](0x1),a14_0x2389cb(0x1d1)),__metadata(a14_0x2389cb(0x1b9),Number)],PageDTO[a14_0x2389cb(0x1ce)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x2389cb(0x1c5)])(a14_0x2389cb(0x1ba),validator_1[a14_0x2389cb(0x1c4)][a14_0x2389cb(0x1c3)]()['integer']()[a14_0x2389cb(0x1d4)](0x1)),__metadata(a14_0x2389cb(0x1b9),Number)],PageDTO[a14_0x2389cb(0x1ce)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x2389cb(0x1c5)])(a14_0x2389cb(0x1d0),validator_1['RuleType'][a14_0x2389cb(0x1cc)]()[a14_0x2389cb(0x1c7)]()),__metadata(a14_0x2389cb(0x1b9),String)],PageDTO[a14_0x2389cb(0x1ce)],a14_0x2389cb(0x1ca),void 0x0),__decorate([(0x0,validator_1[a14_0x2389cb(0x1c5)])(a14_0x2389cb(0x1b8),validator_1[a14_0x2389cb(0x1c4)][a14_0x2389cb(0x1c3)]()[a14_0x2389cb(0x1b3)]()[a14_0x2389cb(0x1d2)](0x0,0x1),a14_0x2389cb(0x1c6)),__metadata(a14_0x2389cb(0x1b9),Number)],PageDTO['prototype'],a14_0x2389cb(0x1cd),void 0x0),exports[a14_0x2389cb(0x1b4)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.47",
|
|
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.47",
|
|
21
|
+
"@anncic-api/core": "^1.1.47",
|
|
22
|
+
"@anncic-api/event": "^1.1.47",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.47",
|
|
24
|
+
"@anncic-api/validator": "^1.1.47",
|
|
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.47",
|
|
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": "6403115fd1a06bfb4d2f2cf775c503744564ebaa"
|
|
43
43
|
}
|