anncic-api 1.3.17 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x3afb(_0x409b71,_0x72352f){var _0x3a9afd=a0_0x3a9a();return a0_0x3afb=function(_0x3afb71,_0x9ae952){_0x3afb71=_0x3afb71-0x1db;var _0xe4f4b9=_0x3a9afd[_0x3afb71];return _0xe4f4b9;},a0_0x3afb(_0x409b71,_0x72352f);}(function(_0x5d118d,_0x4a1486){var _0x59936=a0_0x3afb,_0x29cb10=_0x5d118d();while(!![]){try{var _0x4d9de9=parseInt(_0x59936(0x1ed))/0x1+-parseInt(_0x59936(0x1db))/0x2*(parseInt(_0x59936(0x1e7))/0x3)+parseInt(_0x59936(0x1eb))/0x4*(-parseInt(_0x59936(0x1ef))/0x5)+parseInt(_0x59936(0x1e3))/0x6*(parseInt(_0x59936(0x1ee))/0x7)+parseInt(_0x59936(0x1dc))/0x8+parseInt(_0x59936(0x1e8))/0x9*(-parseInt(_0x59936(0x1de))/0xa)+parseInt(_0x59936(0x1df))/0xb;if(_0x4d9de9===_0x4a1486)break;else _0x29cb10['push'](_0x29cb10['shift']());}catch(_0x4ca86b){_0x29cb10['push'](_0x29cb10['shift']());}}}(a0_0x3a9a,0xa0ceb));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['default']=_0x19cd53=>{var _0xf15cd=a0_0x3afb;return{'apitest':!![],'keys':_0x19cd53[_0xf15cd(0x1e4)],'anncicapi':{'timeout':0x1388,'password':_0xf15cd(0x1ec),'devices':{'DEFAULT':{'secret':_0xf15cd(0x1e5),'checkcode':_0xf15cd(0x1e5)}}},'bodyParser':{'enableTypes':[_0xf15cd(0x1e1),_0xf15cd(0x1e9),_0xf15cd(0x1e6),_0xf15cd(0x1dd)],'formLimit':'20mb','jsonLimit':_0xf15cd(0x1e0),'textLimit':'20mb','xmlLimit':_0xf15cd(0x1e0)},'upload':{'tmpdir':_0x19cd53[_0xf15cd(0x1ea)]+_0xf15cd(0x1e2),'cleanTimeout':0x5265c00}};};function a0_0x3a9a(){var _0x5591d5=['3645928EcpKuW','xml','6459230hHKeqK','6163091qYBGlz','20mb','json','/runtime/.upload','7046898koNgnd','name','dhauo1234420123gg3234901','text','21ydTKmF','18TFMstl','form','appDir','3592zAcKoA','zhiulanuiy7892387985hnoi','857927aPmOIt','7pKypwX','3650KqXbMb','126394shEUZB'];a0_0x3a9a=function(){return _0x5591d5;};return a0_0x3a9a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x9d0278=a1_0x14d2;function a1_0x14d2(_0x599f5a,_0x10bd76){var _0x2c118b=a1_0x2c11();return a1_0x14d2=function(_0x14d28d,_0x42a6aa){_0x14d28d=_0x14d28d-0x1f2;var _0x4b4b3d=_0x2c118b[_0x14d28d];return _0x4b4b3d;},a1_0x14d2(_0x599f5a,_0x10bd76);}(function(_0x2fa8e2,_0xdfc0dd){var _0x2f1a72=a1_0x14d2,_0x2359ba=_0x2fa8e2();while(!![]){try{var _0x4fa1f8=parseInt(_0x2f1a72(0x1f8))/0x1*(parseInt(_0x2f1a72(0x1fd))/0x2)+parseInt(_0x2f1a72(0x1fc))/0x3+-parseInt(_0x2f1a72(0x1f7))/0x4*(parseInt(_0x2f1a72(0x1f6))/0x5)+-parseInt(_0x2f1a72(0x1fe))/0x6+parseInt(_0x2f1a72(0x1f4))/0x7*(-parseInt(_0x2f1a72(0x1fb))/0x8)+parseInt(_0x2f1a72(0x1fa))/0x9+-parseInt(_0x2f1a72(0x1f3))/0xa;if(_0x4fa1f8===_0xdfc0dd)break;else _0x2359ba['push'](_0x2359ba['shift']());}catch(_0x2a30dd){_0x2359ba['push'](_0x2359ba['shift']());}}}(a1_0x2c11,0xd8260));Object[a1_0x9d0278(0x1f9)](exports,a1_0x9d0278(0x1f5),{'value':!![]}),exports[a1_0x9d0278(0x1f2)]={'apitest':![],'anncicapi':{'timeout':0x1388}};function a1_0x2c11(){var _0x27bc2a=['4722760OIegyR','4rfPRKs','71557OiStYh','defineProperty','12259143bXlOXH','440DlJUKr','4169310oMXzUo','34zPTBup','2936940EdVihs','default','11342900rYMIKR','65506QrfVAB','__esModule'];a1_0x2c11=function(){return _0x27bc2a;};return a1_0x2c11();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x40cd(){const _0x104ff1=['config','1480oTuGXP','log','bodyXml','CustomConfiguration','proceed','DEFAULT','checksign','./config/config.default','Configuration','getOwnPropertyDescriptor','getAsync','REQUEST_OBJ_CTX_KEY','decorator','./config/config.production','anncicapi','upload','4995lFqAQT','application','handler','staticFile','@anncic-api/core','length','110avLdSm','MidwayApplicationManager','778929tcZSTO','isString','@anncic-api/event','metadata','@midwayjs/static-file','anncic-apihelper','2406460bIVSBI','ACTION_ROUTE_KEY','device','ApiError','tmpdir','headers','forEach','isNull','isClass','dir','dirs','@midwayjs/koa','Inject','defineProperty','defineProperties','46188GRStrC','@midwayjs/upload','context','prototype','60cSsECz','devices','input','isFunction','400510hnfkLW','2990TwZChT','@midwayjs/core','@anncic-api/cache','decorate','defaultsDeep','MidwayEnvironmentService','4ZkZAIH','ApiService','requestContext','Types','key','object','__metadata','apimit','body','toLowerCase','isArray','method','Anncic-api\x20static-file\x20:\x20mkdir\x20','./service/ApiService','_matchedRoute','checkConfigKeys','target','getConfiguration','filterConfig','@anncic-api/validator','hanlderApplications','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','addObject','handlerActionRoute','intercept','request','getApplications','function','design:type','get','string','koa','9xJWHxA','environment','6888BRMlcQ','66774kcdWko','mkdirSync'];a2_0x40cd=function(){return _0x104ff1;};return a2_0x40cd();}const a2_0x54d454=a2_0x4990;(function(_0x26ed11,_0x269b21){const _0x12e77e=a2_0x4990,_0x230b02=_0x26ed11();while(!![]){try{const _0x1f1682=parseInt(_0x12e77e(0xab))/0x1*(parseInt(_0x12e77e(0xcc))/0x2)+-parseInt(_0x12e77e(0xb3))/0x3*(parseInt(_0x12e77e(0xd7))/0x4)+parseInt(_0x12e77e(0xb1))/0x5*(-parseInt(_0x12e77e(0x98))/0x6)+-parseInt(_0x12e77e(0x97))/0x7*(parseInt(_0x12e77e(0x9b))/0x8)+-parseInt(_0x12e77e(0x95))/0x9*(parseInt(_0x12e77e(0xb9))/0xa)+parseInt(_0x12e77e(0xd0))/0xb+parseInt(_0x12e77e(0xc8))/0xc*(parseInt(_0x12e77e(0xd1))/0xd);if(_0x1f1682===_0x269b21)break;else _0x230b02['push'](_0x230b02['shift']());}catch(_0x3cab38){_0x230b02['push'](_0x230b02['shift']());}}}(a2_0x40cd,0x233eb));var __decorate=this&&this['__decorate']||function(_0x4db5db,_0x1dccb9,_0x4e2144,_0x48631a){const _0x4db65d=a2_0x4990;var _0x4c163b=arguments[_0x4db65d(0xb0)],_0x23c2d9=_0x4c163b<0x3?_0x1dccb9:_0x48631a===null?_0x48631a=Object[_0x4db65d(0xa4)](_0x1dccb9,_0x4e2144):_0x48631a,_0x49f2ce;if(typeof Reflect===_0x4db65d(0xdc)&&typeof Reflect[_0x4db65d(0xd4)]===_0x4db65d(0x90))_0x23c2d9=Reflect[_0x4db65d(0xd4)](_0x4db5db,_0x1dccb9,_0x4e2144,_0x48631a);else{for(var _0x3af030=_0x4db5db['length']-0x1;_0x3af030>=0x0;_0x3af030--)if(_0x49f2ce=_0x4db5db[_0x3af030])_0x23c2d9=(_0x4c163b<0x3?_0x49f2ce(_0x23c2d9):_0x4c163b>0x3?_0x49f2ce(_0x1dccb9,_0x4e2144,_0x23c2d9):_0x49f2ce(_0x1dccb9,_0x4e2144))||_0x23c2d9;}return _0x4c163b>0x3&&_0x23c2d9&&Object['defineProperty'](_0x1dccb9,_0x4e2144,_0x23c2d9),_0x23c2d9;},__metadata=this&&this[a2_0x54d454(0xdd)]||function(_0x55b000,_0x34b5df){const _0x18d871=a2_0x54d454;if(typeof Reflect===_0x18d871(0xdc)&&typeof Reflect[_0x18d871(0xb6)]==='function')return Reflect['metadata'](_0x55b000,_0x34b5df);};Object[a2_0x54d454(0xc6)](exports,'__esModule',{'value':!![]}),exports[a2_0x54d454(0x9e)]=void 0x0;const core_1=require(a2_0x54d454(0xd2)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x54d454(0x82)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x54d454(0xc4)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x54d454(0xc9)),staticFile=require(a2_0x54d454(0xb7)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x54d454(0xa2)),ConfigProduction=require(a2_0x54d454(0xa8)),anncic=require(a2_0x54d454(0xaf)),anncicCache=require(a2_0x54d454(0xd3)),anncicEvent=require(a2_0x54d454(0xb5)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x54d454(0x88)),anncicHelper=require(a2_0x54d454(0xb8));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x3fe7fb=a2_0x54d454;await this[_0x3fe7fb(0x87)](),await this['checkConfigKeys'](),await this[_0x3fe7fb(0x8c)](),await this[_0x3fe7fb(0x89)]();}async[a2_0x54d454(0x84)](){}async[a2_0x54d454(0x8c)](){const _0x4ebccf=a2_0x54d454,_0x24eff3=this[_0x4ebccf(0x9a)][_0x4ebccf(0x86)]();this['decorator']['registerMethodHandler'](action_1[_0x4ebccf(0xba)],_0x50d72a=>{const _0xf377e8=_0x4ebccf,_0x13255f=_0x50d72a[_0xf377e8(0xb6)];return{'before':async _0x55e3be=>{const _0x1baa25=_0xf377e8;var _0x3355de,_0x40795e;const _0x3a1f34=(_0x3355de=_0x55e3be===null||_0x55e3be===void 0x0?void 0x0:_0x55e3be[_0x1baa25(0x85)])===null||_0x3355de===void 0x0?void 0x0:_0x3355de[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x3a1f34&&(_0x13255f===null||_0x13255f===void 0x0?void 0x0:_0x13255f[_0x1baa25(0xde)])){if(!this[_0x1baa25(0xd8)][_0x1baa25(0xa1)]((_0x40795e=_0x3a1f34===null||_0x3a1f34===void 0x0?void 0x0:_0x3a1f34[_0x1baa25(0x8e)])===null||_0x40795e===void 0x0?void 0x0:_0x40795e[_0x1baa25(0xbe)]))throw new AnnError(ApiError_1[_0x1baa25(0xbc)]['HEADERS_SIGNATURE']);}},'around':async _0x15d974=>{const _0x1a3ca8=_0xf377e8;var _0x29f13e,_0x4d1c84,_0x4958f7,_0x4497bc,_0x2397b5;const _0x52cb62=(_0x29f13e=_0x15d974===null||_0x15d974===void 0x0?void 0x0:_0x15d974[_0x1a3ca8(0x85)])===null||_0x29f13e===void 0x0?void 0x0:_0x29f13e[core_2[_0x1a3ca8(0xa6)]];if(_0x52cb62&&(_0x13255f===null||_0x13255f===void 0x0?void 0x0:_0x13255f[_0x1a3ca8(0xde)])){if(((_0x4d1c84=_0x52cb62[_0x1a3ca8(0xbe)])===null||_0x4d1c84===void 0x0?void 0x0:_0x4d1c84[_0x1a3ca8(0xbb)])&&((_0x2397b5=(_0x4497bc=(_0x4958f7=_0x24eff3===null||_0x24eff3===void 0x0?void 0x0:_0x24eff3[_0x1a3ca8(0xa9)])===null||_0x4958f7===void 0x0?void 0x0:_0x4958f7[_0x1a3ca8(0xcd)])===null||_0x4497bc===void 0x0?void 0x0:_0x4497bc[_0x52cb62['headers'][_0x1a3ca8(0xbb)]])===null||_0x2397b5===void 0x0?void 0x0:_0x2397b5['intercept'])){const _0x6800ad=Array[_0x1a3ca8(0x7f)](_0x24eff3['anncicapi'][_0x1a3ca8(0xcd)][_0x52cb62[_0x1a3ca8(0xbe)][_0x1a3ca8(0xbb)]][_0x1a3ca8(0x8d)])?_0x24eff3[_0x1a3ca8(0xa9)][_0x1a3ca8(0xcd)][_0x52cb62[_0x1a3ca8(0xbe)][_0x1a3ca8(0xbb)]]['intercept']:[_0x24eff3[_0x1a3ca8(0xa9)][_0x1a3ca8(0xcd)][_0x52cb62['headers'][_0x1a3ca8(0xbb)]][_0x1a3ca8(0x8d)]];for(const _0x3cafad of _0x6800ad){if(core_1[_0x1a3ca8(0xda)][_0x1a3ca8(0xc1)](_0x3cafad)||typeof _0x3cafad==_0x1a3ca8(0x93)){const _0x1c4fc0=await _0x52cb62[_0x1a3ca8(0xd9)][_0x1a3ca8(0xa5)](_0x3cafad);typeof(_0x1c4fc0===null||_0x1c4fc0===void 0x0?void 0x0:_0x1c4fc0[_0x1a3ca8(0xad)])==_0x1a3ca8(0x90)&&await _0x1c4fc0[_0x1a3ca8(0xad)](typeof(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62[_0x1a3ca8(0x80)])==_0x1a3ca8(0x93)&&(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62[_0x1a3ca8(0x83)])?_0x52cb62['method'][_0x1a3ca8(0xe0)]()+'@'+(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62['_matchedRoute']):undefined,_0x52cb62,_0x13255f);}else core_1[_0x1a3ca8(0xda)][_0x1a3ca8(0xcf)](_0x3cafad)&&await _0x3cafad(typeof(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62[_0x1a3ca8(0x80)])==_0x1a3ca8(0x93)&&(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62[_0x1a3ca8(0x83)])?_0x52cb62['method']['toLowerCase']()+'@'+(_0x52cb62===null||_0x52cb62===void 0x0?void 0x0:_0x52cb62[_0x1a3ca8(0x83)]):undefined,_0x52cb62,_0x13255f);}}}return await _0x15d974[_0x1a3ca8(0x9f)](..._0x15d974['args']);},'afterThrow':(_0x56a4ad,_0xc8a1da)=>{throw _0xc8a1da;}};});}async[a2_0x54d454(0x89)](){const _0x371991=a2_0x54d454;this['application'][_0x371991(0x8f)]([_0x371991(0x94)])[_0x371991(0xbf)](_0x1812a2=>{const _0x1c977a=_0x371991;(_0x1812a2===null||_0x1812a2===void 0x0?void 0x0:_0x1812a2[_0x1c977a(0xca)])&&Object[_0x1c977a(0xc7)](_0x1812a2[_0x1c977a(0xca)],{'ok':{'value':function(_0x584d02,_0x4f8d74,_0x2da18e=0x0){return{'code':_0x2da18e,'data':_0x584d02,'extra':_0x4f8d74};}},'input':{'value':function(_0x1d24f4,_0xa37f15){const _0x5d0ff3=_0x1c977a;var _0x578963;const _0x1cd740=lodash[_0x5d0ff3(0xd5)]({},this[_0x5d0ff3(0x8e)][_0x5d0ff3(0xdf)]||this[_0x5d0ff3(0x8e)][((_0x578963=config===null||config===void 0x0?void 0x0:config[_0x5d0ff3(0x9d)])===null||_0x578963===void 0x0?void 0x0:_0x578963[_0x5d0ff3(0xdb)])||_0x5d0ff3(0xdf)]||{},this['request']['query']||{});return _0x1d24f4?lodash[_0x5d0ff3(0x92)](_0x1cd740,_0x1d24f4,_0xa37f15):_0x1cd740;}},'when':{'value':async function(_0x57ec72,_0x20d02e){const _0x360cfa=_0x1c977a,_0x58148b=this[_0x360cfa(0xce)](_0x57ec72,null);if(!lodash[_0x360cfa(0xc0)](_0x58148b))return await _0x20d02e(_0x58148b);}},'only':{'value':function(_0x131c0a){const _0x542124=_0x1c977a,_0x14c7a9={};for(let _0x3a8039=0x0;_0x3a8039<_0x131c0a[_0x542124(0xb0)];_0x3a8039++){lodash[_0x542124(0x7f)](_0x131c0a[_0x3a8039])&&_0x131c0a[_0x3a8039][_0x542124(0xb0)]>0x0&&lodash[_0x542124(0xb4)](_0x131c0a[_0x3a8039][0x0])&&(_0x14c7a9[_0x131c0a[_0x3a8039][0x0]]=this[_0x542124(0xce)](_0x131c0a[_0x3a8039][0x0],_0x131c0a[_0x3a8039]['length']>0x1?_0x131c0a[_0x3a8039][0x1]:null));}return _0x14c7a9;}}});});}async[a2_0x54d454(0x87)](){const _0x180ce2=a2_0x54d454;var _0x527892,_0x58a2fb,_0x5338d4,_0x18ef33,_0x15660d,_0x3be255;const _0x59b4a3=this[_0x180ce2(0x9a)][_0x180ce2(0x86)]();((_0x58a2fb=(_0x527892=_0x59b4a3===null||_0x59b4a3===void 0x0?void 0x0:_0x59b4a3[_0x180ce2(0xa9)])===null||_0x527892===void 0x0?void 0x0:_0x527892[_0x180ce2(0xcd)])===null||_0x58a2fb===void 0x0?void 0x0:_0x58a2fb[_0x180ce2(0xa0)])&&Object['keys'](_0x59b4a3[_0x180ce2(0xa9)][_0x180ce2(0xcd)])[_0x180ce2(0xb0)]>0x1&&delete _0x59b4a3[_0x180ce2(0xa9)][_0x180ce2(0xcd)][_0x180ce2(0xa0)];if((_0x5338d4=_0x59b4a3===null||_0x59b4a3===void 0x0?void 0x0:_0x59b4a3[_0x180ce2(0xae)])===null||_0x5338d4===void 0x0?void 0x0:_0x5338d4['dirs'])for(const _0x59ef97 in _0x59b4a3[_0x180ce2(0xae)][_0x180ce2(0xc3)]){((_0x18ef33=_0x59b4a3[_0x180ce2(0xae)][_0x180ce2(0xc3)][_0x59ef97])===null||_0x18ef33===void 0x0?void 0x0:_0x18ef33['dir'])&&typeof((_0x15660d=_0x59b4a3[_0x180ce2(0xae)][_0x180ce2(0xc3)][_0x59ef97])===null||_0x15660d===void 0x0?void 0x0:_0x15660d[_0x180ce2(0xc2)])=='string'&&!fs['existsSync'](_0x59b4a3[_0x180ce2(0xae)][_0x180ce2(0xc3)][_0x59ef97]['dir'])&&(fs[_0x180ce2(0x99)](_0x59b4a3[_0x180ce2(0xae)][_0x180ce2(0xc3)][_0x59ef97][_0x180ce2(0xc2)],{'recursive':!![]}),console[_0x180ce2(0x9c)](_0x180ce2(0x81)+_0x59b4a3['staticFile'][_0x180ce2(0xc3)][_0x59ef97][_0x180ce2(0xc2)]));}((_0x3be255=_0x59b4a3===null||_0x59b4a3===void 0x0?void 0x0:_0x59b4a3[_0x180ce2(0xaa)])===null||_0x3be255===void 0x0?void 0x0:_0x3be255['tmpdir'])&&!fs['existsSync'](_0x59b4a3[_0x180ce2(0xaa)][_0x180ce2(0xbd)])&&(fs[_0x180ce2(0x99)](_0x59b4a3[_0x180ce2(0xaa)][_0x180ce2(0xbd)],{'recursive':!![]}),console[_0x180ce2(0x9c)](_0x180ce2(0x8a)+_0x59b4a3[_0x180ce2(0xaa)]['tmpdir'])),this[_0x180ce2(0x9a)][_0x180ce2(0x8b)](_0x59b4a3);}};function a2_0x4990(_0x1596f6,_0x5b624a){const _0x40cd9f=a2_0x40cd();return a2_0x4990=function(_0x499048,_0x129fae){_0x499048=_0x499048-0x7f;let _0xe9c743=_0x40cd9f[_0x499048];return _0xe9c743;},a2_0x4990(_0x1596f6,_0x5b624a);}__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x54d454(0x91),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x54d454(0xcb)],a2_0x54d454(0x9a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x54d454(0x91),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x54d454(0xcb)],a2_0x54d454(0xa7),void 0x0),__decorate([(0x0,core_1[a2_0x54d454(0xc5)])(),__metadata(a2_0x54d454(0x91),core_2[a2_0x54d454(0xb2)])],CustomConfiguration[a2_0x54d454(0xcb)],a2_0x54d454(0xac),void 0x0),__decorate([(0x0,core_1[a2_0x54d454(0xc5)])(),__metadata(a2_0x54d454(0x91),core_2[a2_0x54d454(0xd6)])],CustomConfiguration['prototype'],a2_0x54d454(0x96),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x54d454(0x91),ApiService_1[a2_0x54d454(0xd8)])],CustomConfiguration[a2_0x54d454(0xcb)],a2_0x54d454(0xd8),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x54d454(0xa3)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x54d454(0x9e)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x53ae14=a2_0x13d2;(function(_0x1e0f63,_0x515f68){const _0x380b83=a2_0x13d2,_0x2df326=_0x1e0f63();while(!![]){try{const _0x3419e3=-parseInt(_0x380b83(0xa0))/0x1*(-parseInt(_0x380b83(0x97))/0x2)+parseInt(_0x380b83(0xb2))/0x3+-parseInt(_0x380b83(0xce))/0x4*(-parseInt(_0x380b83(0xd1))/0x5)+parseInt(_0x380b83(0xaf))/0x6*(parseInt(_0x380b83(0xa3))/0x7)+parseInt(_0x380b83(0xdd))/0x8*(-parseInt(_0x380b83(0x9e))/0x9)+-parseInt(_0x380b83(0xc7))/0xa+-parseInt(_0x380b83(0xcc))/0xb;if(_0x3419e3===_0x515f68)break;else _0x2df326['push'](_0x2df326['shift']());}catch(_0x16efb3){_0x2df326['push'](_0x2df326['shift']());}}}(a2_0x5450,0x4edc9));var __decorate=this&&this[a2_0x53ae14(0x88)]||function(_0x14cee1,_0x423083,_0x528287,_0x9d2499){const _0x1beac3=a2_0x53ae14;var _0x485671=arguments[_0x1beac3(0x92)],_0x46d41b=_0x485671<0x3?_0x423083:_0x9d2499===null?_0x9d2499=Object['getOwnPropertyDescriptor'](_0x423083,_0x528287):_0x9d2499,_0xf5bfff;if(typeof Reflect===_0x1beac3(0xba)&&typeof Reflect['decorate']===_0x1beac3(0xc1))_0x46d41b=Reflect['decorate'](_0x14cee1,_0x423083,_0x528287,_0x9d2499);else{for(var _0x39adc2=_0x14cee1['length']-0x1;_0x39adc2>=0x0;_0x39adc2--)if(_0xf5bfff=_0x14cee1[_0x39adc2])_0x46d41b=(_0x485671<0x3?_0xf5bfff(_0x46d41b):_0x485671>0x3?_0xf5bfff(_0x423083,_0x528287,_0x46d41b):_0xf5bfff(_0x423083,_0x528287))||_0x46d41b;}return _0x485671>0x3&&_0x46d41b&&Object[_0x1beac3(0xbb)](_0x423083,_0x528287,_0x46d41b),_0x46d41b;},__metadata=this&&this[a2_0x53ae14(0x9b)]||function(_0x205c9d,_0x4f5bf7){const _0x1c7c06=a2_0x53ae14;if(typeof Reflect===_0x1c7c06(0xba)&&typeof Reflect[_0x1c7c06(0x9f)]===_0x1c7c06(0xc1))return Reflect[_0x1c7c06(0x9f)](_0x205c9d,_0x4f5bf7);};Object[a2_0x53ae14(0xbb)](exports,'__esModule',{'value':!![]}),exports[a2_0x53ae14(0x8a)]=void 0x0;const core_1=require(a2_0x53ae14(0xad)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x53ae14(0xda)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x53ae14(0xa5)),fs=require('fs'),koa=require(a2_0x53ae14(0xd4)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x53ae14(0xde)),staticFile=require(a2_0x53ae14(0xc9)),crossDomain=require(a2_0x53ae14(0xb1)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x53ae14(0x8d)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x53ae14(0xb7)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x53ae14(0x81)),anncicHelper=require(a2_0x53ae14(0xaa));function a2_0x13d2(_0x2ca97e,_0x598837){const _0x54507d=a2_0x5450();return a2_0x13d2=function(_0x13d22f,_0x340302){_0x13d22f=_0x13d22f-0x81;let _0x418180=_0x54507d[_0x13d22f];return _0x418180;},a2_0x13d2(_0x2ca97e,_0x598837);}let CustomConfiguration=class CustomConfiguration{async[a2_0x53ae14(0x8b)](){const _0x2d3474=a2_0x53ae14;await this[_0x2d3474(0x9c)](),await this[_0x2d3474(0xbc)](),await this[_0x2d3474(0x86)](),await this[_0x2d3474(0xcb)]();}async[a2_0x53ae14(0xbc)](){}async['handlerActionRoute'](){const _0x5d83c7=a2_0x53ae14,_0x204ac6=this[_0x5d83c7(0xd6)]['getConfiguration']();this['decorator'][_0x5d83c7(0x96)](action_1['ACTION_ROUTE_KEY'],_0x546dfa=>{const _0x30675a=_0x5d83c7,_0x19ad7d=_0x546dfa[_0x30675a(0x9f)];return{'before':async _0x10e168=>{const _0x341947=_0x30675a;var _0x5605fa,_0xcd8a0d;const _0x2fd36e=(_0x5605fa=_0x10e168===null||_0x10e168===void 0x0?void 0x0:_0x10e168[_0x341947(0xbe)])===null||_0x5605fa===void 0x0?void 0x0:_0x5605fa[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x2fd36e&&(_0x19ad7d===null||_0x19ad7d===void 0x0?void 0x0:_0x19ad7d[_0x341947(0x89)])){if(!this['ApiService']['checksign']((_0xcd8a0d=_0x2fd36e===null||_0x2fd36e===void 0x0?void 0x0:_0x2fd36e[_0x341947(0xc8)])===null||_0xcd8a0d===void 0x0?void 0x0:_0xcd8a0d[_0x341947(0x83)]))throw new AnnError(ApiError_1[_0x341947(0xa8)][_0x341947(0xa7)]);}},'around':async _0x3fd5a5=>{const _0x14e573=_0x30675a;var _0x16a684,_0x2dc31b,_0x50f2e3,_0x58d57c,_0x50ff56;const _0x1197a7=(_0x16a684=_0x3fd5a5===null||_0x3fd5a5===void 0x0?void 0x0:_0x3fd5a5[_0x14e573(0xbe)])===null||_0x16a684===void 0x0?void 0x0:_0x16a684[core_2[_0x14e573(0xcf)]];if(_0x1197a7&&(_0x19ad7d===null||_0x19ad7d===void 0x0?void 0x0:_0x19ad7d[_0x14e573(0x89)])){if(((_0x2dc31b=_0x1197a7[_0x14e573(0x83)])===null||_0x2dc31b===void 0x0?void 0x0:_0x2dc31b['device'])&&((_0x50ff56=(_0x58d57c=(_0x50f2e3=_0x204ac6===null||_0x204ac6===void 0x0?void 0x0:_0x204ac6[_0x14e573(0x8e)])===null||_0x50f2e3===void 0x0?void 0x0:_0x50f2e3[_0x14e573(0xc5)])===null||_0x58d57c===void 0x0?void 0x0:_0x58d57c[_0x1197a7['headers'][_0x14e573(0x82)]])===null||_0x50ff56===void 0x0?void 0x0:_0x50ff56[_0x14e573(0xd2)])){const _0x33f55c=Array[_0x14e573(0xa4)](_0x204ac6[_0x14e573(0x8e)][_0x14e573(0xc5)][_0x1197a7['headers']['device']]['intercept'])?_0x204ac6[_0x14e573(0x8e)]['devices'][_0x1197a7[_0x14e573(0x83)][_0x14e573(0x82)]][_0x14e573(0xd2)]:[_0x204ac6['anncicapi'][_0x14e573(0xc5)][_0x1197a7[_0x14e573(0x83)][_0x14e573(0x82)]][_0x14e573(0xd2)]];for(const _0x20f51c of _0x33f55c){if(core_1[_0x14e573(0x85)]['isClass'](_0x20f51c)||typeof _0x20f51c==_0x14e573(0xae)){const _0x410f94=await _0x1197a7[_0x14e573(0x84)][_0x14e573(0x93)](_0x20f51c);typeof(_0x410f94===null||_0x410f94===void 0x0?void 0x0:_0x410f94[_0x14e573(0xbd)])=='function'&&await _0x410f94['handler'](typeof(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7[_0x14e573(0x8f)])==_0x14e573(0xae)&&(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7[_0x14e573(0xb8)])?_0x1197a7[_0x14e573(0x8f)][_0x14e573(0xc6)]()+'@'+(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7[_0x14e573(0xb8)]):undefined,_0x1197a7,_0x19ad7d);}else core_1[_0x14e573(0x85)][_0x14e573(0xa9)](_0x20f51c)&&await _0x20f51c(typeof(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7[_0x14e573(0x8f)])==_0x14e573(0xae)&&(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7[_0x14e573(0xb8)])?_0x1197a7[_0x14e573(0x8f)]['toLowerCase']()+'@'+(_0x1197a7===null||_0x1197a7===void 0x0?void 0x0:_0x1197a7['_matchedRoute']):undefined,_0x1197a7,_0x19ad7d);}}}return await _0x3fd5a5['proceed'](..._0x3fd5a5[_0x14e573(0xa2)]);},'afterThrow':(_0x3bc0d0,_0x2f8f37)=>{throw _0x2f8f37;}};});}async[a2_0x53ae14(0xcb)](){const _0x32db57=a2_0x53ae14;this[_0x32db57(0xa6)]['getApplications']([_0x32db57(0x9a)])[_0x32db57(0x9d)](_0x517de8=>{const _0x1308ee=_0x32db57;(_0x517de8===null||_0x517de8===void 0x0?void 0x0:_0x517de8['context'])&&Object[_0x1308ee(0xc3)](_0x517de8[_0x1308ee(0xdc)],{'ok':{'value':function(_0x583b05,_0x1905c4,_0x2a3ea2=0x0){return{'code':_0x2a3ea2,'data':_0x583b05,'extra':_0x1905c4};}},'input':{'value':function(_0x355e9f,_0x31dc0e){const _0x8e455d=_0x1308ee;var _0x5573b5;const _0x4f834c=lodash['defaultsDeep']({},this['request'][_0x8e455d(0xc4)]||this[_0x8e455d(0xc8)][((_0x5573b5=config===null||config===void 0x0?void 0x0:config[_0x8e455d(0xb0)])===null||_0x5573b5===void 0x0?void 0x0:_0x5573b5[_0x8e455d(0xbf)])||'body']||{},this[_0x8e455d(0xc8)]['query']||{});return _0x355e9f?lodash[_0x8e455d(0xca)](_0x4f834c,_0x355e9f,_0x31dc0e):_0x4f834c;}},'when':{'value':async function(_0x2a5045,_0x4f298e){const _0x1e3dcf=_0x1308ee,_0x1e04ca=this[_0x1e3dcf(0xb4)](_0x2a5045,null);if(!lodash[_0x1e3dcf(0x98)](_0x1e04ca))return await _0x4f298e(_0x1e04ca);}},'only':{'value':function(_0xacc08a){const _0x38e983=_0x1308ee,_0x15f32f={};for(let _0x86ddc8=0x0;_0x86ddc8<_0xacc08a[_0x38e983(0x92)];_0x86ddc8++){lodash[_0x38e983(0xa4)](_0xacc08a[_0x86ddc8])&&_0xacc08a[_0x86ddc8]['length']>0x0&&lodash['isString'](_0xacc08a[_0x86ddc8][0x0])&&(_0x15f32f[_0xacc08a[_0x86ddc8][0x0]]=this[_0x38e983(0xb4)](_0xacc08a[_0x86ddc8][0x0],_0xacc08a[_0x86ddc8][_0x38e983(0x92)]>0x1?_0xacc08a[_0x86ddc8][0x1]:null));}return _0x15f32f;}}});});}async['filterConfig'](){const _0x2434e5=a2_0x53ae14;var _0x468291,_0x3ac4a0,_0x170a5a,_0x47d08c,_0x24a09d,_0x4ebc65;const _0xed009e=this[_0x2434e5(0xd6)][_0x2434e5(0xb6)]();((_0x3ac4a0=(_0x468291=_0xed009e===null||_0xed009e===void 0x0?void 0x0:_0xed009e[_0x2434e5(0x8e)])===null||_0x468291===void 0x0?void 0x0:_0x468291['devices'])===null||_0x3ac4a0===void 0x0?void 0x0:_0x3ac4a0['DEFAULT'])&&Object[_0x2434e5(0xb5)](_0xed009e['anncicapi'][_0x2434e5(0xc5)])[_0x2434e5(0x92)]>0x1&&delete _0xed009e[_0x2434e5(0x8e)][_0x2434e5(0xc5)][_0x2434e5(0xc2)];if((_0x170a5a=_0xed009e===null||_0xed009e===void 0x0?void 0x0:_0xed009e[_0x2434e5(0x8c)])===null||_0x170a5a===void 0x0?void 0x0:_0x170a5a[_0x2434e5(0xab)])for(const _0x512649 in _0xed009e[_0x2434e5(0x8c)]['dirs']){((_0x47d08c=_0xed009e[_0x2434e5(0x8c)][_0x2434e5(0xab)][_0x512649])===null||_0x47d08c===void 0x0?void 0x0:_0x47d08c['dir'])&&typeof((_0x24a09d=_0xed009e[_0x2434e5(0x8c)][_0x2434e5(0xab)][_0x512649])===null||_0x24a09d===void 0x0?void 0x0:_0x24a09d[_0x2434e5(0xd9)])==_0x2434e5(0xae)&&!fs[_0x2434e5(0x90)](_0xed009e[_0x2434e5(0x8c)]['dirs'][_0x512649][_0x2434e5(0xd9)])&&(fs[_0x2434e5(0xc0)](_0xed009e[_0x2434e5(0x8c)]['dirs'][_0x512649][_0x2434e5(0xd9)],{'recursive':!![]}),console['log'](_0x2434e5(0x87)+_0xed009e[_0x2434e5(0x8c)][_0x2434e5(0xab)][_0x512649][_0x2434e5(0xd9)]));}((_0x4ebc65=_0xed009e===null||_0xed009e===void 0x0?void 0x0:_0xed009e['upload'])===null||_0x4ebc65===void 0x0?void 0x0:_0x4ebc65['tmpdir'])&&!fs[_0x2434e5(0x90)](_0xed009e['upload'][_0x2434e5(0x95)])&&(fs[_0x2434e5(0xc0)](_0xed009e[_0x2434e5(0xd8)][_0x2434e5(0x95)],{'recursive':!![]}),console[_0x2434e5(0xd7)](_0x2434e5(0x91)+_0xed009e[_0x2434e5(0xd8)][_0x2434e5(0x95)])),this[_0x2434e5(0xd6)][_0x2434e5(0x94)](_0xed009e);}};function a2_0x5450(){const _0x262486=['getAsync','addObject','tmpdir','registerMethodHandler','5914CxtYgm','isNull','design:type','koa','__metadata','filterConfig','forEach','1239129WJDYwT','metadata','85TMorqM','MidwayConfigService','args','3856664eDRYDu','isArray','./types/action','application','HEADERS_SIGNATURE','ApiError','isFunction','anncic-apihelper','dirs','prototype','@midwayjs/core','string','6CSEChC','bodyXml','@midwayjs/cross-domain','1015191JIfrOs','Configuration','input','keys','getConfiguration','@anncic-api/cache','_matchedRoute','Inject','object','defineProperty','checkConfigKeys','handler','target','key','mkdirSync','function','DEFAULT','defineProperties','body','devices','toLowerCase','1741910VofrxL','request','@midwayjs/static-file','get','hanlderApplications','12021713KwDxnP','decorator','2108yhtWwu','REQUEST_OBJ_CTX_KEY','ApiService','5570RvgIrw','intercept','anncic-api','@midwayjs/koa','MidwayDecoratorService','config','log','upload','dir','./exception/ApiError','MidwayApplicationManager','context','8nyfuDN','@midwayjs/upload','@anncic-api/validator','device','headers','requestContext','Types','handlerActionRoute','Anncic-api\x20static-file\x20:\x20mkdir\x20','__decorate','apimit','CustomConfiguration','onReady','staticFile','./config/config.production','anncicapi','method','existsSync','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','length'];a2_0x5450=function(){return _0x262486;};return a2_0x5450();}__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x53ae14(0x99),core_2[a2_0x53ae14(0xa1)])],CustomConfiguration['prototype'],a2_0x53ae14(0xd6),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x53ae14(0x99),core_2[a2_0x53ae14(0xd5)])],CustomConfiguration['prototype'],a2_0x53ae14(0xcd),void 0x0),__decorate([(0x0,core_1[a2_0x53ae14(0xb9)])(),__metadata(a2_0x53ae14(0x99),core_2[a2_0x53ae14(0xdb)])],CustomConfiguration[a2_0x53ae14(0xac)],a2_0x53ae14(0xa6),void 0x0),__decorate([(0x0,core_1[a2_0x53ae14(0xb9)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x53ae14(0xac)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x53ae14(0xb9)])(),__metadata(a2_0x53ae14(0x99),ApiService_1[a2_0x53ae14(0xd0)])],CustomConfiguration[a2_0x53ae14(0xac)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x53ae14(0xb3)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x53ae14(0xd3),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x53ae14(0x8a)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x248472=a3_0x1004;(function(_0xec93cc,_0x23871b){const _0x38b183=a3_0x1004,_0x59fe7a=_0xec93cc();while(!![]){try{const _0x4c4ed5=parseInt(_0x38b183(0x184))/0x1*(-parseInt(_0x38b183(0x163))/0x2)+-parseInt(_0x38b183(0x165))/0x3*(parseInt(_0x38b183(0x15c))/0x4)+parseInt(_0x38b183(0x180))/0x5*(-parseInt(_0x38b183(0x161))/0x6)+-parseInt(_0x38b183(0x170))/0x7*(-parseInt(_0x38b183(0x16a))/0x8)+parseInt(_0x38b183(0x15a))/0x9+-parseInt(_0x38b183(0x189))/0xa+parseInt(_0x38b183(0x154))/0xb*(parseInt(_0x38b183(0x188))/0xc);if(_0x4c4ed5===_0x23871b)break;else _0x59fe7a['push'](_0x59fe7a['shift']());}catch(_0x178ff4){_0x59fe7a['push'](_0x59fe7a['shift']());}}}(a3_0x4200,0x1c723));Object[a3_0x248472(0x162)](exports,a3_0x248472(0x169),{'value':!![]}),exports['parseRoute']=exports['Action']=void 0x0;const fs=require('fs'),core_1=require(a3_0x248472(0x17a)),action_1=require('../types/action');function a3_0x4200(){const _0x2a8a75=['435vCVoJE','match','saveModule','app/controller/','__esModule','48lgbJsp','\x20文件请放在apps/','indexOf','parseRoute','AppsConfigTmp','prefix','178283Ajfcvb','replace','ACTION_KEY','substring','push','middlewareIgnore','APPSCONFIG_KEY','middleware','endsWith','join','@midwayjs/core','splice','getClassMetadata','apps/','split','\x20文件请放在app/controller/文件下','395tWmwrF','-controller','trim','filter','121iudDNi','/controller/','/apps/','filepath','12RIygUV','97900xrhbtB','193996tkcoEZ','-action','toLowerCase','startsWith','isArray','length','1754775UIuhIE','saveClassMetadata','3408KDUanr','Controller','module','route','/config.','4266uZKPsa','defineProperty','982oePDfP','tagName'];a3_0x4200=function(){return _0x2a8a75;};return a3_0x4200();}function Action(_0x2c742e,_0x4dc217,_0xea2c7c={'middleware':[],'sensitive':!![]}){return _0x43e73b=>{const _0x18a6ef=a3_0x1004;_0xea2c7c[_0x18a6ef(0x164)]=_0x4dc217;const _0x4a7b37=parseRoute(_0x2c742e);if(_0x4a7b37[_0x18a6ef(0x15e)]){_0xea2c7c[_0x18a6ef(0x16f)]=_0xea2c7c['prefix']?'/'+_0x4a7b37[_0x18a6ef(0x15e)]+'/'+_0xea2c7c[_0x18a6ef(0x16f)]:'/'+_0x4a7b37[_0x18a6ef(0x15f)];_0x4a7b37[_0x18a6ef(0x16f)]&&(_0xea2c7c[_0x18a6ef(0x16f)]='/'+_0x4a7b37[_0x18a6ef(0x16f)]+'/'+_0xea2c7c[_0x18a6ef(0x16f)]);if(fs['existsSync'](_0x4a7b37['rootpath']+_0x18a6ef(0x186)+_0x4a7b37[_0x18a6ef(0x15e)]+_0x18a6ef(0x160)+(lodash[_0x18a6ef(0x178)](_0x4a7b37[_0x18a6ef(0x187)],'ts')?'ts':'js'))){const _0xb9f78f=include(_0x4a7b37['rootpath']+_0x18a6ef(0x186)+_0x4a7b37['module']+_0x18a6ef(0x160)+(lodash['endsWith'](_0x4a7b37[_0x18a6ef(0x187)],'ts')?'ts':'js'));if(_0xb9f78f[_0x18a6ef(0x177)]&&lodash[_0x18a6ef(0x158)](_0xb9f78f[_0x18a6ef(0x177)])&&_0xb9f78f[_0x18a6ef(0x177)][_0x18a6ef(0x159)]>0x0)for(let _0x17fd52 in _0xb9f78f[_0x18a6ef(0x177)]){_0xb9f78f[_0x18a6ef(0x175)]['indexOf'](_0xb9f78f[_0x18a6ef(0x177)][_0x17fd52])==-0x1&&_0xea2c7c['middleware'][_0x18a6ef(0x174)](_0xb9f78f[_0x18a6ef(0x177)][_0x17fd52]);}const _0x2e8264=(0x0,core_1[_0x18a6ef(0x17c)])(action_1[_0x18a6ef(0x176)],action_1[_0x18a6ef(0x16e)])||{};_0x2e8264[''+_0x4a7b37['module']]=_0xb9f78f,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x2e8264,action_1[_0x18a6ef(0x16e)]);}_0xea2c7c[_0x18a6ef(0x16f)]=_0xea2c7c[_0x18a6ef(0x16f)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x18a6ef(0x167)])(action_1[_0x18a6ef(0x172)],_0x43e73b),(0x0,core_1[_0x18a6ef(0x15d)])(_0xea2c7c[_0x18a6ef(0x16f)],_0xea2c7c)(_0x43e73b),(0x0,core_1['saveClassMetadata'])(action_1[_0x18a6ef(0x172)],{'prefix':_0xea2c7c[_0x18a6ef(0x16f)],'pprefix':_0x4a7b37[_0x18a6ef(0x16f)],'module':_0x4a7b37[_0x18a6ef(0x15e)],'filepath':_0x4a7b37[_0x18a6ef(0x187)],'routerOptions':_0xea2c7c},_0x43e73b);}else _0xea2c7c['prefix']=_0xea2c7c[_0x18a6ef(0x16f)]?'/'+_0xea2c7c[_0x18a6ef(0x16f)]:'/'+_0x4a7b37[_0x18a6ef(0x15f)],_0x4a7b37[_0x18a6ef(0x16f)]&&(_0xea2c7c[_0x18a6ef(0x16f)]='/'+_0x4a7b37[_0x18a6ef(0x16f)]+'/'+_0xea2c7c[_0x18a6ef(0x16f)]),_0xea2c7c[_0x18a6ef(0x16f)]=_0xea2c7c['prefix']['toLowerCase']()[_0x18a6ef(0x171)](/\/{2,}/g,'/'),(0x0,core_1[_0x18a6ef(0x167)])(action_1[_0x18a6ef(0x172)],_0x43e73b),(0x0,core_1[_0x18a6ef(0x15d)])(_0xea2c7c[_0x18a6ef(0x16f)],_0xea2c7c)(_0x43e73b),(0x0,core_1[_0x18a6ef(0x15b)])(action_1['ACTION_KEY'],{'prefix':_0xea2c7c[_0x18a6ef(0x16f)],'module':_0x4a7b37['module'],'pprefix':_0x4a7b37[_0x18a6ef(0x16f)],'filepath':_0x4a7b37[_0x18a6ef(0x187)],'routerOptions':_0xea2c7c},_0x43e73b);};}exports['Action']=Action;function a3_0x1004(_0x14bf59,_0x57405e){const _0x42004c=a3_0x4200();return a3_0x1004=function(_0x1004c6,_0xf265b5){_0x1004c6=_0x1004c6-0x154;let _0x574915=_0x42004c[_0x1004c6];return _0x574915;},a3_0x1004(_0x14bf59,_0x57405e);}function parseRoute(_0x7cbd72){const _0x5f14a8=a3_0x248472;_0x7cbd72=_0x7cbd72['replace'](/(\\|\/)/g,'/');const _0x4e5dae=process['cwd']()[_0x5f14a8(0x171)](/(\\|\/)/g,'/'),_0x401b33=_0x7cbd72[_0x5f14a8(0x173)](0x0,_0x4e5dae['length']+_0x7cbd72[_0x5f14a8(0x173)](_0x4e5dae['length']+0x1)[_0x5f14a8(0x16c)]('/')+0x1),_0xb65f23=_0x7cbd72[_0x5f14a8(0x173)](_0x401b33[_0x5f14a8(0x159)]+0x1)[_0x5f14a8(0x171)](/(\\|\/)/g,'/'),_0x176505={'route':'','prefix':![],'module':![],'rootpath':_0x401b33,'filepath':_0xb65f23};if(_0xb65f23[_0x5f14a8(0x157)](_0x5f14a8(0x168))){const _0x2f2f02=_0xb65f23[_0x5f14a8(0x173)](_0x5f14a8(0x168)['length'])[_0x5f14a8(0x17e)]('/')[_0x5f14a8(0x183)](_0x405e00=>_0x405e00&&_0x405e00['trim']());return _0x2f2f02[_0x5f14a8(0x159)]>0x1&&(_0x176505[_0x5f14a8(0x16f)]=_0x2f2f02[0x0]['toLowerCase'](),_0x2f2f02[_0x5f14a8(0x17b)](0x0,0x1)),_0x176505[_0x5f14a8(0x15f)]=('/'+_0x2f2f02[_0x5f14a8(0x179)]('/'))[_0x5f14a8(0x171)](/(\.ts|\.js)$/,'')[_0x5f14a8(0x171)](/\/{2,}/g,'/')[_0x5f14a8(0x166)](/[\/|A-Z]*[^A-Z]+/g)[_0x5f14a8(0x179)]('-')['toLowerCase']()[_0x5f14a8(0x171)](/\/\-/g,'/'),_0x176505[_0x5f14a8(0x15f)][_0x5f14a8(0x178)](_0x5f14a8(0x155))&&(_0x176505[_0x5f14a8(0x15f)]=_0x176505[_0x5f14a8(0x15f)]['substring'](0x0,_0x176505[_0x5f14a8(0x15f)][_0x5f14a8(0x159)]-0x7)),_0x176505['route'][_0x5f14a8(0x178)](_0x5f14a8(0x181))&&(_0x176505['route']=_0x176505[_0x5f14a8(0x15f)]['substring'](0x0,_0x176505['route'][_0x5f14a8(0x159)]-0xb)),_0x176505;}else{if(_0xb65f23[_0x5f14a8(0x157)](_0x5f14a8(0x17d))){const _0x3b731a=_0xb65f23['substring'](0x0,_0xb65f23['indexOf'](_0x5f14a8(0x186))+0x5),_0x4a5d2d=_0xb65f23[_0x5f14a8(0x173)](_0x3b731a[_0x5f14a8(0x159)]+0x1)[_0x5f14a8(0x171)](/(\\|\/)/g,'/')[_0x5f14a8(0x17e)]('/')[0x0];if(_0xb65f23[_0x5f14a8(0x157)]('apps/'+_0x4a5d2d+'/controller/')){const _0xfcc173=_0xb65f23[_0x5f14a8(0x173)]((_0x3b731a+'/'+_0x4a5d2d+_0x5f14a8(0x185))[_0x5f14a8(0x159)])[_0x5f14a8(0x17e)]('/')[_0x5f14a8(0x183)](_0x3710da=>_0x3710da&&_0x3710da[_0x5f14a8(0x182)]());return _0xfcc173['length']>0x1&&(_0x176505['prefix']=_0xfcc173[0x0][_0x5f14a8(0x156)](),_0xfcc173[_0x5f14a8(0x17b)](0x0,0x1)),_0x176505['module']=_0x4a5d2d,_0x176505[_0x5f14a8(0x15f)]=('/'+_0x4a5d2d+'/'+_0xfcc173[_0x5f14a8(0x179)]('/'))[_0x5f14a8(0x171)](/(\.ts|\.js)$/,'')[_0x5f14a8(0x171)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x5f14a8(0x156)]()[_0x5f14a8(0x171)](/\/\-/g,'/'),_0x176505[_0x5f14a8(0x15f)]['endsWith']('-action')&&(_0x176505[_0x5f14a8(0x15f)]=_0x176505[_0x5f14a8(0x15f)][_0x5f14a8(0x173)](0x0,_0x176505['route'][_0x5f14a8(0x159)]-0x7)),_0x176505[_0x5f14a8(0x15f)][_0x5f14a8(0x178)](_0x5f14a8(0x181))&&(_0x176505[_0x5f14a8(0x15f)]=_0x176505[_0x5f14a8(0x15f)]['substring'](0x0,_0x176505['route'][_0x5f14a8(0x159)]-0xb)),_0x176505;}throw new Error(_0xb65f23+_0x5f14a8(0x16b)+_0x4a5d2d+'/controller/文件下');}}throw new Error(_0xb65f23+_0x5f14a8(0x17f));}exports[a3_0x248472(0x16d)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x1fa374=a4_0x2ea6;(function(_0x1c3a71,_0x1e6e7c){const _0x2c161b=a4_0x2ea6,_0x1f1f01=_0x1c3a71();while(!![]){try{const _0x19fb35=-parseInt(_0x2c161b(0x9a))/0x1+parseInt(_0x2c161b(0x89))/0x2*(parseInt(_0x2c161b(0x95))/0x3)+parseInt(_0x2c161b(0x8c))/0x4+-parseInt(_0x2c161b(0x97))/0x5+-parseInt(_0x2c161b(0x87))/0x6+-parseInt(_0x2c161b(0x98))/0x7+parseInt(_0x2c161b(0x93))/0x8;if(_0x19fb35===_0x1e6e7c)break;else _0x1f1f01['push'](_0x1f1f01['shift']());}catch(_0x5a02cf){_0x1f1f01['push'](_0x1f1f01['shift']());}}}(a4_0x15c0,0x5466c));function a4_0x15c0(){const _0x37ff2d=['13704232ZTPNgC','middlewareIgnore','48CoBpEN','defineProperty','3401665rVxODp','993363mCcJaO','RequestMapping','557271TgNqFe','__esModule','routerName','delete','get','length','assign','del','filter','validationOptions','2722602Jjznrt','description','24298HYmLVJ','toLowerCase','@midwayjs/core','1086300eQlmoj','apimit','ACTION_ROUTE_KEY','middleware','createCustomMethodDecorator','string','Api'];a4_0x15c0=function(){return _0x37ff2d;};return a4_0x15c0();}Object[a4_0x1fa374(0x96)](exports,a4_0x1fa374(0x9b),{'value':!![]}),exports[a4_0x1fa374(0x92)]=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x1fa374(0x8b)),action_1=require('../types/action');function a4_0x2ea6(_0x582ba8,_0x2ac022){const _0x15c08e=a4_0x15c0();return a4_0x2ea6=function(_0x2ea68f,_0x1d56f1){_0x2ea68f=_0x2ea68f-0x84;let _0x1c4c10=_0x15c08e[_0x2ea68f];return _0x1c4c10;},a4_0x2ea6(_0x582ba8,_0x2ac022);}function Api(_0x477e78,_0x252134=a4_0x1fa374(0x9e),_0x3fd4dd='/',_0x556b84={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x685f63,_0x2bf748,_0x4545bf)=>{const _0x317b69=a4_0x2ea6;var _0x2e1da4,_0x2bbb74,_0x733acf;!_0x556b84[_0x317b69(0x8f)]&&(_0x556b84[_0x317b69(0x8f)]=[]);!((_0x2e1da4=_0x556b84===null||_0x556b84===void 0x0?void 0x0:_0x556b84['validate'])===null||_0x2e1da4===void 0x0?void 0x0:_0x2e1da4[_0x317b69(0x86)])&&(_0x556b84['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x317b69(0x91)}});if(((_0x2bbb74=_0x556b84===null||_0x556b84===void 0x0?void 0x0:_0x556b84['middleware'])===null||_0x2bbb74===void 0x0?void 0x0:_0x2bbb74[_0x317b69(0x9f)])>0x0&&((_0x733acf=_0x556b84===null||_0x556b84===void 0x0?void 0x0:_0x556b84[_0x317b69(0x94)])===null||_0x733acf===void 0x0?void 0x0:_0x733acf[_0x317b69(0x9f)])>0x0)for(let _0x268dfc in _0x556b84[_0x317b69(0x8f)]){_0x556b84['middlewareIgnore']['indexOf'](_0x556b84[_0x317b69(0x8f)][_0x268dfc])!==-0x1&&(_0x556b84['middleware'][_0x268dfc]=null);}_0x556b84[_0x317b69(0x9c)]=_0x477e78,(0x0,validator_1['Validator'])(_0x556b84['validate'])(_0x685f63,_0x2bf748,_0x4545bf),(0x0,core_1[_0x317b69(0x99)])(Object[_0x317b69(0xa0)](_0x556b84,{'path':_0x3fd4dd,'requestMethod':(_0x252134=='del'?_0x317b69(0x9d):_0x252134)[_0x317b69(0x8a)]()}))(_0x685f63,_0x2bf748,_0x4545bf),(0x0,core_1['attachClassMetadata'])(action_1[_0x317b69(0x8e)],{'path':_0x3fd4dd,'method':_0x2bf748,'apimit':_0x556b84[_0x317b69(0x8d)],'routerName':_0x556b84[_0x317b69(0x9c)],'description':_0x556b84[_0x317b69(0x88)],'middleware':(_0x556b84[_0x317b69(0x8f)]||[])[_0x317b69(0x85)](_0x1a84a7=>!!_0x1a84a7),'requestMethod':(_0x252134==_0x317b69(0x84)?_0x317b69(0x9d):_0x252134)[_0x317b69(0x8a)]()},_0x685f63),(0x0,core_1[_0x317b69(0x90)])(action_1[_0x317b69(0x8e)],{'path':_0x3fd4dd,'method':_0x2bf748,'apimit':_0x556b84['apimit'],'routerName':_0x556b84[_0x317b69(0x9c)],'description':_0x556b84[_0x317b69(0x88)],'middleware':(_0x556b84[_0x317b69(0x8f)]||[])[_0x317b69(0x85)](_0x5e73bd=>!!_0x5e73bd),'requestMethod':(_0x252134==_0x317b69(0x84)?'delete':_0x252134)['toLowerCase']()})(_0x685f63,_0x2bf748,_0x4545bf);};}exports[a4_0x1fa374(0x92)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x594cba=a5_0x36f6;(function(_0x5445bc,_0x2a8baf){const _0x401440=a5_0x36f6,_0xf493fd=_0x5445bc();while(!![]){try{const _0x5e7f10=parseInt(_0x401440(0x1cd))/0x1+parseInt(_0x401440(0x1b8))/0x2+parseInt(_0x401440(0x1bc))/0x3*(parseInt(_0x401440(0x1c7))/0x4)+-parseInt(_0x401440(0x1b7))/0x5*(-parseInt(_0x401440(0x1c1))/0x6)+-parseInt(_0x401440(0x1bb))/0x7+-parseInt(_0x401440(0x1c8))/0x8+parseInt(_0x401440(0x1c9))/0x9*(parseInt(_0x401440(0x1cb))/0xa);if(_0x5e7f10===_0x2a8baf)break;else _0xf493fd['push'](_0xf493fd['shift']());}catch(_0x1515d2){_0xf493fd['push'](_0xf493fd['shift']());}}}(a5_0x3b96,0x4130e));function a5_0x3b96(){const _0x3b31bc=['filepath','ApitestService','app','4kmIJEt','907400pNbQFI','224568DdXReq','apidoc','10jPNWCH','value','107851yhWAmk','REQUEST_OBJ_CTX_KEY','RequestMapping','get','/apitest','getApplicationContext','10DgbCbN','288222FnOLxf','__esModule','@midwayjs/core','2528596pCaQuz','862935DFSeFR','../service/ApitestService','Apitest','apitest','isDevelopmentEnvironment','531348KzLHOP','getConfig','defineProperty'];a5_0x3b96=function(){return _0x3b31bc;};return a5_0x3b96();}Object[a5_0x594cba(0x1c3)](exports,a5_0x594cba(0x1b9),{'value':!![]}),exports[a5_0x594cba(0x1be)]=void 0x0;const core_1=require(a5_0x594cba(0x1ba)),ApitestService_1=require(a5_0x594cba(0x1bd));function a5_0x36f6(_0x40e34d,_0x5ccabb){const _0x3b96c3=a5_0x3b96();return a5_0x36f6=function(_0x36f68,_0x3f752d){_0x36f68=_0x36f68-0x1b3;let _0x26bcb5=_0x3b96c3[_0x36f68];return _0x26bcb5;},a5_0x36f6(_0x40e34d,_0x5ccabb);}function Apitest(_0x189380=a5_0x594cba(0x1b5),_0x22c195){return(_0x19f485,_0x8a3d87,_0x17d5b9)=>{const _0x1908b6=a5_0x36f6;return(0x0,core_1[_0x1908b6(0x1b3)])({'path':_0x189380,'requestMethod':_0x1908b6(0x1b4)})(_0x19f485,_0x8a3d87,_0x17d5b9),_0x17d5b9[_0x1908b6(0x1cc)]=async function(..._0x70792a){const _0xbc41f2=_0x1908b6;var _0x2fb588;const _0x25221e=(_0x2fb588=this[core_1[_0xbc41f2(0x1ce)]])===null||_0x2fb588===void 0x0?void 0x0:_0x2fb588[_0xbc41f2(0x1c6)];if(_0x25221e&&_0x25221e[_0xbc41f2(0x1c2)](_0xbc41f2(0x1bf))){const _0x4471b4=await _0x25221e['getApplicationContext']()['getAsync'](ApitestService_1[_0xbc41f2(0x1c5)]),_0x510254=await _0x25221e[_0xbc41f2(0x1b6)]()['getAsync'](core_1['MidwayEnvironmentService']);return _0x510254[_0xbc41f2(0x1c0)]()&&(_0x22c195[_0xbc41f2(0x1c4)]=!![]),await _0x4471b4[_0xbc41f2(0x1ca)](_0x22c195);}return'';},_0x17d5b9;};}exports[a5_0x594cba(0x1be)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x2e6aeb=a6_0xda53;(function(_0x28f7d2,_0x321739){var _0x2317a0=a6_0xda53,_0x167240=_0x28f7d2();while(!![]){try{var _0x5617a1=-parseInt(_0x2317a0(0x1f0))/0x1*(parseInt(_0x2317a0(0x207))/0x2)+-parseInt(_0x2317a0(0x1ff))/0x3+parseInt(_0x2317a0(0x1f9))/0x4*(-parseInt(_0x2317a0(0x1f7))/0x5)+-parseInt(_0x2317a0(0x205))/0x6+-parseInt(_0x2317a0(0x1f5))/0x7*(-parseInt(_0x2317a0(0x1f1))/0x8)+-parseInt(_0x2317a0(0x204))/0x9+parseInt(_0x2317a0(0x208))/0xa;if(_0x5617a1===_0x321739)break;else _0x167240['push'](_0x167240['shift']());}catch(_0x267f6e){_0x167240['push'](_0x167240['shift']());}}}(a6_0x127d,0x22e99));function a6_0x127d(){var _0x1c940c=['验证失败,请重新登录','HEADERS_SIGNATURE','ApiError','336603dgTeml','signature验证失败','HEADERS_CHECKCODE','HEADERS_DEVICE','metadata','2416086yFUVeP','160218luShUN','function','19566CVXxfM','6479950aCSmNz','HEADERS_LACK','__metadata','length','defineProperty','22JJlSPo','96040JFOXkb','TIMEOUT','object','__esModule','105NldwFt','design:type','5hVZFZQ','网络繁忙,请稍后重试','249940fAzBmX','decorate','请使用正确的设备'];a6_0x127d=function(){return _0x1c940c;};return a6_0x127d();}function a6_0xda53(_0x54b54f,_0x332de4){var _0x127d54=a6_0x127d();return a6_0xda53=function(_0xda53e2,_0x2ee379){_0xda53e2=_0xda53e2-0x1ef;var _0x4c61d5=_0x127d54[_0xda53e2];return _0x4c61d5;},a6_0xda53(_0x54b54f,_0x332de4);}var __decorate=this&&this['__decorate']||function(_0x4ea3a0,_0x1d24a6,_0x32fe47,_0x45be79){var _0x257f98=a6_0xda53,_0x16f9a7=arguments[_0x257f98(0x20b)],_0x363690=_0x16f9a7<0x3?_0x1d24a6:_0x45be79===null?_0x45be79=Object['getOwnPropertyDescriptor'](_0x1d24a6,_0x32fe47):_0x45be79,_0x14397e;if(typeof Reflect===_0x257f98(0x1f3)&&typeof Reflect[_0x257f98(0x1fa)]==='function')_0x363690=Reflect[_0x257f98(0x1fa)](_0x4ea3a0,_0x1d24a6,_0x32fe47,_0x45be79);else{for(var _0x1c7f22=_0x4ea3a0[_0x257f98(0x20b)]-0x1;_0x1c7f22>=0x0;_0x1c7f22--)if(_0x14397e=_0x4ea3a0[_0x1c7f22])_0x363690=(_0x16f9a7<0x3?_0x14397e(_0x363690):_0x16f9a7>0x3?_0x14397e(_0x1d24a6,_0x32fe47,_0x363690):_0x14397e(_0x1d24a6,_0x32fe47))||_0x363690;}return _0x16f9a7>0x3&&_0x363690&&Object[_0x257f98(0x1ef)](_0x1d24a6,_0x32fe47,_0x363690),_0x363690;},__metadata=this&&this[a6_0x2e6aeb(0x20a)]||function(_0xf0bfc9,_0x4990f4){var _0x409f42=a6_0x2e6aeb;if(typeof Reflect===_0x409f42(0x1f3)&&typeof Reflect[_0x409f42(0x203)]===_0x409f42(0x206))return Reflect[_0x409f42(0x203)](_0xf0bfc9,_0x4990f4);};Object[a6_0x2e6aeb(0x1ef)](exports,a6_0x2e6aeb(0x1f4),{'value':!![]}),exports[a6_0x2e6aeb(0x1fe)]=void 0x0;class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a6_0x2e6aeb(0x209)]=0x3d7e32,ApiError[a6_0x2e6aeb(0x202)]=0x3d7e33,ApiError[a6_0x2e6aeb(0x201)]=0x3d7e34,ApiError[a6_0x2e6aeb(0x1fd)]=0x3d7e35,__decorate([AnnErrorMsg(a6_0x2e6aeb(0x1f8)),__metadata(a6_0x2e6aeb(0x1f6),Object)],ApiError,a6_0x2e6aeb(0x1f2),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a6_0x2e6aeb(0x209),void 0x0),__decorate([AnnErrorMsg(a6_0x2e6aeb(0x1fb)),__metadata(a6_0x2e6aeb(0x1f6),Object)],ApiError,a6_0x2e6aeb(0x202),void 0x0),__decorate([AnnErrorMsg(a6_0x2e6aeb(0x1fc)),__metadata(a6_0x2e6aeb(0x1f6),Object)],ApiError,a6_0x2e6aeb(0x201),void 0x0),__decorate([AnnErrorMsg(a6_0x2e6aeb(0x200)),__metadata(a6_0x2e6aeb(0x1f6),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0x2e6aeb(0x1fe)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x2f66ad=a7_0x58e4;(function(_0x405d55,_0x2b8f9a){const _0x2f311f=a7_0x58e4,_0x2e7e93=_0x405d55();while(!![]){try{const _0x5185b4=parseInt(_0x2f311f(0x9a))/0x1*(-parseInt(_0x2f311f(0x93))/0x2)+-parseInt(_0x2f311f(0x8e))/0x3*(-parseInt(_0x2f311f(0x9c))/0x4)+-parseInt(_0x2f311f(0x90))/0x5+-parseInt(_0x2f311f(0x96))/0x6+parseInt(_0x2f311f(0x99))/0x7+-parseInt(_0x2f311f(0x97))/0x8+parseInt(_0x2f311f(0x92))/0x9;if(_0x5185b4===_0x2b8f9a)break;else _0x2e7e93['push'](_0x2e7e93['shift']());}catch(_0x213cf1){_0x2e7e93['push'](_0x2e7e93['shift']());}}}(a7_0x2555,0xdd103));function a7_0x58e4(_0x29599d,_0xdb70cb){const _0x25550=a7_0x2555();return a7_0x58e4=function(_0x58e4e3,_0x2ee64c){_0x58e4e3=_0x58e4e3-0x8c;let _0x1705e9=_0x25550[_0x58e4e3];return _0x1705e9;},a7_0x58e4(_0x29599d,_0xdb70cb);}Object[a7_0x2f66ad(0x91)](exports,a7_0x2f66ad(0x8f),{'value':!![]}),exports[a7_0x2f66ad(0x9b)]=void 0x0;const core_1=require(a7_0x2f66ad(0x94)),action_1=require('../types/action');function a7_0x2555(){const _0x561f29=['1446740rfSKyY','getAppsConfig','1731232FHWYXr','getClassMetadata','APPSCONFIG_KEY','6fJIVGN','__esModule','2524675jcjeAj','defineProperty','41095467ikOeXX','2SKiiHU','@midwayjs/core','get','9511902eqtmPB','13461960LiESxE','AppsConfigTmp','4854031HnMsxr'];a7_0x2555=function(){return _0x561f29;};return a7_0x2555();}function getAppsConfig(_0x18073d){const _0x737938=a7_0x2f66ad,_0x159dbd=(0x0,core_1[_0x737938(0x8c)])(action_1[_0x737938(0x8d)],action_1[_0x737938(0x98)])||{};return _0x18073d?lodash[_0x737938(0x95)](_0x159dbd,_0x18073d):_0x159dbd;}exports[a7_0x2f66ad(0x9b)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x485c3f=a8_0x1114;(function(_0x343004,_0x23692d){const _0x27d129=a8_0x1114,_0x3d54a7=_0x343004();while(!![]){try{const _0x537883=-parseInt(_0x27d129(0x191))/0x1+-parseInt(_0x27d129(0x1a0))/0x2+parseInt(_0x27d129(0x18e))/0x3+parseInt(_0x27d129(0x197))/0x4*(-parseInt(_0x27d129(0x19a))/0x5)+parseInt(_0x27d129(0x183))/0x6+parseInt(_0x27d129(0x193))/0x7*(parseInt(_0x27d129(0x176))/0x8)+-parseInt(_0x27d129(0x16c))/0x9*(-parseInt(_0x27d129(0x1a1))/0xa);if(_0x537883===_0x23692d)break;else _0x3d54a7['push'](_0x3d54a7['shift']());}catch(_0x4c76c8){_0x3d54a7['push'](_0x3d54a7['shift']());}}}(a8_0x2495,0xe6126));Object[a8_0x485c3f(0x190)](exports,a8_0x485c3f(0x1af),{'value':!![]}),exports[a8_0x485c3f(0x1b7)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x485c3f(0x18a)),core_1=require(a8_0x485c3f(0x167)),core_2=require(a8_0x485c3f(0x167)),core_3=require(a8_0x485c3f(0x167)),action_1=require(a8_0x485c3f(0x161));function a8_0x1114(_0x2486dd,_0x5b8558){const _0x2495d5=a8_0x2495();return a8_0x1114=function(_0x11148e,_0x3e5262){_0x11148e=_0x11148e-0x158;let _0x964e48=_0x2495d5[_0x11148e];return _0x964e48;},a8_0x1114(_0x2486dd,_0x5b8558);}function getRoutes(_0x19ddd3={'prefix':'/','module':![]}){const _0x502fa1=a8_0x485c3f;var _0x16300d,_0x2148ac;const _0x541c75=(0x0,core_3[_0x502fa1(0x16b)])(action_1[_0x502fa1(0x1a4)]),_0x57efca={},_0x3d4cc2=Array[_0x502fa1(0x1b3)](_0x19ddd3[_0x502fa1(0x1a7)]||[])?_0x19ddd3['filter']||[]:[_0x19ddd3[_0x502fa1(0x1a7)]];_0x3c6c07:for(const _0x55e2dc of _0x541c75){let _0x57033c=(0x0,core_3[_0x502fa1(0x17e)])(action_1[_0x502fa1(0x1a4)],_0x55e2dc),_0x118f24=(0x0,core_3[_0x502fa1(0x17e)])(action_1['ACTION_ROUTE_KEY'],_0x55e2dc);if(_0x57033c&&_0x118f24){let _0x1d1daa=_0x57033c[_0x502fa1(0x175)],_0x17eb69={};if(_0x19ddd3[_0x502fa1(0x19d)]&&(0x0,lodash_1[_0x502fa1(0x15e)])(_0x57033c,_0x502fa1(0x19d),![])!=_0x19ddd3[_0x502fa1(0x19d)])continue _0x3c6c07;else{if(_0x19ddd3[_0x502fa1(0x19d)]===![]&&!!(0x0,lodash_1[_0x502fa1(0x15e)])(_0x57033c,_0x502fa1(0x19d),null))continue _0x3c6c07;}if(_0x19ddd3['prefix']&&!_0x1d1daa['startsWith'](_0x19ddd3['prefix']))continue _0x3c6c07;_0x1d1daa!=='/'?(_0x17eb69['summary']=(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x17f)][_0x502fa1(0x1b0)])||(/^\//[_0x502fa1(0x17a)](_0x1d1daa)?_0x1d1daa[_0x502fa1(0x169)]('/')[0x1]:_0x1d1daa),_0x17eb69['description']=(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x17f)][_0x502fa1(0x1ac)])||_0x17eb69['summary'],_0x17eb69[_0x502fa1(0x18d)]=[]):(_0x17eb69[_0x502fa1(0x1a5)]=(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x17f)][_0x502fa1(0x1b0)])||_0x502fa1(0x162),_0x17eb69[_0x502fa1(0x1ac)]=(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x17f)][_0x502fa1(0x1ac)])||'',_0x17eb69[_0x502fa1(0x18d)]=[]);_0x19ddd3[_0x502fa1(0x16f)]&&(_0x17eb69[_0x502fa1(0x16f)]=_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x16f)]);(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x188)])&&(_0x17eb69[_0x502fa1(0x175)]=_0x57033c['pprefix']);(_0x57033c===null||_0x57033c===void 0x0?void 0x0:_0x57033c[_0x502fa1(0x19d)])&&(_0x17eb69['module']=_0x57033c[_0x502fa1(0x19d)]);let _0x39b121=(0x0,core_3[_0x502fa1(0x17e)])(core_2[_0x502fa1(0x18b)],_0x55e2dc)||{};if(typeof _0x118f24[Symbol['iterator']]===_0x502fa1(0x178))for(let _0x251895 of _0x118f24){let _0x2de6ba={};_0x2de6ba[_0x502fa1(0x1a3)]=_0x251895[_0x502fa1(0x16e)],_0x2de6ba[_0x502fa1(0x19e)]=(_0x1d1daa+_0x251895[_0x502fa1(0x1ab)])[_0x502fa1(0x196)](/\/{1,}/,'/'),_0x2de6ba[_0x502fa1(0x1a5)]=(_0x251895===null||_0x251895===void 0x0?void 0x0:_0x251895['routerName'])||_0x17eb69[_0x502fa1(0x1a5)]||_0x502fa1(0x162),_0x2de6ba[_0x502fa1(0x1ac)]=(_0x251895===null||_0x251895===void 0x0?void 0x0:_0x251895[_0x502fa1(0x1ac)])||'',_0x2de6ba[_0x502fa1(0x165)]=[];if(!(0x0,lodash_1[_0x502fa1(0x17b)])(_0x2de6ba[_0x502fa1(0x19e)],_0x502fa1(0x186))&&!(0x0,lodash_1[_0x502fa1(0x17b)])(_0x2de6ba[_0x502fa1(0x19e)],'/static/apitest')&&_0x3d4cc2['indexOf'](_0x2de6ba[_0x502fa1(0x19e)])===-0x1){if(!(_0x19ddd3===null||_0x19ddd3===void 0x0?void 0x0:_0x19ddd3[_0x502fa1(0x1ad)])){let _0x273b3f=(0x0,core_3[_0x502fa1(0x17c)])(new _0x55e2dc(),_0x251895['method']);for(const _0x59d5a4 in _0x273b3f){let _0x1e97c1=(_0x16300d=_0x39b121[_0x251895[_0x502fa1(0x1a3)]])===null||_0x16300d===void 0x0?void 0x0:_0x16300d[_0x502fa1(0x19f)](_0x56d2bc=>_0x56d2bc['parameterIndex']==_0x59d5a4&&_0x56d2bc[_0x502fa1(0x170)]===core_2[_0x502fa1(0x168)]&&(_0x56d2bc===null||_0x56d2bc===void 0x0?void 0x0:_0x56d2bc['metadata']));if(_0x1e97c1===null||_0x1e97c1===void 0x0?void 0x0:_0x1e97c1['metadata']){let _0x544c01=convertTypeToString(_0x1e97c1[_0x502fa1(0x198)][_0x502fa1(0x1a9)]||0x0);if([_0x502fa1(0x163),_0x502fa1(0x185)]['indexOf'](_0x544c01)!=-0x1&&_0x1e97c1[_0x502fa1(0x198)][_0x502fa1(0x1a6)][_0x502fa1(0x187)](':')==-0x1&&!_0x2de6ba[_0x502fa1(0x165)]['find'](_0x22db1f=>_0x22db1f[_0x502fa1(0x170)]==_0x1e97c1['metadata'][_0x502fa1(0x1a6)]))_0x2de6ba['request']['push']({'key':_0x1e97c1['metadata'][_0x502fa1(0x1a6)],'title':_0x1e97c1[_0x502fa1(0x198)][_0x502fa1(0x1a6)],'type':convertSchemaType(_0x273b3f[_0x1e97c1['parameterIndex']][_0x502fa1(0x18f)]),'required':![],'default':'','desc':''});else{if(_0x544c01==_0x502fa1(0x15c)){let _0x21aa3e=((_0x2148ac=_0x1e97c1===null||_0x1e97c1===void 0x0?void 0x0:_0x1e97c1[_0x502fa1(0x198)])===null||_0x2148ac===void 0x0?void 0x0:_0x2148ac[_0x502fa1(0x1a6)])||_0x502fa1(0x15c);_0x21aa3e[_0x502fa1(0x187)](':')==-0x1&&!_0x2de6ba['request'][_0x502fa1(0x19f)](_0x5d1627=>_0x5d1627[_0x502fa1(0x170)]==_0x21aa3e&&_0x5d1627[_0x502fa1(0x1a9)]==_0x502fa1(0x15c))&&_0x2de6ba[_0x502fa1(0x165)][_0x502fa1(0x195)]({'key':_0x21aa3e,'title':'文件上传-'+_0x21aa3e,'type':_0x502fa1(0x15c),'required':!![],'default':'','desc':''});}}}else{const _0x78025a=(0x0,core_3[_0x502fa1(0x1b2)])(validator_1[_0x502fa1(0x1b1)],_0x273b3f[_0x59d5a4]);_0x78025a&&_0x2de6ba[_0x502fa1(0x165)][_0x502fa1(0x195)](...getJoiRequest(_0x78025a));}}}_0x17eb69[_0x502fa1(0x18d)]['push'](_0x2de6ba);}}if(_0x17eb69[_0x502fa1(0x18d)][_0x502fa1(0x18c)]>0x0){let _0x19c180=_0x57efca[_0x1d1daa];_0x19c180?(_0x19c180['summary']!=_0x17eb69[_0x502fa1(0x1a5)]&&(_0x19c180[_0x502fa1(0x1a5)]=_0x19c180['summary']+','+_0x17eb69[_0x502fa1(0x1a5)]),_0x19c180['description']!=_0x17eb69[_0x502fa1(0x1ac)]&&(_0x19c180[_0x502fa1(0x1ac)]=_0x19c180['description']+','+_0x17eb69[_0x502fa1(0x1ac)]),_0x19c180[_0x502fa1(0x18d)]=_0x19c180[_0x502fa1(0x18d)][_0x502fa1(0x194)](_0x17eb69['routes']),_0x57efca[_0x1d1daa]=_0x19c180):_0x57efca[_0x1d1daa]=_0x17eb69;}}}return _0x57efca;}exports[a8_0x485c3f(0x1b7)]=getRoutes;function a8_0x2495(){const _0x10c085=['filepath','key','title','rules','FIELDS','QUERY','prefix','16EhJpHF','Object','function','items','test','startsWith','getMethodParamTypes','HEADERS','getClassMetadata','routerOptions','只允许:[','String','FILESTREAM','3290688LcAKBj','min','body','static/apitest','indexOf','pprefix','log','@anncic-api/validator','INJECT_CUSTOM_PARAM','length','routes','5238654mNhAhg','name','defineProperty','616644fcPsID','Boolean','4454023QQEcgx','concat','push','replace','8420TQTOZe','metadata','-array','775byCVnT','boolean','array','module','route','find','3640936lbByfk','1385170UvnzAw','limit','method','ACTION_KEY','summary','propertyData','filter','object','type','max','path','description','noreq','args','__esModule','tagName','RULES_KEY','getClassExtendedMetadata','isArray','flags.label','join','string','getRoutes','File','required','PARAM','RouteParamTypes','flags.presence','FILESSTREAM','file','number','get','allow','Number','../types/action','default','query','BODY','request','describe','@midwayjs/core','WEB_ROUTER_PARAM_KEY','split','header','listModule','9PSHSnk','keys','requestMethod'];a8_0x2495=function(){return _0x10c085;};return a8_0x2495();}function getJoiRequest(_0x4a19e9){const _0x54ed94=a8_0x485c3f,_0x4a8efc=[];for(let _0x26e369 in _0x4a19e9){const _0x37d025={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x25a8fe=typeof _0x4a19e9[_0x26e369][_0x54ed94(0x166)]=='function'?_0x4a19e9[_0x26e369][_0x54ed94(0x166)]():_0x4a19e9[_0x26e369];_0x37d025['key']=_0x26e369,_0x37d025[_0x54ed94(0x1a9)]=_0x25a8fe[_0x54ed94(0x1a9)],_0x37d025[_0x54ed94(0x171)]=(0x0,lodash_1[_0x54ed94(0x15e)])(_0x25a8fe,_0x54ed94(0x1b4),_0x26e369),_0x37d025['default']=(0x0,lodash_1[_0x54ed94(0x15e)])(_0x25a8fe,'flags.default',''),_0x37d025['required']=(0x0,lodash_1['get'])(_0x25a8fe,_0x54ed94(0x15a),'')==_0x54ed94(0x1b9),_0x37d025[_0x54ed94(0x1ac)]=(0x0,lodash_1[_0x54ed94(0x15e)])(_0x25a8fe,'flags.description','');if(_0x25a8fe[_0x54ed94(0x1a9)]==_0x54ed94(0x1a8))_0x37d025['children']=getJoiRequest(_0x25a8fe[_0x54ed94(0x16d)]);else _0x25a8fe[_0x54ed94(0x1a9)]==_0x54ed94(0x19c)&&_0x25a8fe['items']&&Array[_0x54ed94(0x1b3)](_0x25a8fe['items'])&&_0x25a8fe[_0x54ed94(0x179)][0x0]&&console[_0x54ed94(0x189)](_0x26e369+_0x54ed94(0x199),_0x25a8fe);_0x25a8fe[_0x54ed94(0x15f)]&&Array['isArray'](_0x25a8fe[_0x54ed94(0x15f)])&&_0x25a8fe[_0x54ed94(0x15f)][_0x54ed94(0x18c)]>0x0&&(_0x37d025[_0x54ed94(0x1ac)]=_0x54ed94(0x180)+_0x25a8fe[_0x54ed94(0x15f)][_0x54ed94(0x1b5)](',')+'];'+_0x37d025['description']);if(_0x37d025[_0x54ed94(0x170)]&&_0x37d025[_0x54ed94(0x1a9)]){const _0x208fa1={};for(const _0xb97bad of _0x25a8fe[_0x54ed94(0x172)]||[]){if(_0xb97bad[_0x54ed94(0x18f)]===_0x54ed94(0x184)&&_0xb97bad[_0x54ed94(0x1ae)])_0x208fa1[_0x54ed94(0x184)]=_0xb97bad[_0x54ed94(0x1ae)]['limit'];else _0xb97bad[_0x54ed94(0x18f)]==='max'&&(_0x208fa1[_0x54ed94(0x1aa)]=_0xb97bad[_0x54ed94(0x1ae)][_0x54ed94(0x1a2)]);}_0x37d025['rules']=_0x208fa1;}_0x37d025['key']&&_0x37d025['title']&&_0x4a8efc[_0x54ed94(0x195)](_0x37d025);}return _0x4a8efc;}function convertSchemaType(_0x10c11f){const _0xe2c14=a8_0x485c3f;switch(_0x10c11f){case _0xe2c14(0x177):return _0xe2c14(0x1a8);case _0xe2c14(0x192):return _0xe2c14(0x19b);case _0xe2c14(0x160):return _0xe2c14(0x15d);case _0xe2c14(0x181):return'string';case _0xe2c14(0x1b8):return _0xe2c14(0x15c);default:return _0xe2c14(0x1b6);}}function convertTypeToString(_0x34fda7){const _0x6a6672=a8_0x485c3f;switch(_0x34fda7){case core_1[_0x6a6672(0x159)][_0x6a6672(0x17d)]:return'header';case core_1[_0x6a6672(0x159)][_0x6a6672(0x174)]:return _0x6a6672(0x163);case core_1[_0x6a6672(0x159)][_0x6a6672(0x158)]:return _0x6a6672(0x1ab);case core_1[_0x6a6672(0x159)][_0x6a6672(0x164)]:return'body';case core_1[_0x6a6672(0x159)][_0x6a6672(0x173)]:case core_1[_0x6a6672(0x159)][_0x6a6672(0x15b)]:case core_1[_0x6a6672(0x159)][_0x6a6672(0x182)]:return'file';default:return _0x6a6672(0x16a);}}
|
|
1
|
+
'use strict';const a8_0x474479=a8_0x214e;(function(_0x282acb,_0xb66ff2){const _0x17e130=a8_0x214e,_0x20b494=_0x282acb();while(!![]){try{const _0x3f5991=-parseInt(_0x17e130(0x158))/0x1*(parseInt(_0x17e130(0x179))/0x2)+-parseInt(_0x17e130(0x14c))/0x3*(parseInt(_0x17e130(0x14e))/0x4)+parseInt(_0x17e130(0x152))/0x5*(-parseInt(_0x17e130(0x19a))/0x6)+-parseInt(_0x17e130(0x165))/0x7+-parseInt(_0x17e130(0x156))/0x8*(-parseInt(_0x17e130(0x19c))/0x9)+parseInt(_0x17e130(0x15a))/0xa+parseInt(_0x17e130(0x155))/0xb;if(_0x3f5991===_0xb66ff2)break;else _0x20b494['push'](_0x20b494['shift']());}catch(_0x4a8c0a){_0x20b494['push'](_0x20b494['shift']());}}}(a8_0x4b9b,0x4ab81));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x474479(0x191)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x474479(0x16e)),core_2=require('@midwayjs/core'),core_3=require(a8_0x474479(0x16e)),action_1=require('../types/action');function a8_0x4b9b(){const _0x67e098=['indexOf','find','summary','BODY','ACTION_ROUTE_KEY','ACTION_KEY','log','get','items','header','30645mrVasP','rules','88YBehTM','limit','-array','getClassMetadata','133005fDxBJa','module','file','4679620RKfcSj','16pNCWUO','required','3yLPgrs','route','2734210cAyMHb','parameterIndex','文件上传-','test','RULES_KEY','routerOptions','title','只允许:[','args','RouteParamTypes','describe','1470280vZsGwn','FIELDS','tagName','key','function','boolean','replace','flags.default','requestMethod','@midwayjs/core','FILESSTREAM','routes','iterator','FILESTREAM','min','split','keys','filepath','isArray','HEADERS','12812GCsxqP','getClassExtendedMetadata','join','object','prefix','flags.presence','startsWith','allow','description','noreq','Object','body','concat','name','flags.description','String','request','flags.label','metadata','type','children','filter','/static/apitest','pprefix','lodash','path','array','static/apitest','push','string','default','length','method','84ApRBlm','propertyData','1951245WcrObu','Number'];a8_0x4b9b=function(){return _0x67e098;};return a8_0x4b9b();}function getRoutes(_0x432ddf={'prefix':'/','module':![]}){const _0x1eda27=a8_0x474479;var _0x50318e,_0x50813a;const _0x5e8818=(0x0,core_3['listModule'])(action_1[_0x1eda27(0x1a3)]),_0x3b6e09={},_0x22a0ec=Array[_0x1eda27(0x177)](_0x432ddf[_0x1eda27(0x18e)]||[])?_0x432ddf['filter']||[]:[_0x432ddf[_0x1eda27(0x18e)]];_0x2736cb:for(const _0x467ff4 of _0x5e8818){let _0x5748e5=(0x0,core_3[_0x1eda27(0x151)])(action_1[_0x1eda27(0x1a3)],_0x467ff4),_0x2242ae=(0x0,core_3[_0x1eda27(0x151)])(action_1[_0x1eda27(0x1a2)],_0x467ff4);if(_0x5748e5&&_0x2242ae){let _0x1d03b1=_0x5748e5[_0x1eda27(0x17d)],_0x55e21c={};if(_0x432ddf[_0x1eda27(0x153)]&&(0x0,lodash_1[_0x1eda27(0x1a5)])(_0x5748e5,_0x1eda27(0x153),![])!=_0x432ddf['module'])continue _0x2736cb;else{if(_0x432ddf[_0x1eda27(0x153)]===![]&&!!(0x0,lodash_1['get'])(_0x5748e5,_0x1eda27(0x153),null))continue _0x2736cb;}if(_0x432ddf['prefix']&&!_0x1d03b1[_0x1eda27(0x17f)](_0x432ddf['prefix']))continue _0x2736cb;_0x1d03b1!=='/'?(_0x55e21c['summary']=(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5['routerOptions']['tagName'])||(/^\//[_0x1eda27(0x15d)](_0x1d03b1)?_0x1d03b1[_0x1eda27(0x174)]('/')[0x1]:_0x1d03b1),_0x55e21c[_0x1eda27(0x181)]=(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5[_0x1eda27(0x15f)]['description'])||_0x55e21c[_0x1eda27(0x1a0)],_0x55e21c[_0x1eda27(0x170)]=[]):(_0x55e21c[_0x1eda27(0x1a0)]=(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5[_0x1eda27(0x15f)][_0x1eda27(0x167)])||_0x1eda27(0x197),_0x55e21c[_0x1eda27(0x181)]=(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5['routerOptions'][_0x1eda27(0x181)])||'',_0x55e21c[_0x1eda27(0x170)]=[]);_0x432ddf[_0x1eda27(0x176)]&&(_0x55e21c[_0x1eda27(0x176)]=_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5['filepath']);(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5[_0x1eda27(0x190)])&&(_0x55e21c['prefix']=_0x5748e5[_0x1eda27(0x190)]);(_0x5748e5===null||_0x5748e5===void 0x0?void 0x0:_0x5748e5[_0x1eda27(0x153)])&&(_0x55e21c[_0x1eda27(0x153)]=_0x5748e5[_0x1eda27(0x153)]);let _0x1423e8=(0x0,core_3[_0x1eda27(0x151)])(core_2['INJECT_CUSTOM_PARAM'],_0x467ff4)||{};if(typeof _0x2242ae[Symbol[_0x1eda27(0x171)]]===_0x1eda27(0x169))for(let _0x1f8c71 of _0x2242ae){let _0x270d0e={};_0x270d0e[_0x1eda27(0x199)]=_0x1f8c71[_0x1eda27(0x16d)],_0x270d0e[_0x1eda27(0x159)]=(_0x1d03b1+_0x1f8c71[_0x1eda27(0x192)])[_0x1eda27(0x16b)](/\/{1,}/,'/'),_0x270d0e[_0x1eda27(0x1a0)]=(_0x1f8c71===null||_0x1f8c71===void 0x0?void 0x0:_0x1f8c71['routerName'])||_0x55e21c[_0x1eda27(0x1a0)]||_0x1eda27(0x197),_0x270d0e['description']=(_0x1f8c71===null||_0x1f8c71===void 0x0?void 0x0:_0x1f8c71['description'])||'',_0x270d0e['request']=[];if(!(0x0,lodash_1[_0x1eda27(0x17f)])(_0x270d0e[_0x1eda27(0x159)],_0x1eda27(0x194))&&!(0x0,lodash_1[_0x1eda27(0x17f)])(_0x270d0e[_0x1eda27(0x159)],_0x1eda27(0x18f))&&_0x22a0ec['indexOf'](_0x270d0e[_0x1eda27(0x159)])===-0x1){if(!(_0x432ddf===null||_0x432ddf===void 0x0?void 0x0:_0x432ddf[_0x1eda27(0x182)])){let _0x260be1=(0x0,core_3['getMethodParamTypes'])(new _0x467ff4(),_0x1f8c71[_0x1eda27(0x199)]);for(const _0x33ed84 in _0x260be1){let _0x4bfa9b=(_0x50318e=_0x1423e8[_0x1f8c71[_0x1eda27(0x199)]])===null||_0x50318e===void 0x0?void 0x0:_0x50318e[_0x1eda27(0x19f)](_0x1ef340=>_0x1ef340[_0x1eda27(0x15b)]==_0x33ed84&&_0x1ef340[_0x1eda27(0x168)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1ef340===null||_0x1ef340===void 0x0?void 0x0:_0x1ef340[_0x1eda27(0x18b)]));if(_0x4bfa9b===null||_0x4bfa9b===void 0x0?void 0x0:_0x4bfa9b[_0x1eda27(0x18b)]){let _0x14b089=convertTypeToString(_0x4bfa9b['metadata'][_0x1eda27(0x18c)]||0x0);if(['query',_0x1eda27(0x184)][_0x1eda27(0x19e)](_0x14b089)!=-0x1&&_0x4bfa9b[_0x1eda27(0x18b)][_0x1eda27(0x19b)][_0x1eda27(0x19e)](':')==-0x1&&!_0x270d0e[_0x1eda27(0x189)][_0x1eda27(0x19f)](_0x92c616=>_0x92c616[_0x1eda27(0x168)]==_0x4bfa9b[_0x1eda27(0x18b)][_0x1eda27(0x19b)]))_0x270d0e['request'][_0x1eda27(0x195)]({'key':_0x4bfa9b[_0x1eda27(0x18b)][_0x1eda27(0x19b)],'title':_0x4bfa9b['metadata'][_0x1eda27(0x19b)],'type':convertSchemaType(_0x260be1[_0x4bfa9b[_0x1eda27(0x15b)]][_0x1eda27(0x186)]),'required':![],'default':'','desc':''});else{if(_0x14b089=='file'){let _0xfea949=((_0x50813a=_0x4bfa9b===null||_0x4bfa9b===void 0x0?void 0x0:_0x4bfa9b['metadata'])===null||_0x50813a===void 0x0?void 0x0:_0x50813a[_0x1eda27(0x19b)])||_0x1eda27(0x154);_0xfea949[_0x1eda27(0x19e)](':')==-0x1&&!_0x270d0e[_0x1eda27(0x189)][_0x1eda27(0x19f)](_0x573a92=>_0x573a92[_0x1eda27(0x168)]==_0xfea949&&_0x573a92[_0x1eda27(0x18c)]==_0x1eda27(0x154))&&_0x270d0e['request'][_0x1eda27(0x195)]({'key':_0xfea949,'title':_0x1eda27(0x15c)+_0xfea949,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x14177e=(0x0,core_3[_0x1eda27(0x17a)])(validator_1[_0x1eda27(0x15e)],_0x260be1[_0x33ed84]);_0x14177e&&_0x270d0e[_0x1eda27(0x189)][_0x1eda27(0x195)](...getJoiRequest(_0x14177e));}}}_0x55e21c[_0x1eda27(0x170)]['push'](_0x270d0e);}}if(_0x55e21c[_0x1eda27(0x170)][_0x1eda27(0x198)]>0x0){let _0x6e4f2f=_0x3b6e09[_0x1d03b1];_0x6e4f2f?(_0x6e4f2f['summary']!=_0x55e21c[_0x1eda27(0x1a0)]&&(_0x6e4f2f[_0x1eda27(0x1a0)]=_0x6e4f2f[_0x1eda27(0x1a0)]+','+_0x55e21c[_0x1eda27(0x1a0)]),_0x6e4f2f[_0x1eda27(0x181)]!=_0x55e21c[_0x1eda27(0x181)]&&(_0x6e4f2f['description']=_0x6e4f2f[_0x1eda27(0x181)]+','+_0x55e21c['description']),_0x6e4f2f[_0x1eda27(0x170)]=_0x6e4f2f['routes'][_0x1eda27(0x185)](_0x55e21c[_0x1eda27(0x170)]),_0x3b6e09[_0x1d03b1]=_0x6e4f2f):_0x3b6e09[_0x1d03b1]=_0x55e21c;}}}return _0x3b6e09;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2664bd){const _0x1e3d98=a8_0x474479,_0x41a5a9=[];for(let _0x17f302 in _0x2664bd){const _0x1d66cd={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4f8385=typeof _0x2664bd[_0x17f302][_0x1e3d98(0x164)]==_0x1e3d98(0x169)?_0x2664bd[_0x17f302][_0x1e3d98(0x164)]():_0x2664bd[_0x17f302];_0x1d66cd[_0x1e3d98(0x168)]=_0x17f302,_0x1d66cd[_0x1e3d98(0x18c)]=_0x4f8385[_0x1e3d98(0x18c)],_0x1d66cd[_0x1e3d98(0x160)]=(0x0,lodash_1['get'])(_0x4f8385,_0x1e3d98(0x18a),_0x17f302),_0x1d66cd[_0x1e3d98(0x197)]=(0x0,lodash_1[_0x1e3d98(0x1a5)])(_0x4f8385,_0x1e3d98(0x16c),''),_0x1d66cd['required']=(0x0,lodash_1[_0x1e3d98(0x1a5)])(_0x4f8385,_0x1e3d98(0x17e),'')==_0x1e3d98(0x157),_0x1d66cd['description']=(0x0,lodash_1[_0x1e3d98(0x1a5)])(_0x4f8385,_0x1e3d98(0x187),'');if(_0x4f8385['type']==_0x1e3d98(0x17c))_0x1d66cd[_0x1e3d98(0x18d)]=getJoiRequest(_0x4f8385[_0x1e3d98(0x175)]);else _0x4f8385[_0x1e3d98(0x18c)]==_0x1e3d98(0x193)&&_0x4f8385['items']&&Array[_0x1e3d98(0x177)](_0x4f8385[_0x1e3d98(0x14a)])&&_0x4f8385[_0x1e3d98(0x14a)][0x0]&&console[_0x1e3d98(0x1a4)](_0x17f302+_0x1e3d98(0x150),_0x4f8385);_0x4f8385[_0x1e3d98(0x180)]&&Array[_0x1e3d98(0x177)](_0x4f8385[_0x1e3d98(0x180)])&&_0x4f8385['allow'][_0x1e3d98(0x198)]>0x0&&(_0x1d66cd[_0x1e3d98(0x181)]=_0x1e3d98(0x161)+_0x4f8385[_0x1e3d98(0x180)][_0x1e3d98(0x17b)](',')+'];'+_0x1d66cd[_0x1e3d98(0x181)]);if(_0x1d66cd[_0x1e3d98(0x168)]&&_0x1d66cd[_0x1e3d98(0x18c)]){const _0x25913f={};for(const _0x24a8a3 of _0x4f8385[_0x1e3d98(0x14d)]||[]){if(_0x24a8a3[_0x1e3d98(0x186)]==='min'&&_0x24a8a3[_0x1e3d98(0x162)])_0x25913f[_0x1e3d98(0x173)]=_0x24a8a3[_0x1e3d98(0x162)]['limit'];else _0x24a8a3['name']==='max'&&(_0x25913f['max']=_0x24a8a3[_0x1e3d98(0x162)][_0x1e3d98(0x14f)]);}_0x1d66cd[_0x1e3d98(0x14d)]=_0x25913f;}_0x1d66cd[_0x1e3d98(0x168)]&&_0x1d66cd['title']&&_0x41a5a9[_0x1e3d98(0x195)](_0x1d66cd);}return _0x41a5a9;}function a8_0x214e(_0x210e29,_0x5694b1){const _0x4b9b52=a8_0x4b9b();return a8_0x214e=function(_0x214e68,_0x44737c){_0x214e68=_0x214e68-0x14a;let _0x4c0563=_0x4b9b52[_0x214e68];return _0x4c0563;},a8_0x214e(_0x210e29,_0x5694b1);}function convertSchemaType(_0x15b13d){const _0x341b26=a8_0x474479;switch(_0x15b13d){case _0x341b26(0x183):return _0x341b26(0x17c);case'Boolean':return _0x341b26(0x16a);case _0x341b26(0x19d):return'number';case _0x341b26(0x188):return _0x341b26(0x196);case'File':return _0x341b26(0x154);default:return _0x341b26(0x196);}}function convertTypeToString(_0x59fa4d){const _0x1c9c72=a8_0x474479;switch(_0x59fa4d){case core_1[_0x1c9c72(0x163)][_0x1c9c72(0x178)]:return _0x1c9c72(0x14b);case core_1[_0x1c9c72(0x163)]['QUERY']:return'query';case core_1[_0x1c9c72(0x163)]['PARAM']:return _0x1c9c72(0x192);case core_1[_0x1c9c72(0x163)][_0x1c9c72(0x1a1)]:return _0x1c9c72(0x184);case core_1[_0x1c9c72(0x163)][_0x1c9c72(0x166)]:case core_1['RouteParamTypes'][_0x1c9c72(0x16f)]:case core_1[_0x1c9c72(0x163)][_0x1c9c72(0x172)]:return _0x1c9c72(0x154);default:return _0x1c9c72(0x14b);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a9_0x2c56(){var _0x42de9d=['Logger','Inject','Configuration','./helper/getAppsConfig','1193464mxWdrs','EventService','File','Apitest','getRoutes','Fields','__exportStar','ExcelService','405828soXStV','259110ITlkNj','Init','defineProperty','126NxYeSj','Api','./helper/getRoutes','888346oTeWXD','ValidatorError','ScopeEnum','__esModule','ValidatorService','./service/ExcelService','Query','./types/common','configurable','Config','./service/ApiService','./decorator/ActionApitest','./decorator/ActionApi','get','./configuration','Action','ApiService','CacheService','writable','36uazhwZ','ApiError','1519812pAQaIU','Headers','@anncic-api/event','Provide','./exception/ApiError','hasOwnProperty','@anncic-api/validator','create','CustomConfiguration','Scope','default','getAppsConfig','14GHiZUF','./decorator/Action','getOwnPropertyDescriptor','Param','@anncic-api/cache','6121810fEDfOT','Files','App','__createBinding','prototype','2883850qUueIO','Body'];a9_0x2c56=function(){return _0x42de9d;};return a9_0x2c56();}var a9_0x50904f=a9_0x142b;(function(_0x27fa13,_0x3b78b6){var _0x20135d=a9_0x142b,_0x3a17e4=_0x27fa13();while(!![]){try{var _0x3f0de8=-parseInt(_0x20135d(0xa3))/0x1+-parseInt(_0x20135d(0x84))/0x2*(-parseInt(_0x20135d(0x9d))/0x3)+parseInt(_0x20135d(0x78))/0x4+parseInt(_0x20135d(0x8e))/0x5+-parseInt(_0x20135d(0x9c))/0x6*(parseInt(_0x20135d(0xa0))/0x7)+-parseInt(_0x20135d(0x94))/0x8*(-parseInt(_0x20135d(0x76))/0x9)+parseInt(_0x20135d(0x89))/0xa;if(_0x3f0de8===_0x3b78b6)break;else _0x3a17e4['push'](_0x3a17e4['shift']());}catch(_0x48c98d){_0x3a17e4['push'](_0x3a17e4['shift']());}}}(a9_0x2c56,0xa234c));var __createBinding=this&&this[a9_0x50904f(0x8c)]||(Object[a9_0x50904f(0x7f)]?function(_0x41b66b,_0x2ee743,_0x34e233,_0x5a37aa){var _0x162fc8=a9_0x50904f;if(_0x5a37aa===undefined)_0x5a37aa=_0x34e233;var _0x20b1dd=Object[_0x162fc8(0x86)](_0x2ee743,_0x34e233);(!_0x20b1dd||(_0x162fc8(0xb0)in _0x20b1dd?!_0x2ee743[_0x162fc8(0xa6)]:_0x20b1dd[_0x162fc8(0x75)]||_0x20b1dd[_0x162fc8(0xab)]))&&(_0x20b1dd={'enumerable':!![],'get':function(){return _0x2ee743[_0x34e233];}}),Object[_0x162fc8(0x9f)](_0x41b66b,_0x5a37aa,_0x20b1dd);}:function(_0x5c46a7,_0x46cb8d,_0x44dbc3,_0x2a5979){if(_0x2a5979===undefined)_0x2a5979=_0x44dbc3;_0x5c46a7[_0x2a5979]=_0x46cb8d[_0x44dbc3];}),__exportStar=this&&this[a9_0x50904f(0x9a)]||function(_0x3693d5,_0x4e0961){var _0x56c3a6=a9_0x50904f;for(var _0xf63196 in _0x3693d5)if(_0xf63196!==_0x56c3a6(0x82)&&!Object[_0x56c3a6(0x8d)][_0x56c3a6(0x7d)]['call'](_0x4e0961,_0xf63196))__createBinding(_0x4e0961,_0x3693d5,_0xf63196);};Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0xa6),{'value':!![]}),exports[a9_0x50904f(0x83)]=exports[a9_0x50904f(0xa5)]=exports['Scope']=exports['Inject']=exports[a9_0x50904f(0x7b)]=exports[a9_0x50904f(0x90)]=exports['Config']=exports[a9_0x50904f(0x8b)]=exports[a9_0x50904f(0x9e)]=exports[a9_0x50904f(0x79)]=exports[a9_0x50904f(0xa9)]=exports['Param']=exports[a9_0x50904f(0x8f)]=exports[a9_0x50904f(0x99)]=exports[a9_0x50904f(0x8a)]=exports[a9_0x50904f(0x96)]=exports[a9_0x50904f(0x92)]=exports[a9_0x50904f(0xa7)]=exports['ValidatorError']=exports[a9_0x50904f(0x9b)]=exports[a9_0x50904f(0x73)]=exports[a9_0x50904f(0x95)]=exports[a9_0x50904f(0x74)]=exports[a9_0x50904f(0x77)]=exports[a9_0x50904f(0x98)]=exports['Apitest']=exports['Action']=exports[a9_0x50904f(0xa1)]=void 0x0;const getAppsConfig_1=require(a9_0x50904f(0x93));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x83),{'enumerable':!![],'get':function(){var _0x13264d=a9_0x50904f;return getAppsConfig_1[_0x13264d(0x83)];}}),__exportStar(require(a9_0x50904f(0xaa)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x50904f(0xaf));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0xa1),{'enumerable':!![],'get':function(){var _0x4c7d7e=a9_0x50904f;return ActionApi_1[_0x4c7d7e(0xa1)];}});var Action_1=require(a9_0x50904f(0x85));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0xb2),{'enumerable':!![],'get':function(){var _0x357193=a9_0x50904f;return Action_1[_0x357193(0xb2)];}});var ActionApitest_1=require(a9_0x50904f(0xae));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x97),{'enumerable':!![],'get':function(){var _0x17f5ba=a9_0x50904f;return ActionApitest_1[_0x17f5ba(0x97)];}});var getRoutes_1=require(a9_0x50904f(0xa2));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x98),{'enumerable':!![],'get':function(){var _0x28a811=a9_0x50904f;return getRoutes_1[_0x28a811(0x98)];}});var ApiError_1=require(a9_0x50904f(0x7c));Object[a9_0x50904f(0x9f)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x1b314c=a9_0x50904f;return ApiError_1[_0x1b314c(0x77)];}});var cache_1=require(a9_0x50904f(0x88));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x74),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x50904f(0x7a));Object['defineProperty'](exports,a9_0x50904f(0x95),{'enumerable':!![],'get':function(){return event_1['EventService'];}});function a9_0x142b(_0x16320c,_0x4fe5e4){var _0x2c56b4=a9_0x2c56();return a9_0x142b=function(_0x142bae,_0xced874){_0x142bae=_0x142bae-0x73;var _0x36a53a=_0x2c56b4[_0x142bae];return _0x36a53a;},a9_0x142b(_0x16320c,_0x4fe5e4);}var ApiService_1=require(a9_0x50904f(0xad));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x73),{'enumerable':!![],'get':function(){var _0x172580=a9_0x50904f;return ApiService_1[_0x172580(0x73)];}});var ExcelService_1=require(a9_0x50904f(0xa8));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x9b),{'enumerable':!![],'get':function(){var _0x128f20=a9_0x50904f;return ExcelService_1[_0x128f20(0x9b)];}});var validator_1=require(a9_0x50904f(0x7e));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x1686d3=a9_0x50904f;return validator_1[_0x1686d3(0xa4)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0xa7),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x50904f(0xb1));Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x92),{'enumerable':!![],'get':function(){var _0x18a9e9=a9_0x50904f;return configuration_1[_0x18a9e9(0x80)];}});var core_1=require('@midwayjs/core');Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x96),{'enumerable':!![],'get':function(){var _0x9f4029=a9_0x50904f;return core_1[_0x9f4029(0x96)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x8a),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x99),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x50904f(0x9f)](exports,'Body',{'enumerable':!![],'get':function(){var _0x7e2ee1=a9_0x50904f;return core_1[_0x7e2ee1(0x8f)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x87),{'enumerable':!![],'get':function(){var _0xb024ef=a9_0x50904f;return core_1[_0xb024ef(0x87)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0xa9),{'enumerable':!![],'get':function(){var _0x597fb6=a9_0x50904f;return core_1[_0x597fb6(0xa9)];}}),Object[a9_0x50904f(0x9f)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x1632c5=a9_0x50904f;return core_1[_0x1632c5(0x79)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x9e),{'enumerable':!![],'get':function(){var _0x2ae013=a9_0x50904f;return core_1[_0x2ae013(0x9e)];}});var core_2=require('@midwayjs/core');Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){var _0x208ed1=a9_0x50904f;return core_2[_0x208ed1(0x8b)];}}),Object[a9_0x50904f(0x9f)](exports,'Config',{'enumerable':!![],'get':function(){var _0x5d9a59=a9_0x50904f;return core_2[_0x5d9a59(0xac)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x90),{'enumerable':!![],'get':function(){var _0x1a2612=a9_0x50904f;return core_2[_0x1a2612(0x90)];}}),Object[a9_0x50904f(0x9f)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x58569b=a9_0x50904f;return core_2[_0x58569b(0x7b)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x91),{'enumerable':!![],'get':function(){var _0x54b0e5=a9_0x50904f;return core_2[_0x54b0e5(0x91)];}}),Object[a9_0x50904f(0x9f)](exports,a9_0x50904f(0x81),{'enumerable':!![],'get':function(){var _0x5975aa=a9_0x50904f;return core_2[_0x5975aa(0x81)];}}),Object[a9_0x50904f(0x9f)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x45e237=a9_0x50904f;return core_2[_0x45e237(0xa5)];}}),global[a9_0x50904f(0x83)]=getAppsConfig_1[a9_0x50904f(0x83)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x1179e5=a10_0x3b4f;(function(_0x49b617,_0x5117d5){var _0x4f42e2=a10_0x3b4f,_0x929050=_0x49b617();while(!![]){try{var _0x56db1f=-parseInt(_0x4f42e2(0x1f7))/0x1+parseInt(_0x4f42e2(0x1fd))/0x2+-parseInt(_0x4f42e2(0x1d1))/0x3+parseInt(_0x4f42e2(0x1d3))/0x4*(parseInt(_0x4f42e2(0x1f5))/0x5)+parseInt(_0x4f42e2(0x1ef))/0x6+parseInt(_0x4f42e2(0x1fc))/0x7*(parseInt(_0x4f42e2(0x1e3))/0x8)+parseInt(_0x4f42e2(0x1ee))/0x9*(-parseInt(_0x4f42e2(0x202))/0xa);if(_0x56db1f===_0x5117d5)break;else _0x929050['push'](_0x929050['shift']());}catch(_0x2be336){_0x929050['push'](_0x929050['shift']());}}}(a10_0xc973,0xea409));function a10_0xc973(){var _0x29f792=['Config','sort','Provide','function','ScopeEnum','secret=','374304rjiAIg','devices','缺少头信息:','config','checksign','crypto-js','ApiService','device','getsign','缺少头信息:signature','Scope','3677931cKZihv','10934586UmbyzW','HEADERS_SIGNATURE','token','HEADERS_CHECKCODE','toString','secret','10yxANjZ','HEADERS_DEVICE','617356WjQXLe','__metadata','length','Singleton','checkcode','7YNKQMu','2701780Gpcfuc','ApiError','defineProperty','logintime','prototype','60OnfqyU','password','abs','timeout','anncicapi','@midwayjs/core','metadata','__esModule','object','426198jKwpSZ','now','1901528AhqXHO','toLowerCase','design:type','signature','requesttime','HEADERS_LACK','MD5','decorate','map','__decorate'];a10_0xc973=function(){return _0x29f792;};return a10_0xc973();}function a10_0x3b4f(_0xf3f167,_0x5c560a){var _0xc973a8=a10_0xc973();return a10_0x3b4f=function(_0x3b4fdc,_0x1a460c){_0x3b4fdc=_0x3b4fdc-0x1d0;var _0x3965ab=_0xc973a8[_0x3b4fdc];return _0x3965ab;},a10_0x3b4f(_0xf3f167,_0x5c560a);}var __decorate=this&&this[a10_0x1179e5(0x1dc)]||function(_0x579a59,_0x267411,_0x506f68,_0x242b20){var _0x46de44=a10_0x1179e5,_0x4899e9=arguments[_0x46de44(0x1f9)],_0x3bdde2=_0x4899e9<0x3?_0x267411:_0x242b20===null?_0x242b20=Object['getOwnPropertyDescriptor'](_0x267411,_0x506f68):_0x242b20,_0x811e41;if(typeof Reflect===_0x46de44(0x1d0)&&typeof Reflect['decorate']===_0x46de44(0x1e0))_0x3bdde2=Reflect[_0x46de44(0x1da)](_0x579a59,_0x267411,_0x506f68,_0x242b20);else{for(var _0x56dc8b=_0x579a59[_0x46de44(0x1f9)]-0x1;_0x56dc8b>=0x0;_0x56dc8b--)if(_0x811e41=_0x579a59[_0x56dc8b])_0x3bdde2=(_0x4899e9<0x3?_0x811e41(_0x3bdde2):_0x4899e9>0x3?_0x811e41(_0x267411,_0x506f68,_0x3bdde2):_0x811e41(_0x267411,_0x506f68))||_0x3bdde2;}return _0x4899e9>0x3&&_0x3bdde2&&Object[_0x46de44(0x1ff)](_0x267411,_0x506f68,_0x3bdde2),_0x3bdde2;},__metadata=this&&this[a10_0x1179e5(0x1f8)]||function(_0x562e3a,_0x188169){var _0x2251a5=a10_0x1179e5;if(typeof Reflect==='object'&&typeof Reflect[_0x2251a5(0x208)]===_0x2251a5(0x1e0))return Reflect['metadata'](_0x562e3a,_0x188169);};Object['defineProperty'](exports,a10_0x1179e5(0x209),{'value':!![]}),exports[a10_0x1179e5(0x1e9)]=void 0x0;const crypto_js_1=require(a10_0x1179e5(0x1e8)),core_1=require(a10_0x1179e5(0x207)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a10_0x1179e5(0x203)](_0xd85a05){var _0x218aaa=a10_0x1179e5,_0x480450;return _0xd85a05?(0x0,crypto_js_1[_0x218aaa(0x1d9)])(_0xd85a05+(0x0,crypto_js_1[_0x218aaa(0x1d9)])((0x0,crypto_js_1[_0x218aaa(0x1d9)])(_0xd85a05)[_0x218aaa(0x1f3)]()+((_0x480450=this[_0x218aaa(0x1e6)])===null||_0x480450===void 0x0?void 0x0:_0x480450['password']))['toString']())[_0x218aaa(0x1f3)]():'';}['getcheck'](_0x238156,_0xd51c06,_0x20ae03=Date['now']()){var _0x1240f0=a10_0x1179e5;return{'Token':_0x238156,'Logintime':_0x20ae03,'Checkcode':this[_0x1240f0(0x1fb)](_0x238156,_0xd51c06,_0x20ae03)};}[a10_0x1179e5(0x1eb)](_0x39ca82={}){var _0x1dda35=a10_0x1179e5;const _0x217a57=[],_0x2da0b3=Object['fromEntries'](Object['entries'](_0x39ca82)[_0x1dda35(0x1db)](_0x9c4b59=>[_0x9c4b59[0x0][_0x1dda35(0x1d4)](),_0x9c4b59[0x1]]));for(let _0x1b5d4b of[_0x1dda35(0x1ea),'requesttime',_0x1dda35(0x1f1),_0x1dda35(0x200),_0x1dda35(0x1fb)]){if(typeof _0x2da0b3[_0x1b5d4b]=='undefined')throw new AnnError(ApiError_1[_0x1dda35(0x1fe)][_0x1dda35(0x1d8)],{'message':_0x1dda35(0x1e5)+_0x1b5d4b});_0x217a57['push'](_0x1b5d4b+'='+_0x2da0b3[_0x1b5d4b]);}if(Math[_0x1dda35(0x204)](_0x2da0b3[_0x1dda35(0x1d7)])-Date[_0x1dda35(0x1d2)]()>this[_0x1dda35(0x1e6)][_0x1dda35(0x205)])throw new AnnError(ApiError_1['ApiError']['TIMEOUT']);if(!this[_0x1dda35(0x1e6)][_0x1dda35(0x1e4)][_0x2da0b3[_0x1dda35(0x1ea)]]||!this[_0x1dda35(0x1e6)][_0x1dda35(0x1e4)][_0x2da0b3[_0x1dda35(0x1ea)]]['secret']||!this[_0x1dda35(0x1e6)]['devices'][_0x2da0b3[_0x1dda35(0x1ea)]][_0x1dda35(0x1fb)])throw new AnnError(ApiError_1[_0x1dda35(0x1fe)][_0x1dda35(0x1f6)]);if(_0x2da0b3[_0x1dda35(0x1f1)]&&_0x2da0b3[_0x1dda35(0x1fb)]!=this['checkcode'](_0x2da0b3[_0x1dda35(0x1f1)],_0x2da0b3[_0x1dda35(0x1ea)],_0x2da0b3[_0x1dda35(0x200)]))throw new AnnError(ApiError_1['ApiError'][_0x1dda35(0x1f2)]);return _0x217a57['push'](_0x1dda35(0x1e2)+this[_0x1dda35(0x1e6)]['devices'][_0x2da0b3[_0x1dda35(0x1ea)]][_0x1dda35(0x1f4)]),(0x0,crypto_js_1[_0x1dda35(0x1d9)])(_0x217a57[_0x1dda35(0x1de)]()['join'](''))[_0x1dda35(0x1f3)]();}[a10_0x1179e5(0x1fb)](_0x2a2b37,_0x5936c4,_0x157f6b=Date[a10_0x1179e5(0x1d2)]()){var _0x15c17c=a10_0x1179e5,_0x32730c,_0x48a690,_0x1b9b96;if(!((_0x32730c=this[_0x15c17c(0x1e6)])===null||_0x32730c===void 0x0?void 0x0:_0x32730c['devices'][_0x5936c4])||!((_0x1b9b96=(_0x48a690=this[_0x15c17c(0x1e6)])===null||_0x48a690===void 0x0?void 0x0:_0x48a690['devices'][_0x5936c4])===null||_0x1b9b96===void 0x0?void 0x0:_0x1b9b96[_0x15c17c(0x1fb)]))throw new AnnError(ApiError_1[_0x15c17c(0x1fe)][_0x15c17c(0x1f6)]);return(0x0,crypto_js_1[_0x15c17c(0x1d9)])(_0x2a2b37+(0x0,crypto_js_1['MD5'])(_0x157f6b+this['config'][_0x15c17c(0x1e4)][_0x5936c4][_0x15c17c(0x1fb)])[_0x15c17c(0x1f3)]())['toString']();}[a10_0x1179e5(0x1e7)](_0x116e09={}){var _0x4bbbf7=a10_0x1179e5;const _0x1c56c4=Object['fromEntries'](Object['entries'](_0x116e09)['map'](_0x576f7d=>[_0x576f7d[0x0][_0x4bbbf7(0x1d4)](),_0x576f7d[0x1]]));if(!(_0x1c56c4===null||_0x1c56c4===void 0x0?void 0x0:_0x1c56c4[_0x4bbbf7(0x1d6)]))throw new AnnError(ApiError_1['ApiError'][_0x4bbbf7(0x1d8)],{'message':_0x4bbbf7(0x1ec)});if((_0x1c56c4===null||_0x1c56c4===void 0x0?void 0x0:_0x1c56c4[_0x4bbbf7(0x1d6)])!=this[_0x4bbbf7(0x1eb)](_0x1c56c4))throw new AnnError(ApiError_1[_0x4bbbf7(0x1fe)][_0x4bbbf7(0x1f0)]);return!![];}};__decorate([(0x0,core_1[a10_0x1179e5(0x1dd)])(a10_0x1179e5(0x206)),__metadata(a10_0x1179e5(0x1d5),Object)],ApiService[a10_0x1179e5(0x201)],a10_0x1179e5(0x1e6),void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x1179e5(0x1df)])(),(0x0,core_1[a10_0x1179e5(0x1ed)])(core_1[a10_0x1179e5(0x1e1)][a10_0x1179e5(0x1fa)])],ApiService),exports[a10_0x1179e5(0x1e9)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x7cadf4=a11_0x4f52;function a11_0x4f52(_0x344672,_0x524a8b){const _0x36c115=a11_0x36c1();return a11_0x4f52=function(_0x4f5280,_0x4dc9e7){_0x4f5280=_0x4f5280-0xa0;let _0x540314=_0x36c115[_0x4f5280];return _0x540314;},a11_0x4f52(_0x344672,_0x524a8b);}(function(_0x5dafae,_0x247211){const _0x5725b9=a11_0x4f52,_0x51c71f=_0x5dafae();while(!![]){try{const _0x5cffe3=parseInt(_0x5725b9(0xb0))/0x1+-parseInt(_0x5725b9(0xcc))/0x2+parseInt(_0x5725b9(0xd3))/0x3+-parseInt(_0x5725b9(0xaa))/0x4*(-parseInt(_0x5725b9(0xa4))/0x5)+-parseInt(_0x5725b9(0xe5))/0x6+-parseInt(_0x5725b9(0xd2))/0x7*(-parseInt(_0x5725b9(0xcd))/0x8)+parseInt(_0x5725b9(0xcf))/0x9*(-parseInt(_0x5725b9(0xad))/0xa);if(_0x5cffe3===_0x247211)break;else _0x51c71f['push'](_0x51c71f['shift']());}catch(_0x568aff){_0x51c71f['push'](_0x51c71f['shift']());}}}(a11_0x36c1,0x2c2d6));var __decorate=this&&this[a11_0x7cadf4(0xbf)]||function(_0x1bf91a,_0x55aac4,_0x41fc8d,_0x438ce4){const _0x1d981c=a11_0x7cadf4;var _0x1fd770=arguments['length'],_0x1dd8fb=_0x1fd770<0x3?_0x55aac4:_0x438ce4===null?_0x438ce4=Object[_0x1d981c(0xca)](_0x55aac4,_0x41fc8d):_0x438ce4,_0x1b320e;if(typeof Reflect===_0x1d981c(0xab)&&typeof Reflect[_0x1d981c(0xac)]===_0x1d981c(0xc3))_0x1dd8fb=Reflect['decorate'](_0x1bf91a,_0x55aac4,_0x41fc8d,_0x438ce4);else{for(var _0x23eb62=_0x1bf91a[_0x1d981c(0xa9)]-0x1;_0x23eb62>=0x0;_0x23eb62--)if(_0x1b320e=_0x1bf91a[_0x23eb62])_0x1dd8fb=(_0x1fd770<0x3?_0x1b320e(_0x1dd8fb):_0x1fd770>0x3?_0x1b320e(_0x55aac4,_0x41fc8d,_0x1dd8fb):_0x1b320e(_0x55aac4,_0x41fc8d))||_0x1dd8fb;}return _0x1fd770>0x3&&_0x1dd8fb&&Object[_0x1d981c(0xa7)](_0x55aac4,_0x41fc8d,_0x1dd8fb),_0x1dd8fb;},__metadata=this&&this[a11_0x7cadf4(0xed)]||function(_0x4d9f0e,_0x296d14){const _0x15ce9a=a11_0x7cadf4;if(typeof Reflect===_0x15ce9a(0xab)&&typeof Reflect['metadata']===_0x15ce9a(0xc3))return Reflect['metadata'](_0x4d9f0e,_0x296d14);},__param=this&&this[a11_0x7cadf4(0xe1)]||function(_0x271030,_0x4fa09e){return function(_0x5ea821,_0x195540){_0x4fa09e(_0x5ea821,_0x195540,_0x271030);};};Object['defineProperty'](exports,a11_0x7cadf4(0xd6),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x7cadf4(0xcb)]=void 0x0;const path_1=require(a11_0x7cadf4(0xd5)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x7cadf4(0xec)),core_3=require('@midwayjs/core'),getRoutes_1=require(a11_0x7cadf4(0xb7));let ApitestService=class ApitestService{async[a11_0x7cadf4(0xae)](_0x1398df){const _0x1c2b41=a11_0x7cadf4,_0x152799=(0x0,getRoutes_1[_0x1c2b41(0xc2)])(_0x1398df),_0x528d93=[];for(let _0x549e6e in _0x152799){for(let _0x4029f3 in _0x152799[_0x549e6e]['routes']){let _0x35bae7=_0x152799[_0x549e6e][_0x1c2b41(0xc9)][_0x4029f3],_0x74d3ca=[];for(let _0x356998 in _0x35bae7[_0x1c2b41(0xee)]){_0x74d3ca[_0x1c2b41(0xdd)](_0x35bae7[_0x1c2b41(0xee)][_0x356998]);}_0x528d93[_0x1c2b41(0xdd)]({'title':_0x152799[_0x549e6e][_0x1c2b41(0xc7)]+':'+_0x35bae7[_0x1c2b41(0xc7)],'prefix':_0x152799[_0x549e6e]['prefix'],'router':_0x35bae7[_0x1c2b41(0xb2)],'method':_0x35bae7[_0x1c2b41(0xd9)],'describe':_0x35bae7[_0x1c2b41(0xe0)]||'','filepath':_0x152799[_0x549e6e][_0x1c2b41(0xbc)]||'','request':_0x74d3ca});}}const _0x57b20f=(0x0,path_1[_0x1c2b41(0xd7)])(__dirname,_0x1c2b41(0xe8));return(0x0,fs_1['readFileSync'])(_0x57b20f,{'encoding':_0x1c2b41(0xba)})[_0x1c2b41(0xb5)](/__res__/g,_0x1c2b41(0xe9))[_0x1c2b41(0xb5)](_0x1c2b41(0xd4),JSON['stringify'](_0x528d93))[_0x1c2b41(0xb5)](_0x1c2b41(0xa8),JSON[_0x1c2b41(0xa0)](this[_0x1c2b41(0xeb)]['devices']));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a11_0x7cadf4(0xc0),Object)],ApitestService[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xeb),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x7cadf4(0xde)])(a11_0x7cadf4(0xce)),(0x0,core_3[a11_0x7cadf4(0xea)])(core_3['ScopeEnum']['Singleton'])],ApitestService),exports[a11_0x7cadf4(0xcb)]=ApitestService;function a11_0x36c1(){const _0x405fe8=['963264veCphH','design:returntype','url','../../public/index.html','/apiteststatic/','Scope','config','@midwayjs/core','__metadata','request','stringify','Param','text/css;\x20charset=utf-8','ApitestStaticController','5LymHQB','application/javascript;\x20charset=utf-8','/index.html','defineProperty','__devices__','length','346664hYztcr','object','decorate','383170QUzvFu','apidoc','Config','354977drCfol','readFileSync','route','prototype','design:paramtypes','replace','.css','../helper/getRoutes','apitestmodule','extname','utf-8','MidwayEnvironmentService','filepath','Environment','public,\x20max-age=604800','__decorate','design:type','isDevelopmentEnvironment','getRoutes','function','ScopeEnum','apiteststatic','content-type','summary','Controller','routes','getOwnPropertyDescriptor','ApitestService','705608XkDrpN','46472xpxqTX','apitest','27kOMSTk','Inject','existsSync','168iPXeWB','684570UEGkkk','__apiList__','path','__esModule','join','/apiteststatic/*','method','ctx','.js','substring','push','Provide','Get','description','__param','/apitest','set','/apitest-:module'];a11_0x36c1=function(){return _0x405fe8;};return a11_0x36c1();}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x365110=a11_0x7cadf4;if(this['apitest']){const _0x47cbf8={'module':![]};return this[_0x365110(0xbd)][_0x365110(0xc1)]()&&(_0x47cbf8['filepath']=!![]),await this['ApitestService'][_0x365110(0xae)](_0x47cbf8);}return'';}async[a11_0x7cadf4(0xb8)](_0x23353e){const _0x36d17d=a11_0x7cadf4;if(this['apitest']){const _0x3f62c5={'module':_0x23353e};return this[_0x36d17d(0xbd)]['isDevelopmentEnvironment']()&&(_0x3f62c5[_0x36d17d(0xbc)]=!![]),await this[_0x36d17d(0xcb)]['apidoc'](_0x3f62c5);}return'';}async[a11_0x7cadf4(0xc5)](){const _0x1270b5=a11_0x7cadf4;if((0x0,path_1[_0x1270b5(0xb9)])(this['ctx'][_0x1270b5(0xee)][_0x1270b5(0xe7)])){var _0x2d6410=(0x0,path_1[_0x1270b5(0xd7)])(__dirname,'../../public/'+this[_0x1270b5(0xda)][_0x1270b5(0xee)][_0x1270b5(0xe7)][_0x1270b5(0xb5)]('/apiteststatic/','/'));if(_0x2d6410[_0x1270b5(0xdc)](_0x2d6410[_0x1270b5(0xa9)]-0xb)!=_0x1270b5(0xa6)){this['ctx'][_0x1270b5(0xe3)]('cache-control',_0x1270b5(0xbe));if((0x0,path_1[_0x1270b5(0xb9)])(this[_0x1270b5(0xda)][_0x1270b5(0xee)][_0x1270b5(0xe7)])==_0x1270b5(0xdb))this[_0x1270b5(0xda)][_0x1270b5(0xe3)](_0x1270b5(0xc6),_0x1270b5(0xa5));else(0x0,path_1[_0x1270b5(0xb9)])(this[_0x1270b5(0xda)][_0x1270b5(0xee)][_0x1270b5(0xe7)])==_0x1270b5(0xb6)&&this[_0x1270b5(0xda)][_0x1270b5(0xe3)](_0x1270b5(0xc6),_0x1270b5(0xa2));return(0x0,fs_1[_0x1270b5(0xd1)])(_0x2d6410)&&(0x0,fs_1[_0x1270b5(0xb1)])(_0x2d6410,{'encoding':_0x1270b5(0xba)});}}return'';}};__decorate([(0x0,core_3[a11_0x7cadf4(0xd0)])(),__metadata(a11_0x7cadf4(0xc0),Object)],ApitestStaticController[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xda),void 0x0),__decorate([(0x0,core_3[a11_0x7cadf4(0xd0)])(),__metadata(a11_0x7cadf4(0xc0),core_1[a11_0x7cadf4(0xbb)])],ApitestStaticController[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xbd),void 0x0),__decorate([(0x0,core_3[a11_0x7cadf4(0xd0)])(),__metadata(a11_0x7cadf4(0xc0),ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,core_3[a11_0x7cadf4(0xaf)])(a11_0x7cadf4(0xce)),__metadata(a11_0x7cadf4(0xc0),Boolean)],ApitestStaticController[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xce),void 0x0),__decorate([(0x0,core_3[a11_0x7cadf4(0xaf)])('anncicapi'),__metadata(a11_0x7cadf4(0xc0),Object)],ApitestStaticController[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xeb),void 0x0),__decorate([(0x0,core_2[a11_0x7cadf4(0xdf)])(a11_0x7cadf4(0xe2)),__metadata(a11_0x7cadf4(0xc0),Function),__metadata(a11_0x7cadf4(0xb4),[]),__metadata(a11_0x7cadf4(0xe6),Promise)],ApitestStaticController[a11_0x7cadf4(0xb3)],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x7cadf4(0xdf)])(a11_0x7cadf4(0xe4)),__param(0x0,(0x0,core_2[a11_0x7cadf4(0xa1)])('module')),__metadata(a11_0x7cadf4(0xc0),Function),__metadata(a11_0x7cadf4(0xb4),[String]),__metadata(a11_0x7cadf4(0xe6),Promise)],ApitestStaticController['prototype'],a11_0x7cadf4(0xb8),null),__decorate([(0x0,core_2[a11_0x7cadf4(0xdf)])(a11_0x7cadf4(0xd8)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a11_0x7cadf4(0xe6),Promise)],ApitestStaticController[a11_0x7cadf4(0xb3)],a11_0x7cadf4(0xc5),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x7cadf4(0xc8)])('/'),(0x0,core_3[a11_0x7cadf4(0xea)])(core_3[a11_0x7cadf4(0xc4)]['Request'])],ApitestStaticController),exports[a11_0x7cadf4(0xa3)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x4fa52d=a12_0x7ed2;(function(_0x9d34ca,_0x98bd53){const _0x11887c=a12_0x7ed2,_0x6f158e=_0x9d34ca();while(!![]){try{const _0x5c4e23=parseInt(_0x11887c(0x156))/0x1+parseInt(_0x11887c(0x138))/0x2*(-parseInt(_0x11887c(0x12f))/0x3)+-parseInt(_0x11887c(0x146))/0x4+-parseInt(_0x11887c(0x13e))/0x5+parseInt(_0x11887c(0x137))/0x6*(-parseInt(_0x11887c(0x13d))/0x7)+parseInt(_0x11887c(0x11f))/0x8+-parseInt(_0x11887c(0x143))/0x9*(-parseInt(_0x11887c(0x140))/0xa);if(_0x5c4e23===_0x98bd53)break;else _0x6f158e['push'](_0x6f158e['shift']());}catch(_0x100638){_0x6f158e['push'](_0x6f158e['shift']());}}}(a12_0x25cc,0x70175));var __decorate=this&&this[a12_0x4fa52d(0x14b)]||function(_0x47bf71,_0x4c4a5a,_0xd93104,_0xe5645a){const _0xf88beb=a12_0x4fa52d;var _0x3a1241=arguments[_0xf88beb(0x11c)],_0x49b638=_0x3a1241<0x3?_0x4c4a5a:_0xe5645a===null?_0xe5645a=Object[_0xf88beb(0x14e)](_0x4c4a5a,_0xd93104):_0xe5645a,_0x17235e;if(typeof Reflect===_0xf88beb(0x14d)&&typeof Reflect[_0xf88beb(0x119)]==='function')_0x49b638=Reflect[_0xf88beb(0x119)](_0x47bf71,_0x4c4a5a,_0xd93104,_0xe5645a);else{for(var _0x2a206f=_0x47bf71[_0xf88beb(0x11c)]-0x1;_0x2a206f>=0x0;_0x2a206f--)if(_0x17235e=_0x47bf71[_0x2a206f])_0x49b638=(_0x3a1241<0x3?_0x17235e(_0x49b638):_0x3a1241>0x3?_0x17235e(_0x4c4a5a,_0xd93104,_0x49b638):_0x17235e(_0x4c4a5a,_0xd93104))||_0x49b638;}return _0x3a1241>0x3&&_0x49b638&&Object[_0xf88beb(0x123)](_0x4c4a5a,_0xd93104,_0x49b638),_0x49b638;},__metadata=this&&this[a12_0x4fa52d(0x136)]||function(_0x285e3e,_0x14829e){const _0x38c4ca=a12_0x4fa52d;if(typeof Reflect==='object'&&typeof Reflect[_0x38c4ca(0x127)]===_0x38c4ca(0x133))return Reflect[_0x38c4ca(0x127)](_0x285e3e,_0x14829e);};Object[a12_0x4fa52d(0x123)](exports,a12_0x4fa52d(0x14c),{'value':!![]}),exports[a12_0x4fa52d(0x144)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x4fa52d(0x121)),koasend=require(a12_0x4fa52d(0x13f)),core_1=require(a12_0x4fa52d(0x11a));function a12_0x25cc(){const _0x23bf16=['object','getOwnPropertyDescriptor','get','toString','parse','value','design:type','export','addWorksheet','773687swJfeK','/public/xlsx','Api\x20Excel\x20Error:\x20','col','model','decorate','@midwayjs/core','app','length','columns','getWorksheet','5249352hWpOLj','Sheet\x201','exceljs','isNumber','defineProperty','readFile','eachCell','xlsx','metadata','existsSync','getCell','startsWith','key','handler','header','Workbook','102423CxSBCs','keys','addRow','Scope','function','Provide','getRow','__metadata','108kdnKyT','6yROLDx','getAppDir','rowCount','random','substring','197029MbLxGg','2934515ubJsOF','koa-send','1639390ocGggC','writeFile','\x20is\x20read\x20fail','45TAqbeb','ExcelService','Singleton','2377816pTrtcM','worksheets','replace','push','mkdirSync','__decorate','__esModule'];a12_0x25cc=function(){return _0x23bf16;};return a12_0x25cc();}function a12_0x7ed2(_0x4de37d,_0x848e14){const _0x25cc7b=a12_0x25cc();return a12_0x7ed2=function(_0x7ed215,_0x3a3d98){_0x7ed215=_0x7ed215-0x118;let _0x2e8e0a=_0x25cc7b[_0x7ed215];return _0x2e8e0a;},a12_0x7ed2(_0x4de37d,_0x848e14);}let ExcelService=class ExcelService{async[a12_0x4fa52d(0x151)](_0x70f2db,_0x475a88,_0x3f09a6=[0x0]){const _0xc4dc3a=a12_0x4fa52d;var _0x410fd3,_0x50a32b;const _0x185916=new exceljs[(_0xc4dc3a(0x12e))](),_0x358ec5=[];let _0x3162d3=_0x70f2db[_0xc4dc3a(0x148)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x3162d3===null||_0x3162d3===void 0x0?void 0x0:_0x3162d3[_0xc4dc3a(0x12a)]('/'))&&(_0x3162d3=this[_0xc4dc3a(0x11b)][_0xc4dc3a(0x139)]()+'/'+_0x3162d3);try{await _0x185916[_0xc4dc3a(0x126)][_0xc4dc3a(0x124)](_0x3162d3);}catch(_0x3460bf){return console['log'](_0xc4dc3a(0x158)+_0x3162d3+_0xc4dc3a(0x142)),_0x358ec5;}for(const _0x58e720 of _0x3f09a6){const _0x59bd67=lodash[_0xc4dc3a(0x122)](_0x58e720)?((_0x410fd3=_0x185916[_0xc4dc3a(0x147)])===null||_0x410fd3===void 0x0?void 0x0:_0x410fd3[_0x58e720])||undefined:_0x185916[_0xc4dc3a(0x11e)](_0x58e720);if(_0x59bd67){var _0x270705=0x1;const _0x3e0bdf=_0x59bd67[_0xc4dc3a(0x135)](0x1),_0x2cd297=await new Promise(_0x1200f1=>{const _0x572455=_0xc4dc3a,_0x455cee={};_0x3e0bdf[_0x572455(0x125)]((_0x59bfb0,_0x3c0a10)=>{const _0x5f3538=_0x572455;for(const _0x4285e5 of _0x475a88){if(_0x59bfb0[_0x5f3538(0x152)]==_0x4285e5[_0x5f3538(0x12d)])_0x270705=0x2,_0x455cee[_0x4285e5[_0x5f3538(0x12b)]]={'header':_0x59bfb0[_0x5f3538(0x159)],'handler':_0x4285e5[_0x5f3538(0x12c)]};else{if(!_0x455cee[_0x4285e5[_0x5f3538(0x12b)]])try{const _0x519e9a=_0x3e0bdf[_0x5f3538(0x129)](_0x4285e5[_0x5f3538(0x12d)]);_0x519e9a&&(_0x455cee[_0x4285e5[_0x5f3538(0x12b)]]={'header':_0x519e9a[_0x5f3538(0x159)],'handler':_0x4285e5[_0x5f3538(0x12c)]});}catch{}}}_0x3e0bdf['cellCount']==_0x3c0a10&&_0x1200f1(_0x455cee);});});for(const _0x3462ba of _0x59bd67['findRows'](_0x270705,_0x59bd67[_0xc4dc3a(0x13a)])){const _0x5dc672={};for(const _0x1d2e5f in _0x2cd297){if(_0x2cd297[_0x1d2e5f][_0xc4dc3a(0x12d)]){const _0x36188a=_0x3462ba['getCell'](_0x2cd297[_0x1d2e5f][_0xc4dc3a(0x12d)]);typeof((_0x50a32b=_0x2cd297[_0x1d2e5f])===null||_0x50a32b===void 0x0?void 0x0:_0x50a32b[_0xc4dc3a(0x12c)])=='function'?_0x5dc672[_0x1d2e5f]=await _0x2cd297[_0x1d2e5f][_0xc4dc3a(0x12c)]((_0x36188a===null||_0x36188a===void 0x0?void 0x0:_0x36188a[_0xc4dc3a(0x150)]())||'',_0x36188a[_0xc4dc3a(0x118)]):_0x5dc672[_0x1d2e5f]=(_0x36188a===null||_0x36188a===void 0x0?void 0x0:_0x36188a[_0xc4dc3a(0x150)]())||'';}}Object[_0xc4dc3a(0x130)](_0x5dc672)['length']>0x0&&_0x358ec5['push'](_0x5dc672);}}}return _0x358ec5;}async[a12_0x4fa52d(0x154)](_0x3a249f,_0x4a0707,_0x30f2da,_0x31c645='public/xlsx'){const _0x331048=a12_0x4fa52d;var _0x2e0928,_0x2f129c;const _0x5a4ea4=new exceljs[(_0x331048(0x12e))](),_0x45474b={},_0x128c91=[],_0x4a25ba=_0x5a4ea4[_0x331048(0x155)](_0x331048(0x120),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x200e07 in _0x4a0707){_0x45474b[_0x4a0707[_0x200e07][_0x331048(0x12b)]]=_0x4a0707[_0x200e07][_0x331048(0x12d)],_0x128c91[_0x331048(0x149)]({'header':_0x4a0707[_0x200e07][_0x331048(0x12d)],'key':(_0x2e0928=_0x4a0707[_0x200e07])===null||_0x2e0928===void 0x0?void 0x0:_0x2e0928[_0x331048(0x12b)][_0x331048(0x148)](/\./g,'_')});}_0x4a25ba[_0x331048(0x11d)]=_0x128c91;for(const _0x5ca81d of _0x30f2da){const _0x263043={};for(const _0x3ea206 in _0x4a0707){typeof((_0x2f129c=_0x4a0707[_0x3ea206])===null||_0x2f129c===void 0x0?void 0x0:_0x2f129c[_0x331048(0x12c)])==_0x331048(0x133)?_0x263043[_0x4a0707[_0x3ea206][_0x331048(0x12b)]['replace'](/\./g,'_')]=await _0x4a0707[_0x3ea206][_0x331048(0x12c)](_0x5ca81d):_0x263043[_0x4a0707[_0x3ea206][_0x331048(0x12b)][_0x331048(0x148)](/\./g,'_')]=lodash[_0x331048(0x14f)](_0x5ca81d,_0x4a0707[_0x3ea206][_0x331048(0x12b)],'');}_0x4a25ba[_0x331048(0x131)](_0x263043);}let _0x48e3fc='';const _0x568203=_0x3a249f+'-'+lodash[_0x331048(0x13b)](0x2710,0x1869f)+'.xlsx';if(_0x31c645&&_0x31c645[_0x331048(0x12a)]('/'))_0x48e3fc=''+_0x31c645;else _0x31c645&&!_0x31c645[_0x331048(0x12a)]('/')&&!_0x31c645[_0x331048(0x12a)]('\x5c')?_0x48e3fc=this[_0x331048(0x11b)]['getAppDir']()+'/'+_0x31c645:_0x48e3fc=this['app'][_0x331048(0x139)]()+_0x331048(0x157);return(_0x48e3fc['endsWith']('/')||_0x48e3fc['endsWith']('\x5c'))&&(_0x48e3fc=_0x48e3fc[_0x331048(0x13c)](0x0,_0x48e3fc['length']-0x1)),_0x48e3fc=_0x48e3fc[_0x331048(0x148)](/(\\|\/)/g,'/')[_0x331048(0x148)](/\/{2,}/g,'/'),!fs[_0x331048(0x128)](_0x48e3fc)&&fs[_0x331048(0x14a)](_0x48e3fc,{'recursive':!![]}),await _0x5a4ea4[_0x331048(0x126)][_0x331048(0x141)]((_0x48e3fc+'/'+_0x568203)[_0x331048(0x148)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x568203,'filepath':(_0x48e3fc[_0x331048(0x13c)]((''+this[_0x331048(0x11b)][_0x331048(0x139)]())[_0x331048(0x11c)])+'/'+_0x568203)[_0x331048(0x148)](/(\\|\/)/g,'/')[_0x331048(0x148)](/\/{2,}/g,'/')};}async['download'](_0x371aea,_0x100dfc){return await koasend(_0x371aea,''+_0x100dfc);}};__decorate([(0x0,core_1['App'])(),__metadata(a12_0x4fa52d(0x153),Object)],ExcelService['prototype'],a12_0x4fa52d(0x11b),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x4fa52d(0x134)])(),(0x0,core_1[a12_0x4fa52d(0x132)])(core_1['ScopeEnum'][a12_0x4fa52d(0x145)])],ExcelService),exports[a12_0x4fa52d(0x144)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x26200e=a13_0x15d8;function a13_0x15d8(_0x1b2ab0,_0x20bd8a){var _0x2ea83c=a13_0x2ea8();return a13_0x15d8=function(_0x15d8ab,_0xeaaf31){_0x15d8ab=_0x15d8ab-0xd4;var _0x30b1be=_0x2ea83c[_0x15d8ab];return _0x30b1be;},a13_0x15d8(_0x1b2ab0,_0x20bd8a);}(function(_0x35d855,_0x177a4f){var _0x3ab4de=a13_0x15d8,_0x36718f=_0x35d855();while(!![]){try{var _0x59d539=-parseInt(_0x3ab4de(0xe1))/0x1+-parseInt(_0x3ab4de(0xe3))/0x2*(-parseInt(_0x3ab4de(0xe0))/0x3)+parseInt(_0x3ab4de(0xdf))/0x4*(-parseInt(_0x3ab4de(0xd7))/0x5)+parseInt(_0x3ab4de(0xdc))/0x6+-parseInt(_0x3ab4de(0xdb))/0x7+-parseInt(_0x3ab4de(0xe2))/0x8+parseInt(_0x3ab4de(0xd4))/0x9;if(_0x59d539===_0x177a4f)break;else _0x36718f['push'](_0x36718f['shift']());}catch(_0x4ecff0){_0x36718f['push'](_0x36718f['shift']());}}}(a13_0x2ea8,0x92d86));Object[a13_0x26200e(0xd5)](exports,a13_0x26200e(0xd9),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x26200e(0xdd)]=exports['ACTION_ROUTE_KEY']=exports[a13_0x26200e(0xe4)]=void 0x0,exports['ACTION_KEY']=a13_0x26200e(0xde),exports[a13_0x26200e(0xd8)]='anncic-api:action:route',exports[a13_0x26200e(0xdd)]=a13_0x26200e(0xd6);class AppsConfigTmp{}exports[a13_0x26200e(0xda)]=AppsConfigTmp;function a13_0x2ea8(){var _0x30327a=['anncic-api:action','12bFXFvS','630114uXRaMf','1046059mRiKQa','3017560edwcLq','8lLGeIo','ACTION_KEY','19122696jcrdPJ','defineProperty','anncic-api:apps:config','1191235MjdrrJ','ACTION_ROUTE_KEY','__esModule','AppsConfigTmp','4791388JWJMcM','2754366LEpYdj','APPSCONFIG_KEY'];a13_0x2ea8=function(){return _0x30327a;};return a13_0x2ea8();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x2871d5=a14_0x24c1;(function(_0x21238e,_0x4f19fc){var _0x3b6c10=a14_0x24c1,_0x12b9fa=_0x21238e();while(!![]){try{var _0x57284b=-parseInt(_0x3b6c10(0x1d8))/0x1*(parseInt(_0x3b6c10(0x1d0))/0x2)+parseInt(_0x3b6c10(0x1da))/0x3+parseInt(_0x3b6c10(0x1f5))/0x4+parseInt(_0x3b6c10(0x1ed))/0x5+parseInt(_0x3b6c10(0x1de))/0x6*(parseInt(_0x3b6c10(0x1e1))/0x7)+parseInt(_0x3b6c10(0x1dc))/0x8+-parseInt(_0x3b6c10(0x1e2))/0x9;if(_0x57284b===_0x4f19fc)break;else _0x12b9fa['push'](_0x12b9fa['shift']());}catch(_0x10c1db){_0x12b9fa['push'](_0x12b9fa['shift']());}}}(a14_0x5ba7,0xadbd1));var __decorate=this&&this[a14_0x2871d5(0x1ee)]||function(_0xf35dcb,_0x562b05,_0xfefce7,_0x5bc40d){var _0x4dc73e=a14_0x2871d5,_0x2e3dd4=arguments[_0x4dc73e(0x1e9)],_0x249ddf=_0x2e3dd4<0x3?_0x562b05:_0x5bc40d===null?_0x5bc40d=Object[_0x4dc73e(0x1e0)](_0x562b05,_0xfefce7):_0x5bc40d,_0x4cb48d;if(typeof Reflect===_0x4dc73e(0x1e3)&&typeof Reflect[_0x4dc73e(0x1d3)]===_0x4dc73e(0x1d6))_0x249ddf=Reflect[_0x4dc73e(0x1d3)](_0xf35dcb,_0x562b05,_0xfefce7,_0x5bc40d);else{for(var _0xae7ec0=_0xf35dcb[_0x4dc73e(0x1e9)]-0x1;_0xae7ec0>=0x0;_0xae7ec0--)if(_0x4cb48d=_0xf35dcb[_0xae7ec0])_0x249ddf=(_0x2e3dd4<0x3?_0x4cb48d(_0x249ddf):_0x2e3dd4>0x3?_0x4cb48d(_0x562b05,_0xfefce7,_0x249ddf):_0x4cb48d(_0x562b05,_0xfefce7))||_0x249ddf;}return _0x2e3dd4>0x3&&_0x249ddf&&Object[_0x4dc73e(0x1d5)](_0x562b05,_0xfefce7,_0x249ddf),_0x249ddf;},__metadata=this&&this['__metadata']||function(_0x4f9f1f,_0xb040e8){var _0x5efbe1=a14_0x2871d5;if(typeof Reflect===_0x5efbe1(0x1e3)&&typeof Reflect[_0x5efbe1(0x1db)]===_0x5efbe1(0x1d6))return Reflect[_0x5efbe1(0x1db)](_0x4f9f1f,_0xb040e8);};Object[a14_0x2871d5(0x1d5)](exports,'__esModule',{'value':!![]}),exports[a14_0x2871d5(0x1f0)]=void 0x0;const validator_1=require(a14_0x2871d5(0x1ef));class PageDTO{}function a14_0x5ba7(){var _0x467e18=['1:是;0:否','number','5664845KzhEzc','__decorate','@anncic-api/validator','PageDTO','trim','RuleType','valid','string','3219572YnNXFn','809526YzFQhk','第一页为1,第二页为2','是否倒序','decorate','_order','defineProperty','function','_size','3GvuKLW','Rule','3960966VTqeWm','metadata','3126368MhXdNw','_page','3114678NPWsbW','_isreverse','getOwnPropertyDescriptor','7OODzbh','20179539Vjylfn','object','prototype','design:type','min','排序方式','分页数量','length','integer'];a14_0x5ba7=function(){return _0x467e18;};return a14_0x5ba7();}function a14_0x24c1(_0x26f588,_0x2c77b4){var _0x5ba7b5=a14_0x5ba7();return a14_0x24c1=function(_0x24c15d,_0x424e50){_0x24c15d=_0x24c15d-0x1d0;var _0x40ad3e=_0x5ba7b5[_0x24c15d];return _0x40ad3e;},a14_0x24c1(_0x26f588,_0x2c77b4);}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x2871d5(0x1f2)][a14_0x2871d5(0x1ec)]()['integer']()[a14_0x2871d5(0x1e6)](0x1),a14_0x2871d5(0x1d1)),__metadata(a14_0x2871d5(0x1e5),Number)],PageDTO[a14_0x2871d5(0x1e4)],a14_0x2871d5(0x1dd),void 0x0),__decorate([(0x0,validator_1[a14_0x2871d5(0x1d9)])(a14_0x2871d5(0x1e8),validator_1[a14_0x2871d5(0x1f2)][a14_0x2871d5(0x1ec)]()[a14_0x2871d5(0x1ea)]()[a14_0x2871d5(0x1e6)](0x1)),__metadata(a14_0x2871d5(0x1e5),Number)],PageDTO[a14_0x2871d5(0x1e4)],a14_0x2871d5(0x1d7),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x2871d5(0x1e7),validator_1[a14_0x2871d5(0x1f2)][a14_0x2871d5(0x1f4)]()[a14_0x2871d5(0x1f1)]()),__metadata(a14_0x2871d5(0x1e5),String)],PageDTO[a14_0x2871d5(0x1e4)],a14_0x2871d5(0x1d4),void 0x0),__decorate([(0x0,validator_1[a14_0x2871d5(0x1d9)])(a14_0x2871d5(0x1d2),validator_1[a14_0x2871d5(0x1f2)][a14_0x2871d5(0x1ec)]()['integer']()[a14_0x2871d5(0x1f3)](0x0,0x1),a14_0x2871d5(0x1eb)),__metadata(a14_0x2871d5(0x1e5),Number)],PageDTO[a14_0x2871d5(0x1e4)],a14_0x2871d5(0x1df),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.18",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.3.
|
|
21
|
-
"@anncic-api/core": "^1.3.
|
|
22
|
-
"@anncic-api/event": "^1.3.
|
|
23
|
-
"@anncic-api/typeorm": "^1.3.
|
|
24
|
-
"@anncic-api/validator": "^1.3.
|
|
20
|
+
"@anncic-api/cache": "^1.3.18",
|
|
21
|
+
"@anncic-api/core": "^1.3.18",
|
|
22
|
+
"@anncic-api/event": "^1.3.18",
|
|
23
|
+
"@anncic-api/typeorm": "^1.3.18",
|
|
24
|
+
"@anncic-api/validator": "^1.3.18",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.7.3",
|
|
26
26
|
"@midwayjs/i18n": "^3.7.3",
|
|
27
27
|
"@midwayjs/koa": "^3.7.3",
|
|
28
28
|
"@midwayjs/static-file": "^3.7.3",
|
|
29
29
|
"@midwayjs/upload": "^3.7.3",
|
|
30
|
-
"anncic-apihelper": "^1.3.
|
|
30
|
+
"anncic-apihelper": "^1.3.18",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e2f07e1c82c27ea7a10a7d8eba7e93d84ca4be3e"
|
|
43
43
|
}
|