anncic-api 3.4.32 → 3.4.34
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.d.ts +27 -27
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.d.ts +5 -5
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.d.ts +17 -17
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.d.ts +14 -14
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.d.ts +2 -2
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.d.ts +5 -5
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.d.ts +9 -9
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.d.ts +3 -3
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.d.ts +9 -9
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/service/ApiService.d.ts +12 -12
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.d.ts +19 -19
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.d.ts +46 -46
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.d.ts +38 -38
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.d.ts +27 -27
- package/dist/types/action.js +1 -1
- package/dist/types/common.d.ts +14 -14
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.d.ts +3 -3
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
declare const _default: (appinfo: any) => {
|
|
2
|
-
apitest: boolean;
|
|
3
|
-
keys: any;
|
|
4
|
-
anncicapi: {
|
|
5
|
-
requestKey: string;
|
|
6
|
-
password: string;
|
|
7
|
-
devices: {
|
|
8
|
-
DEFAULT: {
|
|
9
|
-
secret: string;
|
|
10
|
-
checkcode: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
bodyParser: {
|
|
15
|
-
enableTypes: string[];
|
|
16
|
-
formLimit: string;
|
|
17
|
-
jsonLimit: string;
|
|
18
|
-
textLimit: string;
|
|
19
|
-
xmlLimit: string;
|
|
20
|
-
enable: boolean;
|
|
21
|
-
};
|
|
22
|
-
upload: {
|
|
23
|
-
tmpdir: string;
|
|
24
|
-
cleanTimeout: number;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
1
|
+
declare const _default: (appinfo: any) => {
|
|
2
|
+
apitest: boolean;
|
|
3
|
+
keys: any;
|
|
4
|
+
anncicapi: {
|
|
5
|
+
requestKey: string;
|
|
6
|
+
password: string;
|
|
7
|
+
devices: {
|
|
8
|
+
DEFAULT: {
|
|
9
|
+
secret: string;
|
|
10
|
+
checkcode: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
bodyParser: {
|
|
15
|
+
enableTypes: string[];
|
|
16
|
+
formLimit: string;
|
|
17
|
+
jsonLimit: string;
|
|
18
|
+
textLimit: string;
|
|
19
|
+
xmlLimit: string;
|
|
20
|
+
enable: boolean;
|
|
21
|
+
};
|
|
22
|
+
upload: {
|
|
23
|
+
tmpdir: string;
|
|
24
|
+
cleanTimeout: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x2b97cb=a0_0x2d0c;function a0_0x4278(){var _0x2bd000=['dhauo1234420123gg3234901','xml','5720544wHVWUt','4752eeUKFj','default','1241499LDHOxa','458lJSCmt','4TBLyYr','zhiulanuiy7892387985hnoi','json','69157eAsLOT','/runtime/.upload','name','search','defineProperty','appDir','20mb','189XTeOAL','70480RREyNO','(((.+)+)+)+$','constructor','5183805NgZUFw','toString','576177myuPNU','1571bKOJah','48rEvmDk'];a0_0x4278=function(){return _0x2bd000;};return a0_0x4278();}(function(_0x4cf5cf,_0x1716b2){var _0xd09f9c=a0_0x2d0c,_0xe4f69c=_0x4cf5cf();while(!![]){try{var _0x4a7c89=parseInt(_0xd09f9c(0x1f4))/0x1*(-parseInt(_0xd09f9c(0x1fc))/0x2)+parseInt(_0xd09f9c(0x1f3))/0x3*(-parseInt(_0xd09f9c(0x1fd))/0x4)+-parseInt(_0xd09f9c(0x20b))/0x5+parseInt(_0xd09f9c(0x1f8))/0x6+parseInt(_0xd09f9c(0x1fb))/0x7*(-parseInt(_0xd09f9c(0x1f5))/0x8)+parseInt(_0xd09f9c(0x207))/0x9*(-parseInt(_0xd09f9c(0x208))/0xa)+parseInt(_0xd09f9c(0x200))/0xb*(parseInt(_0xd09f9c(0x1f9))/0xc);if(_0x4a7c89===_0x1716b2)break;else _0xe4f69c['push'](_0xe4f69c['shift']());}catch(_0x361007){_0xe4f69c['push'](_0xe4f69c['shift']());}}}(a0_0x4278,0x9cd2b));var a0_0x12e6b8=(function(){var _0x51394b=!![];return function(_0x2295aa,_0x4e9917){var _0x14f82f=_0x51394b?function(){if(_0x4e9917){var _0x17189b=_0x4e9917['apply'](_0x2295aa,arguments);return _0x4e9917=null,_0x17189b;}}:function(){};return _0x51394b=![],_0x14f82f;};}()),a0_0x3226c5=a0_0x12e6b8(this,function(){var _0x3cd490=a0_0x2d0c;return a0_0x3226c5[_0x3cd490(0x1f2)]()[_0x3cd490(0x203)](_0x3cd490(0x209))[_0x3cd490(0x1f2)]()[_0x3cd490(0x20a)](a0_0x3226c5)[_0x3cd490(0x203)](_0x3cd490(0x209));});a0_0x3226c5();'use strict';function a0_0x2d0c(_0x2b9a7,_0x3fc170){var _0x59ce3e=a0_0x4278();return a0_0x2d0c=function(_0x3226c5,_0x12e6b8){_0x3226c5=_0x3226c5-0x1f2;var _0x4278a9=_0x59ce3e[_0x3226c5];return _0x4278a9;},a0_0x2d0c(_0x2b9a7,_0x3fc170);}Object[a0_0x2b97cb(0x204)](exports,'__esModule',{'value':!![]}),exports[a0_0x2b97cb(0x1fa)]=_0x2553e7=>{var _0x221bb6=a0_0x2b97cb;return{'apitest':!![],'keys':_0x2553e7[_0x221bb6(0x202)],'anncicapi':{'requestKey':'_token','password':_0x221bb6(0x1fe),'devices':{'DEFAULT':{'secret':_0x221bb6(0x1f6),'checkcode':_0x221bb6(0x1f6)}}},'bodyParser':{'enableTypes':[_0x221bb6(0x1ff),'form','text',_0x221bb6(0x1f7)],'formLimit':_0x221bb6(0x206),'jsonLimit':'20mb','textLimit':'20mb','xmlLimit':_0x221bb6(0x206),'enable':!![]},'upload':{'tmpdir':_0x2553e7[_0x221bb6(0x205)]+_0x221bb6(0x201),'cleanTimeout':0x5265c00}};};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
apitest: boolean;
|
|
3
|
-
anncicapi: {};
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
apitest: boolean;
|
|
3
|
+
anncicapi: {};
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x353cb9=a1_0x510f;(function(_0x174748,_0x1427e2){var _0x60a337=a1_0x510f,_0x128bb3=_0x174748();while(!![]){try{var _0x552c0a=-parseInt(_0x60a337(0x113))/0x1*(-parseInt(_0x60a337(0x112))/0x2)+parseInt(_0x60a337(0x10f))/0x3*(parseInt(_0x60a337(0x110))/0x4)+parseInt(_0x60a337(0x115))/0x5+-parseInt(_0x60a337(0x10b))/0x6*(-parseInt(_0x60a337(0x117))/0x7)+parseInt(_0x60a337(0x10e))/0x8*(parseInt(_0x60a337(0x10c))/0x9)+parseInt(_0x60a337(0x114))/0xa+parseInt(_0x60a337(0x10a))/0xb*(-parseInt(_0x60a337(0x108))/0xc);if(_0x552c0a===_0x1427e2)break;else _0x128bb3['push'](_0x128bb3['shift']());}catch(_0x1dd2a4){_0x128bb3['push'](_0x128bb3['shift']());}}}(a1_0x430c,0xefbc4));var a1_0x5c9c2a=(function(){var _0x55db0c=!![];return function(_0x3f5480,_0x1c2799){var _0x2c8d3e=_0x55db0c?function(){var _0x347c17=a1_0x510f;if(_0x1c2799){var _0x3669aa=_0x1c2799[_0x347c17(0x109)](_0x3f5480,arguments);return _0x1c2799=null,_0x3669aa;}}:function(){};return _0x55db0c=![],_0x2c8d3e;};}()),a1_0x2cb22d=a1_0x5c9c2a(this,function(){var _0x171b10=a1_0x510f;return a1_0x2cb22d[_0x171b10(0x118)]()[_0x171b10(0x111)](_0x171b10(0x116))[_0x171b10(0x118)]()['constructor'](a1_0x2cb22d)[_0x171b10(0x111)](_0x171b10(0x116));});function a1_0x510f(_0x1ee8bb,_0x3ea29e){var _0x42e593=a1_0x430c();return a1_0x510f=function(_0x2cb22d,_0x5c9c2a){_0x2cb22d=_0x2cb22d-0x107;var _0x430c52=_0x42e593[_0x2cb22d];return _0x430c52;},a1_0x510f(_0x1ee8bb,_0x3ea29e);}a1_0x2cb22d();'use strict';function a1_0x430c(){var _0x270dbe=['17074090SugXxY','6465115sgKsrz','(((.+)+)+)+$','399ZmYkbP','toString','default','24YGAAMO','apply','32967231etOUdY','11244FkSJab','10673505bsbOkH','defineProperty','8EclYPX','39PQkYMt','446632yIqteK','search','23014IZaXcx','107pQcdXG'];a1_0x430c=function(){return _0x270dbe;};return a1_0x430c();}Object[a1_0x353cb9(0x10d)](exports,'__esModule',{'value':!![]}),exports[a1_0x353cb9(0x107)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IMidwayApplication, MidwayLoggerService } from '@midwayjs/core';
|
|
2
|
-
import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService, MidwayEnvironmentService } from '@midwayjs/core';
|
|
3
|
-
import { ApiService } from './service/ApiService';
|
|
4
|
-
export declare class CustomConfiguration {
|
|
5
|
-
app: IMidwayApplication;
|
|
6
|
-
config: MidwayConfigService;
|
|
7
|
-
decorator: MidwayDecoratorService;
|
|
8
|
-
application: MidwayApplicationManager;
|
|
9
|
-
environment: MidwayEnvironmentService;
|
|
10
|
-
loggerService: MidwayLoggerService;
|
|
11
|
-
ApiService: ApiService;
|
|
12
|
-
onReady(): Promise<void>;
|
|
13
|
-
protected handlerActionRoute(): Promise<void>;
|
|
14
|
-
protected hanlderApplications(): Promise<void>;
|
|
15
|
-
protected loggerConfig(): Promise<void>;
|
|
16
|
-
protected filterConfig(): Promise<void>;
|
|
17
|
-
}
|
|
1
|
+
import { IMidwayApplication, MidwayLoggerService } from '@midwayjs/core';
|
|
2
|
+
import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService, MidwayEnvironmentService } from '@midwayjs/core';
|
|
3
|
+
import { ApiService } from './service/ApiService';
|
|
4
|
+
export declare class CustomConfiguration {
|
|
5
|
+
app: IMidwayApplication;
|
|
6
|
+
config: MidwayConfigService;
|
|
7
|
+
decorator: MidwayDecoratorService;
|
|
8
|
+
application: MidwayApplicationManager;
|
|
9
|
+
environment: MidwayEnvironmentService;
|
|
10
|
+
loggerService: MidwayLoggerService;
|
|
11
|
+
ApiService: ApiService;
|
|
12
|
+
onReady(): Promise<void>;
|
|
13
|
+
protected handlerActionRoute(): Promise<void>;
|
|
14
|
+
protected hanlderApplications(): Promise<void>;
|
|
15
|
+
protected loggerConfig(): Promise<void>;
|
|
16
|
+
protected filterConfig(): Promise<void>;
|
|
17
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x2099d0=a2_0x14a8;(function(_0x4ace12,_0x242721){const _0xfebbbf=a2_0x14a8,_0x58141f=_0x4ace12();while(!![]){try{const _0x337fc6=parseInt(_0xfebbbf(0x1f7))/0x1*(-parseInt(_0xfebbbf(0x248))/0x2)+parseInt(_0xfebbbf(0x1ec))/0x3+-parseInt(_0xfebbbf(0x21d))/0x4*(-parseInt(_0xfebbbf(0x1f3))/0x5)+-parseInt(_0xfebbbf(0x1ed))/0x6+parseInt(_0xfebbbf(0x258))/0x7+parseInt(_0xfebbbf(0x26b))/0x8+-parseInt(_0xfebbbf(0x20c))/0x9;if(_0x337fc6===_0x242721)break;else _0x58141f['push'](_0x58141f['shift']());}catch(_0x139f07){_0x58141f['push'](_0x58141f['shift']());}}}(a2_0x5242,0x69ba6));const a2_0x570421=(function(){let _0x481040=!![];return function(_0x413700,_0x2e494a){const _0x23fc55=_0x481040?function(){const _0x4b04d4=a2_0x14a8;if(_0x2e494a){const _0x3c1550=_0x2e494a[_0x4b04d4(0x25f)](_0x413700,arguments);return _0x2e494a=null,_0x3c1550;}}:function(){};return _0x481040=![],_0x23fc55;};}()),a2_0x356ed0=a2_0x570421(this,function(){const _0x131a0a=a2_0x14a8;return a2_0x356ed0[_0x131a0a(0x22d)]()[_0x131a0a(0x212)](_0x131a0a(0x233))[_0x131a0a(0x22d)]()['constructor'](a2_0x356ed0)[_0x131a0a(0x212)](_0x131a0a(0x233));});a2_0x356ed0();'use strict';var __decorate=this&&this['__decorate']||function(_0x3f866a,_0x2b81a6,_0x2cabda,_0xedf8d5){const _0xd98d50=a2_0x14a8;var _0x566efe=arguments[_0xd98d50(0x22f)],_0xecd141=_0x566efe<0x3?_0x2b81a6:_0xedf8d5===null?_0xedf8d5=Object['getOwnPropertyDescriptor'](_0x2b81a6,_0x2cabda):_0xedf8d5,_0x2e6e4c;if(typeof Reflect===_0xd98d50(0x20a)&&typeof Reflect['decorate']===_0xd98d50(0x223))_0xecd141=Reflect[_0xd98d50(0x25a)](_0x3f866a,_0x2b81a6,_0x2cabda,_0xedf8d5);else{for(var _0x3d93ce=_0x3f866a[_0xd98d50(0x22f)]-0x1;_0x3d93ce>=0x0;_0x3d93ce--)if(_0x2e6e4c=_0x3f866a[_0x3d93ce])_0xecd141=(_0x566efe<0x3?_0x2e6e4c(_0xecd141):_0x566efe>0x3?_0x2e6e4c(_0x2b81a6,_0x2cabda,_0xecd141):_0x2e6e4c(_0x2b81a6,_0x2cabda))||_0xecd141;}return _0x566efe>0x3&&_0xecd141&&Object[_0xd98d50(0x27b)](_0x2b81a6,_0x2cabda,_0xecd141),_0xecd141;},__metadata=this&&this['__metadata']||function(_0x7c552d,_0x426b06){const _0x2d3a9c=a2_0x14a8;if(typeof Reflect===_0x2d3a9c(0x20a)&&typeof Reflect['metadata']===_0x2d3a9c(0x223))return Reflect['metadata'](_0x7c552d,_0x426b06);};function a2_0x14a8(_0x56b1cc,_0x59baa4){const _0x574729=a2_0x5242();return a2_0x14a8=function(_0x356ed0,_0x570421){_0x356ed0=_0x356ed0-0x1eb;let _0x52429f=_0x574729[_0x356ed0];return _0x52429f;},a2_0x14a8(_0x56b1cc,_0x59baa4);}Object[a2_0x2099d0(0x27b)](exports,a2_0x2099d0(0x22e),{'value':!![]}),exports[a2_0x2099d0(0x1fb)]=void 0x0;const core_1=require(a2_0x2099d0(0x1f8)),core_2=require(a2_0x2099d0(0x1f8)),ApiError_1=require(a2_0x2099d0(0x219)),ApiService_1=require(a2_0x2099d0(0x261)),intercept_1=require('./types/intercept'),action_1=require(a2_0x2099d0(0x230)),fs=require('fs'),koasend=require(a2_0x2099d0(0x27c)),koa=require(a2_0x2099d0(0x259)),upload=require(a2_0x2099d0(0x24b)),staticFile=require(a2_0x2099d0(0x24a)),crossDomain=require(a2_0x2099d0(0x215)),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2099d0(0x1f2)),anncicEvent=require(a2_0x2099d0(0x20d)),anncicTypeorm=require(a2_0x2099d0(0x260)),anncicValidator=require(a2_0x2099d0(0x220)),anncicHelper=require(a2_0x2099d0(0x267));function a2_0x5242(){const _0x381946=['./types/action','http://','decorator','(((.+)+)+)+$','MidwayDecoratorService','/apps/','anncicapi','tagName','statSync','ACTION_ROUTE_KEY','MidwayEnvironmentService','.log','staticFile','module','http','log','handler','context','upload','getApplications','getConfiguration','routerOptions','forEach','clients','4aASyGj','isDirectory','@midwayjs/static-file','@midwayjs/upload','req','application','https://','anncic-api','REQUEST_OBJ_CTX_KEY','method','default','_matchedRoute','getBaseDir','keys','includes','attachment','1151780dDhRaE','@midwayjs/koa','decorate','args','assign','parse','target','apply','@anncic-api/typeorm','./service/ApiService','createLogger','MidwayConfigService','checksign','HEADERS_SIGNATURE','filterConfig','anncic-apihelper','get','match','encrypted','1769560ACIyev','DEFAULT','routerName','input','intercept','defaultsDeep','MidwayApplicationManager','ApiError','Anncic-api\x20static-file\x20:\x20mkdir\x20','requestMethod','/apps','registerMethodHandler','key','getAsync','split','devices','defineProperty','koa-send','config','midwayLogger','onReady','1113711tLrLyL','2993778VZzNtz','string','query','isDevelopmentEnvironment','isClass','@anncic-api/cache','1033330eRtNxg','device','loggerConfig','isFunction','64002dhlxct','@midwayjs/core','existsSync','request','CustomConfiguration','environment','defineProperties','filepath','hanlderApplications','substring','tmpdir','proceed','host','ApiService','MidwayLoggerService','dir','metadata','dirs','name','object','body','4712463SBJUSs','@anncic-api/event','/runtime','requestKey','isString','app','search','/runtime/apps-','undefined','@midwayjs/cross-domain','InterceptTargetTmp','443','headers','./exception/ApiError','loggerService','getClassMetadata','toLowerCase','16PcfGDB','handlerActionRoute','APPSCONFIG_KEY','@anncic-api/validator','prototype','apimit','function','bodyXml','文件不存在','path','description','koa','Inject','getAppDir','Types','design:type','toString','__esModule','length'];a2_0x5242=function(){return _0x381946;};return a2_0x5242();}let CustomConfiguration=class CustomConfiguration{async[a2_0x2099d0(0x1eb)](){const _0x1c6ac5=a2_0x2099d0;await this[_0x1c6ac5(0x266)](),await this[_0x1c6ac5(0x1f5)](),await this[_0x1c6ac5(0x21e)](),await this[_0x1c6ac5(0x1ff)]();}async[a2_0x2099d0(0x21e)](){const _0x27a4f9=a2_0x2099d0,_0xe3f9bf=this[_0x27a4f9(0x27d)][_0x27a4f9(0x244)](),_0x4e78ff=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x27a4f9(0x216)])||{};this[_0x27a4f9(0x232)][_0x27a4f9(0x276)](action_1[_0x27a4f9(0x239)],_0x3e8fc1=>{const _0x104f10=_0x27a4f9;var _0x55d49a;const _0x51263b=(0x0,core_1[_0x104f10(0x21b)])(action_1[_0x104f10(0x21f)],action_1['AppsConfigTmp'])||{},_0x329fef=_0x3e8fc1[_0x104f10(0x207)],_0x598173=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0x3e8fc1[_0x104f10(0x25e)])||{},_0xb36357=((_0x55d49a=_0x598173===null||_0x598173===void 0x0?void 0x0:_0x598173[_0x104f10(0x1fe)])===null||_0x55d49a===void 0x0?void 0x0:_0x55d49a[_0x104f10(0x200)](0x0,_0x598173[_0x104f10(0x1fe)]['lastIndexOf']('.')))||'',_0x2bfbb3=(_0x598173===null||_0x598173===void 0x0?void 0x0:_0x598173[_0x104f10(0x23d)])?(_0x51263b===null||_0x51263b===void 0x0?void 0x0:_0x51263b[_0x598173[_0x104f10(0x23d)]])||{}:{};return{'before':async _0x9c865e=>{const _0x50211f=_0x104f10;var _0x5638e2,_0x156176,_0x625777,_0x3fbdd8;const _0x231c1c=(_0x5638e2=_0x9c865e===null||_0x9c865e===void 0x0?void 0x0:_0x9c865e[_0x50211f(0x25e)])===null||_0x5638e2===void 0x0?void 0x0:_0x5638e2[core_2[_0x50211f(0x250)]],_0x2a6edd=lodash[_0x50211f(0x270)]({},_0x231c1c[_0x50211f(0x1fa)][_0x50211f(0x20b)]||_0x231c1c[_0x50211f(0x1fa)][((_0x156176=_0xe3f9bf===null||_0xe3f9bf===void 0x0?void 0x0:_0xe3f9bf[_0x50211f(0x224)])===null||_0x156176===void 0x0?void 0x0:_0x156176[_0x50211f(0x277)])||_0x50211f(0x20b)]||{},_0x231c1c[_0x50211f(0x1fa)]['query']||{});_0x231c1c['_matchedRouteMeta']={'module':(_0x2bfbb3===null||_0x2bfbb3===void 0x0?void 0x0:_0x2bfbb3[_0x50211f(0x209)])||'','routePath':''+_0x231c1c[_0x50211f(0x226)],'routeName':_0x598173[_0x50211f(0x245)][_0x50211f(0x237)]+'@'+_0x329fef[_0x50211f(0x26d)],'routeMethod':((_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x50211f(0x274)])||_0x231c1c['method']||'')[_0x50211f(0x21c)](),'routeDescription':(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x50211f(0x227)])||'','filemethod':_0xb36357+'@'+(_0x329fef[_0x50211f(0x251)]||'')};if(_0x231c1c&&(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef['apimit']))try{const _0xe6e19e=((_0x625777=_0xe3f9bf===null||_0xe3f9bf===void 0x0?void 0x0:_0xe3f9bf[_0x50211f(0x236)])===null||_0x625777===void 0x0?void 0x0:_0x625777['requestKey'])&&typeof(_0x2a6edd===null||_0x2a6edd===void 0x0?void 0x0:_0x2a6edd[_0xe3f9bf[_0x50211f(0x236)][_0x50211f(0x20f)]])==_0x50211f(0x1ee)?JSON[_0x50211f(0x25d)](base64_decode(_0x2a6edd[_0xe3f9bf[_0x50211f(0x236)][_0x50211f(0x20f)]])||'{}')||{}:((_0x3fbdd8=_0x231c1c===null||_0x231c1c===void 0x0?void 0x0:_0x231c1c[_0x50211f(0x1fa)])===null||_0x3fbdd8===void 0x0?void 0x0:_0x3fbdd8['headers'])||{};if(!this[_0x50211f(0x204)][_0x50211f(0x264)](_0xe6e19e))throw new AnnError(ApiError_1[_0x50211f(0x272)][_0x50211f(0x265)]);}catch(_0x6d8359){if(_0x6d8359 instanceof AnnError)throw _0x6d8359;else throw new AnnError(ApiError_1[_0x50211f(0x272)]['_UNKNOW_']);}},'around':async _0x46536c=>{const _0x346524=_0x104f10;var _0x218966,_0x18ea12,_0x9c9e8d;const _0x1918c0=(_0x218966=_0x46536c===null||_0x46536c===void 0x0?void 0x0:_0x46536c[_0x346524(0x25e)])===null||_0x218966===void 0x0?void 0x0:_0x218966[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1918c0&&(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x222)])&&((_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x26f)])||typeof(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x26f)])==_0x346524(0x214))){if(((_0x18ea12=_0x1918c0[_0x346524(0x218)])===null||_0x18ea12===void 0x0?void 0x0:_0x18ea12[_0x346524(0x1f4)])&&((_0x9c9e8d=_0x4e78ff===null||_0x4e78ff===void 0x0?void 0x0:_0x4e78ff[_0x1918c0['headers'][_0x346524(0x1f4)]])===null||_0x9c9e8d===void 0x0?void 0x0:_0x9c9e8d['length'])>0x0)for(const _0xa7d97c of _0x4e78ff[_0x1918c0['headers'][_0x346524(0x1f4)]]||[]){if(core_1[_0x346524(0x22b)][_0x346524(0x1f1)](_0xa7d97c)){const _0x3a5c63=await _0x1918c0['requestContext'][_0x346524(0x278)](_0xa7d97c);typeof(_0x3a5c63===null||_0x3a5c63===void 0x0?void 0x0:_0x3a5c63[_0x346524(0x269)])==_0x346524(0x223)?await _0x3a5c63[_0x346524(0x269)](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0[_0x346524(0x251)][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef)&&await _0x3a5c63['handler'](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef):await _0x3a5c63[_0x346524(0x240)](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef);}else core_1['Types'][_0x346524(0x1f6)](_0xa7d97c)&&await _0xa7d97c(_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])=='string'&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0['_matchedRoute']):undefined,_0x329fef);}}return await _0x46536c[_0x346524(0x202)](..._0x46536c[_0x346524(0x25b)]);},'afterThrow':(_0x2e40a0,_0x5d3efd)=>{throw _0x5d3efd;}};});}async[a2_0x2099d0(0x1ff)](){const _0x160d64=a2_0x2099d0,_0x21788a=this[_0x160d64(0x27d)][_0x160d64(0x244)]();this['application'][_0x160d64(0x243)]([_0x160d64(0x228)])[_0x160d64(0x246)](_0x45874d=>{const _0x50db1c=_0x160d64;(_0x45874d===null||_0x45874d===void 0x0?void 0x0:_0x45874d[_0x50db1c(0x241)])&&Object[_0x50db1c(0x1fd)](_0x45874d[_0x50db1c(0x241)],{'hosturl':{'configurable':![],'get':function(){const _0x43e667=_0x50db1c;var _0x47505f,_0x3fa0b8,_0x41aae1,_0x53df25;if((this===null||this===void 0x0?void 0x0:this[_0x43e667(0x203)])&&!this[_0x43e667(0x203)]['startsWith'](_0x43e667(0x23e))){let _0x1effaa=this['host'][_0x43e667(0x279)](':');return['80',_0x43e667(0x217)][_0x43e667(0x256)](_0x1effaa===null||_0x1effaa===void 0x0?void 0x0:_0x1effaa[0x1])?''+(!!((_0x3fa0b8=(_0x47505f=this===null||this===void 0x0?void 0x0:this[_0x43e667(0x24c)])===null||_0x47505f===void 0x0?void 0x0:_0x47505f['connection'])===null||_0x3fa0b8===void 0x0?void 0x0:_0x3fa0b8['encrypted'])||(_0x1effaa===null||_0x1effaa===void 0x0?void 0x0:_0x1effaa[0x1])==_0x43e667(0x217)?_0x43e667(0x24e):_0x43e667(0x231))+_0x1effaa[0x0]:''+(!!((_0x53df25=(_0x41aae1=this===null||this===void 0x0?void 0x0:this[_0x43e667(0x24c)])===null||_0x41aae1===void 0x0?void 0x0:_0x41aae1['connection'])===null||_0x53df25===void 0x0?void 0x0:_0x53df25[_0x43e667(0x26a)])?_0x43e667(0x24e):_0x43e667(0x231))+this[_0x43e667(0x203)];}return'';}},'ok':{'value':function(_0x4d4d94,_0xe8ea25,_0xa53163=0x0){return{'code':_0xa53163,'data':_0x4d4d94,'extra':_0xe8ea25};}},'input':{'value':function(_0x36ba5c,_0x5748f9){const _0x49ada7=_0x50db1c;var _0x16e3a8;const _0x41e222=lodash[_0x49ada7(0x270)]({},this['request'][_0x49ada7(0x20b)]||this[_0x49ada7(0x1fa)][((_0x16e3a8=_0x21788a===null||_0x21788a===void 0x0?void 0x0:_0x21788a[_0x49ada7(0x224)])===null||_0x16e3a8===void 0x0?void 0x0:_0x16e3a8[_0x49ada7(0x277)])||_0x49ada7(0x20b)]||{},this['request'][_0x49ada7(0x1ef)]||{});return _0x36ba5c?lodash[_0x49ada7(0x268)](_0x41e222,_0x36ba5c,_0x5748f9):_0x41e222;}},'when':{'value':async function(_0x1895ed,_0x2032fa){const _0xc3a5ae=_0x50db1c,_0x10f51f=this[_0xc3a5ae(0x26e)](_0x1895ed,null);if(!lodash['isNull'](_0x10f51f))return await _0x2032fa(_0x10f51f);}},'only':{'value':function(_0x28a82e){const _0x1063a2=_0x50db1c,_0x36a00e={};for(let _0x561a38=0x0;_0x561a38<_0x28a82e['length'];_0x561a38++){lodash['isArray'](_0x28a82e[_0x561a38])&&_0x28a82e[_0x561a38][_0x1063a2(0x22f)]>0x0&&lodash[_0x1063a2(0x210)](_0x28a82e[_0x561a38][0x0])&&(_0x36a00e[_0x28a82e[_0x561a38][0x0]]=this['input'](_0x28a82e[_0x561a38][0x0],_0x28a82e[_0x561a38][_0x1063a2(0x22f)]>0x1?_0x28a82e[_0x561a38][0x1]:null));}return _0x36a00e;}},'koasend':{'value':async function(_0xd2d285,_0x38055e){const _0x487b1f=_0x50db1c;if(_0xd2d285&&!fs[_0x487b1f(0x1f9)](_0xd2d285)&&!fs[_0x487b1f(0x1f9)](this[_0x487b1f(0x211)][_0x487b1f(0x22a)]()+'/'+_0xd2d285))return _0x487b1f(0x225);return _0xd2d285=fs[_0x487b1f(0x1f9)](_0xd2d285)?_0xd2d285:this['app']['getAppDir']()+'/'+_0xd2d285,this[_0x487b1f(0x257)](_0x38055e||_0xd2d285),await koasend(this,_0xd2d285);}}});});}async[a2_0x2099d0(0x1f5)](){const _0x5cc1ca=a2_0x2099d0;var _0x2fdbd4,_0x17a89d;if(fs[_0x5cc1ca(0x1f9)](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x275))&&fs['statSync'](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x275))[_0x5cc1ca(0x249)]()){const _0x513ed2=this[_0x5cc1ca(0x27d)][_0x5cc1ca(0x244)](),_0x5238a0=((_0x2fdbd4=_0x513ed2===null||_0x513ed2===void 0x0?void 0x0:_0x513ed2[_0x5cc1ca(0x27e)])===null||_0x2fdbd4===void 0x0?void 0x0:_0x2fdbd4[_0x5cc1ca(0x247)])||{};for(const _0xe9fa3c of fs['readdirSync'](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+'/apps')){if(!fs[_0x5cc1ca(0x238)](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x235)+_0xe9fa3c)[_0x5cc1ca(0x249)]())continue;!(_0x5238a0===null||_0x5238a0===void 0x0?void 0x0:_0x5238a0[_0xe9fa3c])&&(_0x5238a0[_0xe9fa3c]=Object[_0x5cc1ca(0x25c)]({},((_0x17a89d=_0x513ed2===null||_0x513ed2===void 0x0?void 0x0:_0x513ed2[_0x5cc1ca(0x27e)])===null||_0x17a89d===void 0x0?void 0x0:_0x17a89d[_0x5cc1ca(0x252)])||{'maxSize':'1m','dir':this[_0x5cc1ca(0x211)][_0x5cc1ca(0x22a)]()+_0x5cc1ca(0x20e)},{'enableJSON':!![],'enableConsole':this[_0x5cc1ca(0x1fc)][_0x5cc1ca(0x1f0)](),'fileLogName':_0xe9fa3c+_0x5cc1ca(0x23b),'dir':this[_0x5cc1ca(0x211)][_0x5cc1ca(0x22a)]()+_0x5cc1ca(0x213)+_0xe9fa3c})),this[_0x5cc1ca(0x21a)][_0x5cc1ca(0x262)](_0xe9fa3c,_0x5238a0[_0xe9fa3c]);}Object['keys'](_0x5238a0)[_0x5cc1ca(0x22f)]>0x0&&(!_0x513ed2['midwayLogger']&&(_0x513ed2[_0x5cc1ca(0x27e)]={'default':{'maxSize':'1m','dir':this[_0x5cc1ca(0x211)]['getAppDir']()+'/runtime'}}),_0x513ed2[_0x5cc1ca(0x27e)][_0x5cc1ca(0x247)]=_0x5238a0),this[_0x5cc1ca(0x27d)]['addObject'](_0x513ed2);}}async[a2_0x2099d0(0x266)](){const _0x4279aa=a2_0x2099d0;var _0x645f38,_0x1ada2c,_0x3e89bd,_0x20c268,_0x111567,_0x481184;const _0x37eadc=this[_0x4279aa(0x27d)][_0x4279aa(0x244)]();((_0x1ada2c=(_0x645f38=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x236)])===null||_0x645f38===void 0x0?void 0x0:_0x645f38['devices'])===null||_0x1ada2c===void 0x0?void 0x0:_0x1ada2c[_0x4279aa(0x26c)])&&Object[_0x4279aa(0x255)](_0x37eadc[_0x4279aa(0x236)][_0x4279aa(0x27a)])[_0x4279aa(0x22f)]>0x1&&delete _0x37eadc[_0x4279aa(0x236)][_0x4279aa(0x27a)][_0x4279aa(0x26c)];if((_0x3e89bd=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x23c)])===null||_0x3e89bd===void 0x0?void 0x0:_0x3e89bd[_0x4279aa(0x208)])for(const _0x2dfc16 in _0x37eadc['staticFile']['dirs']){((_0x20c268=_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16])===null||_0x20c268===void 0x0?void 0x0:_0x20c268[_0x4279aa(0x206)])&&typeof((_0x111567=_0x37eadc['staticFile']['dirs'][_0x2dfc16])===null||_0x111567===void 0x0?void 0x0:_0x111567[_0x4279aa(0x206)])==_0x4279aa(0x1ee)&&!fs[_0x4279aa(0x1f9)](_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16]['dir'])&&(fs['mkdirSync'](_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16]['dir'],{'recursive':!![]}),console[_0x4279aa(0x23f)](_0x4279aa(0x273)+_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16][_0x4279aa(0x206)]));}((_0x481184=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x242)])===null||_0x481184===void 0x0?void 0x0:_0x481184[_0x4279aa(0x201)])&&!fs[_0x4279aa(0x1f9)](_0x37eadc[_0x4279aa(0x242)][_0x4279aa(0x201)])&&(fs['mkdirSync'](_0x37eadc[_0x4279aa(0x242)]['tmpdir'],{'recursive':!![]}),console[_0x4279aa(0x23f)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x37eadc[_0x4279aa(0x242)][_0x4279aa(0x201)])),this[_0x4279aa(0x27d)]['addObject'](_0x37eadc);}};exports[a2_0x2099d0(0x1fb)]=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x211),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x263)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x27d),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x234)])],CustomConfiguration[a2_0x2099d0(0x221)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x271)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x24d),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x23a)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x1fc),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_1[a2_0x2099d0(0x205)])],CustomConfiguration['prototype'],a2_0x2099d0(0x21a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2099d0(0x22c),ApiService_1[a2_0x2099d0(0x204)])],CustomConfiguration['prototype'],a2_0x2099d0(0x204),void 0x0),exports[a2_0x2099d0(0x1fb)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2099d0(0x24f),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x4d2901=a2_0xade6;function a2_0x3679(){const _0x10754c=['@anncic-api/typeorm','getClassMetadata','design:type','handler','@anncic-api/validator','staticFile','get','search','req','parse','_matchedRouteMeta','525096dRvZRS','3ljTRlz','routerOptions','device','addObject','isDevelopmentEnvironment','path','143vnAaXj','CustomConfiguration','decorate','checksign','Types','./types/intercept','connection','./config/config.default','existsSync','1039357qRyUFW','MidwayApplicationManager','.log','@anncic-api/cache','tmpdir','headers','substring','proceed','https://','getBaseDir','decorator','isArray','dir','1452008VndhkH','args','filepath','defaultsDeep','object','intercept','Inject','readdirSync','@midwayjs/cross-domain','./config/config.production','host','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','145352TBSOrS','context','124954HfYoYB','ApiService','@anncic-api/event','body','koa','encrypted','request','DEFAULT','match','anncic-api','key','./types/action','REQUEST_OBJ_CTX_KEY','string','App','toLowerCase','filterConfig','/apps','log','@midwayjs/core','name','getAsync','includes','/runtime/apps-','prototype','@anncic-api/core','defineProperty','http://','getApplications','attachment','split','isDirectory','midwayLogger','anncicapi','koa-send','config','ApiError','description','default','startsWith','@midwayjs/koa','30fdquhb','handlerActionRoute','__esModule','29589FpmOgR','MidwayConfigService','99BKslqW','__metadata','upload','metadata','statSync','getAppDir','target','devices','registerMethodHandler','method','input','HEADERS_SIGNATURE','Anncic-api\x20static-file\x20:\x20mkdir\x20','getConfiguration','文件不存在','constructor','tagName','environment','lastIndexOf','createLogger','dirs','loggerService','isNull','@midwayjs/upload','bodyXml','length','443','hanlderApplications','application','/runtime','173705QenjCF','defineProperties','_matchedRoute','toString','app','routerName','AppsConfigTmp','mkdirSync','clients','keys','requestKey','isClass','getOwnPropertyDescriptor','MidwayLoggerService','6vwXBjC','apply','7RtXLak','INTERCEPT_KEY','function','query'];a2_0x3679=function(){return _0x10754c;};return a2_0x3679();}(function(_0x30f85e,_0x220ece){const _0x2a6dbd=a2_0xade6,_0x18c4d3=_0x30f85e();while(!![]){try{const _0x3acc84=parseInt(_0x2a6dbd(0x1b4))/0x1*(-parseInt(_0x2a6dbd(0x158))/0x2)+-parseInt(_0x2a6dbd(0x1c4))/0x3*(-parseInt(_0x2a6dbd(0x1e0))/0x4)+parseInt(_0x2a6dbd(0x1a4))/0x5+-parseInt(_0x2a6dbd(0x1b2))/0x6*(-parseInt(_0x2a6dbd(0x184))/0x7)+-parseInt(_0x2a6dbd(0x156))/0x8*(-parseInt(_0x2a6dbd(0x186))/0x9)+parseInt(_0x2a6dbd(0x181))/0xa*(-parseInt(_0x2a6dbd(0x1d3))/0xb)+-parseInt(_0x2a6dbd(0x1c3))/0xc*(-parseInt(_0x2a6dbd(0x1ca))/0xd);if(_0x3acc84===_0x220ece)break;else _0x18c4d3['push'](_0x18c4d3['shift']());}catch(_0x1e62a3){_0x18c4d3['push'](_0x18c4d3['shift']());}}}(a2_0x3679,0x5877f));const a2_0x59cb46=(function(){let _0x1e5d8d=!![];return function(_0x538f41,_0x4e0893){const _0x4b659a=_0x1e5d8d?function(){const _0x441fa6=a2_0xade6;if(_0x4e0893){const _0x302c00=_0x4e0893[_0x441fa6(0x1b3)](_0x538f41,arguments);return _0x4e0893=null,_0x302c00;}}:function(){};return _0x1e5d8d=![],_0x4b659a;};}()),a2_0x27b179=a2_0x59cb46(this,function(){const _0x335084=a2_0xade6;return a2_0x27b179['toString']()['search']('(((.+)+)+)+$')[_0x335084(0x1a7)]()[_0x335084(0x195)](a2_0x27b179)[_0x335084(0x1bf)]('(((.+)+)+)+$');});a2_0x27b179();'use strict';function a2_0xade6(_0x1d5238,_0x26f94a){const _0x4ead3b=a2_0x3679();return a2_0xade6=function(_0x27b179,_0x59cb46){_0x27b179=_0x27b179-0x14f;let _0x3679dc=_0x4ead3b[_0x27b179];return _0x3679dc;},a2_0xade6(_0x1d5238,_0x26f94a);}var __decorate=this&&this['__decorate']||function(_0x4ddfc0,_0x4ebc7e,_0x3f9cfe,_0x4d5a86){const _0x364cfe=a2_0xade6;var _0x1e9a9b=arguments[_0x364cfe(0x19f)],_0x41a303=_0x1e9a9b<0x3?_0x4ebc7e:_0x4d5a86===null?_0x4d5a86=Object[_0x364cfe(0x1b0)](_0x4ebc7e,_0x3f9cfe):_0x4d5a86,_0x5a8040;if(typeof Reflect===_0x364cfe(0x1e4)&&typeof Reflect[_0x364cfe(0x1cc)]===_0x364cfe(0x1b6))_0x41a303=Reflect[_0x364cfe(0x1cc)](_0x4ddfc0,_0x4ebc7e,_0x3f9cfe,_0x4d5a86);else{for(var _0x4138ee=_0x4ddfc0['length']-0x1;_0x4138ee>=0x0;_0x4138ee--)if(_0x5a8040=_0x4ddfc0[_0x4138ee])_0x41a303=(_0x1e9a9b<0x3?_0x5a8040(_0x41a303):_0x1e9a9b>0x3?_0x5a8040(_0x4ebc7e,_0x3f9cfe,_0x41a303):_0x5a8040(_0x4ebc7e,_0x3f9cfe))||_0x41a303;}return _0x1e9a9b>0x3&&_0x41a303&&Object[_0x364cfe(0x172)](_0x4ebc7e,_0x3f9cfe,_0x41a303),_0x41a303;},__metadata=this&&this[a2_0x4d2901(0x187)]||function(_0x495cb0,_0x22375b){const _0x1bb9bd=a2_0x4d2901;if(typeof Reflect===_0x1bb9bd(0x1e4)&&typeof Reflect['metadata']===_0x1bb9bd(0x1b6))return Reflect['metadata'](_0x495cb0,_0x22375b);};Object[a2_0x4d2901(0x172)](exports,a2_0x4d2901(0x183),{'value':!![]}),exports[a2_0x4d2901(0x1cb)]=void 0x0;const core_1=require(a2_0x4d2901(0x16b)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),intercept_1=require(a2_0x4d2901(0x1cf)),action_1=require(a2_0x4d2901(0x163)),fs=require('fs'),koasend=require(a2_0x4d2901(0x17a)),koa=require(a2_0x4d2901(0x180)),upload=require(a2_0x4d2901(0x19d)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4d2901(0x152)),ConfigDefault=require(a2_0x4d2901(0x1d1)),ConfigProduction=require(a2_0x4d2901(0x153)),anncic=require(a2_0x4d2901(0x171)),anncicCache=require(a2_0x4d2901(0x1d6)),anncicEvent=require(a2_0x4d2901(0x15a)),anncicTypeorm=require(a2_0x4d2901(0x1b8)),anncicValidator=require(a2_0x4d2901(0x1bc)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x130c4b=a2_0x4d2901;await this[_0x130c4b(0x168)](),await this['loggerConfig'](),await this[_0x130c4b(0x182)](),await this[_0x130c4b(0x1a1)]();}async[a2_0x4d2901(0x182)](){const _0x4f9f75=a2_0x4d2901,_0x2dd633=this[_0x4f9f75(0x17b)]['getConfiguration'](),_0x573ce1=(0x0,core_1[_0x4f9f75(0x1b9)])(intercept_1[_0x4f9f75(0x1b5)],intercept_1['InterceptTargetTmp'])||{};this[_0x4f9f75(0x1dd)][_0x4f9f75(0x18e)](action_1['ACTION_ROUTE_KEY'],_0x4101f4=>{const _0x1dc0ee=_0x4f9f75;var _0x5d5868;const _0x31ce17=(0x0,core_1[_0x1dc0ee(0x1b9)])(action_1['APPSCONFIG_KEY'],action_1[_0x1dc0ee(0x1aa)])||{},_0x5dcdec=_0x4101f4[_0x1dc0ee(0x189)],_0x55679b=(0x0,core_1[_0x1dc0ee(0x1b9)])(action_1['ACTION_KEY'],_0x4101f4[_0x1dc0ee(0x18c)])||{},_0x369c54=((_0x5d5868=_0x55679b===null||_0x55679b===void 0x0?void 0x0:_0x55679b['filepath'])===null||_0x5d5868===void 0x0?void 0x0:_0x5d5868[_0x1dc0ee(0x1d9)](0x0,_0x55679b[_0x1dc0ee(0x1e2)][_0x1dc0ee(0x198)]('.')))||'',_0x1ab63e=(_0x55679b===null||_0x55679b===void 0x0?void 0x0:_0x55679b['module'])?(_0x31ce17===null||_0x31ce17===void 0x0?void 0x0:_0x31ce17[_0x55679b['module']])||{}:{};return{'before':async _0x3edbc4=>{const _0x5f587c=_0x1dc0ee;var _0x34539d,_0x2f1e0e,_0x218da1,_0x3bc032;const _0x4d6693=(_0x34539d=_0x3edbc4===null||_0x3edbc4===void 0x0?void 0x0:_0x3edbc4[_0x5f587c(0x18c)])===null||_0x34539d===void 0x0?void 0x0:_0x34539d[core_2[_0x5f587c(0x164)]],_0x208119=lodash[_0x5f587c(0x1e3)]({},_0x4d6693[_0x5f587c(0x15e)][_0x5f587c(0x15b)]||_0x4d6693[_0x5f587c(0x15e)][((_0x2f1e0e=_0x2dd633===null||_0x2dd633===void 0x0?void 0x0:_0x2dd633['bodyXml'])===null||_0x2f1e0e===void 0x0?void 0x0:_0x2f1e0e[_0x5f587c(0x162)])||'body']||{},_0x4d6693[_0x5f587c(0x15e)][_0x5f587c(0x1b7)]||{});_0x4d6693[_0x5f587c(0x1c2)]={'module':(_0x1ab63e===null||_0x1ab63e===void 0x0?void 0x0:_0x1ab63e[_0x5f587c(0x16c)])||'','routePath':''+_0x4d6693[_0x5f587c(0x1c9)],'routeName':_0x55679b[_0x5f587c(0x1c5)][_0x5f587c(0x196)]+'@'+_0x5dcdec[_0x5f587c(0x1a9)],'routeMethod':((_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec['requestMethod'])||_0x4d6693['method']||'')[_0x5f587c(0x167)](),'routeDescription':(_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec[_0x5f587c(0x17d)])||'','filemethod':_0x369c54+'@'+(_0x5dcdec[_0x5f587c(0x18f)]||'')};if(_0x4d6693&&(_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec['apimit']))try{const _0x525e0a=((_0x218da1=_0x2dd633===null||_0x2dd633===void 0x0?void 0x0:_0x2dd633['anncicapi'])===null||_0x218da1===void 0x0?void 0x0:_0x218da1[_0x5f587c(0x1ae)])&&typeof(_0x208119===null||_0x208119===void 0x0?void 0x0:_0x208119[_0x2dd633['anncicapi'][_0x5f587c(0x1ae)]])==_0x5f587c(0x165)?JSON[_0x5f587c(0x1c1)](base64_decode(_0x208119[_0x2dd633[_0x5f587c(0x179)][_0x5f587c(0x1ae)]])||'{}')||{}:((_0x3bc032=_0x4d6693===null||_0x4d6693===void 0x0?void 0x0:_0x4d6693['request'])===null||_0x3bc032===void 0x0?void 0x0:_0x3bc032[_0x5f587c(0x1d8)])||{};if(!this[_0x5f587c(0x159)][_0x5f587c(0x1cd)](_0x525e0a))throw new AnnError(ApiError_1['ApiError'][_0x5f587c(0x191)]);}catch(_0x4ced50){if(_0x4ced50 instanceof AnnError)throw _0x4ced50;else throw new AnnError(ApiError_1[_0x5f587c(0x17c)]['_UNKNOW_']);}},'around':async _0x455798=>{const _0x34d6a4=_0x1dc0ee;var _0x34798c,_0xc7b000,_0x3982e3;const _0x39a353=(_0x34798c=_0x455798===null||_0x455798===void 0x0?void 0x0:_0x455798['target'])===null||_0x34798c===void 0x0?void 0x0:_0x34798c[core_2[_0x34d6a4(0x164)]];if(_0x39a353&&(_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec['apimit'])&&((_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec[_0x34d6a4(0x14f)])||typeof(_0x5dcdec===null||_0x5dcdec===void 0x0?void 0x0:_0x5dcdec[_0x34d6a4(0x14f)])=='undefined')){if(((_0xc7b000=_0x39a353[_0x34d6a4(0x1d8)])===null||_0xc7b000===void 0x0?void 0x0:_0xc7b000[_0x34d6a4(0x1c6)])&&((_0x3982e3=_0x573ce1===null||_0x573ce1===void 0x0?void 0x0:_0x573ce1[_0x39a353['headers'][_0x34d6a4(0x1c6)]])===null||_0x3982e3===void 0x0?void 0x0:_0x3982e3[_0x34d6a4(0x19f)])>0x0)for(const _0x463f51 of _0x573ce1[_0x39a353[_0x34d6a4(0x1d8)]['device']]||[]){if(core_1['Types'][_0x34d6a4(0x1af)](_0x463f51)){const _0x245441=await _0x39a353['requestContext'][_0x34d6a4(0x16d)](_0x463f51);typeof(_0x245441===null||_0x245441===void 0x0?void 0x0:_0x245441[_0x34d6a4(0x160)])==_0x34d6a4(0x1b6)?await _0x245441[_0x34d6a4(0x160)](_0x39a353,typeof(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x18f)])==_0x34d6a4(0x165)&&(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x1a6)])?_0x39a353['method'][_0x34d6a4(0x167)]()+'@'+(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x1a6)]):undefined,_0x5dcdec)&&await _0x245441[_0x34d6a4(0x1bb)](_0x39a353,typeof(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x18f)])==_0x34d6a4(0x165)&&(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x1a6)])?_0x39a353[_0x34d6a4(0x18f)]['toLowerCase']()+'@'+(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x1a6)]):undefined,_0x5dcdec):await _0x245441['handler'](_0x39a353,typeof(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x18f)])=='string'&&(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353['_matchedRoute'])?_0x39a353[_0x34d6a4(0x18f)]['toLowerCase']()+'@'+(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353['_matchedRoute']):undefined,_0x5dcdec);}else core_1[_0x34d6a4(0x1ce)]['isFunction'](_0x463f51)&&await _0x463f51(_0x39a353,typeof(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353['method'])==_0x34d6a4(0x165)&&(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353['_matchedRoute'])?_0x39a353['method'][_0x34d6a4(0x167)]()+'@'+(_0x39a353===null||_0x39a353===void 0x0?void 0x0:_0x39a353[_0x34d6a4(0x1a6)]):undefined,_0x5dcdec);}}return await _0x455798[_0x34d6a4(0x1da)](..._0x455798[_0x34d6a4(0x1e1)]);},'afterThrow':(_0x2a3236,_0x458438)=>{throw _0x458438;}};});}async[a2_0x4d2901(0x1a1)](){const _0x320659=a2_0x4d2901,_0x460604=this[_0x320659(0x17b)][_0x320659(0x193)]();this[_0x320659(0x1a2)][_0x320659(0x174)]([_0x320659(0x15c)])['forEach'](_0x257c17=>{const _0x303e7d=_0x320659;(_0x257c17===null||_0x257c17===void 0x0?void 0x0:_0x257c17[_0x303e7d(0x157)])&&Object[_0x303e7d(0x1a5)](_0x257c17[_0x303e7d(0x157)],{'hosturl':{'configurable':![],'get':function(){const _0x84ea65=_0x303e7d;var _0x5b6f0c,_0x3c4371,_0x3ddc44,_0x55f890;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x84ea65(0x154)][_0x84ea65(0x17f)]('http')){let _0x265ace=this[_0x84ea65(0x154)][_0x84ea65(0x176)](':');return['80','443'][_0x84ea65(0x16e)](_0x265ace===null||_0x265ace===void 0x0?void 0x0:_0x265ace[0x1])?''+(!!((_0x3c4371=(_0x5b6f0c=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x5b6f0c===void 0x0?void 0x0:_0x5b6f0c[_0x84ea65(0x1d0)])===null||_0x3c4371===void 0x0?void 0x0:_0x3c4371[_0x84ea65(0x15d)])||(_0x265ace===null||_0x265ace===void 0x0?void 0x0:_0x265ace[0x1])==_0x84ea65(0x1a0)?_0x84ea65(0x1db):_0x84ea65(0x173))+_0x265ace[0x0]:''+(!!((_0x55f890=(_0x3ddc44=this===null||this===void 0x0?void 0x0:this[_0x84ea65(0x1c0)])===null||_0x3ddc44===void 0x0?void 0x0:_0x3ddc44[_0x84ea65(0x1d0)])===null||_0x55f890===void 0x0?void 0x0:_0x55f890['encrypted'])?_0x84ea65(0x1db):_0x84ea65(0x173))+this[_0x84ea65(0x154)];}return'';}},'ok':{'value':function(_0x997a9e,_0xdd1bef,_0x5bd8fd=0x0){return{'code':_0x5bd8fd,'data':_0x997a9e,'extra':_0xdd1bef};}},'input':{'value':function(_0x454bb9,_0x16be9a){const _0x12d057=_0x303e7d;var _0x45e823;const _0x28fef3=lodash[_0x12d057(0x1e3)]({},this[_0x12d057(0x15e)][_0x12d057(0x15b)]||this[_0x12d057(0x15e)][((_0x45e823=_0x460604===null||_0x460604===void 0x0?void 0x0:_0x460604[_0x12d057(0x19e)])===null||_0x45e823===void 0x0?void 0x0:_0x45e823[_0x12d057(0x162)])||_0x12d057(0x15b)]||{},this['request']['query']||{});return _0x454bb9?lodash[_0x12d057(0x1be)](_0x28fef3,_0x454bb9,_0x16be9a):_0x28fef3;}},'when':{'value':async function(_0x4da192,_0x2fd56d){const _0x574c1a=_0x303e7d,_0x3e8350=this[_0x574c1a(0x190)](_0x4da192,null);if(!lodash[_0x574c1a(0x19c)](_0x3e8350))return await _0x2fd56d(_0x3e8350);}},'only':{'value':function(_0x409312){const _0x140048=_0x303e7d,_0x32b811={};for(let _0x509b5a=0x0;_0x509b5a<_0x409312[_0x140048(0x19f)];_0x509b5a++){lodash[_0x140048(0x1de)](_0x409312[_0x509b5a])&&_0x409312[_0x509b5a][_0x140048(0x19f)]>0x0&&lodash['isString'](_0x409312[_0x509b5a][0x0])&&(_0x32b811[_0x409312[_0x509b5a][0x0]]=this[_0x140048(0x190)](_0x409312[_0x509b5a][0x0],_0x409312[_0x509b5a]['length']>0x1?_0x409312[_0x509b5a][0x1]:null));}return _0x32b811;}},'koasend':{'value':async function(_0x339aa0,_0x2946b6){const _0x5e968b=_0x303e7d;if(_0x339aa0&&!fs[_0x5e968b(0x1d2)](_0x339aa0)&&!fs[_0x5e968b(0x1d2)](this[_0x5e968b(0x1a8)]['getAppDir']()+'/'+_0x339aa0))return _0x5e968b(0x194);return _0x339aa0=fs[_0x5e968b(0x1d2)](_0x339aa0)?_0x339aa0:this[_0x5e968b(0x1a8)][_0x5e968b(0x18b)]()+'/'+_0x339aa0,this[_0x5e968b(0x175)](_0x2946b6||_0x339aa0),await koasend(this,_0x339aa0);}}});});}async['loggerConfig'](){const _0x62f15c=a2_0x4d2901;var _0x212e7a,_0x2bff88;if(fs[_0x62f15c(0x1d2)](this[_0x62f15c(0x1a8)][_0x62f15c(0x1dc)]()+'/apps')&&fs[_0x62f15c(0x18a)](this[_0x62f15c(0x1a8)][_0x62f15c(0x1dc)]()+_0x62f15c(0x169))['isDirectory']()){const _0x3c1d38=this[_0x62f15c(0x17b)]['getConfiguration'](),_0x301baa=((_0x212e7a=_0x3c1d38===null||_0x3c1d38===void 0x0?void 0x0:_0x3c1d38['midwayLogger'])===null||_0x212e7a===void 0x0?void 0x0:_0x212e7a[_0x62f15c(0x1ac)])||{};for(const _0x527f89 of fs[_0x62f15c(0x151)](this[_0x62f15c(0x1a8)][_0x62f15c(0x1dc)]()+'/apps')){if(!fs[_0x62f15c(0x18a)](this[_0x62f15c(0x1a8)][_0x62f15c(0x1dc)]()+'/apps/'+_0x527f89)[_0x62f15c(0x177)]())continue;!(_0x301baa===null||_0x301baa===void 0x0?void 0x0:_0x301baa[_0x527f89])&&(_0x301baa[_0x527f89]=Object['assign']({},((_0x2bff88=_0x3c1d38===null||_0x3c1d38===void 0x0?void 0x0:_0x3c1d38['midwayLogger'])===null||_0x2bff88===void 0x0?void 0x0:_0x2bff88[_0x62f15c(0x17e)])||{'maxSize':'1m','dir':this[_0x62f15c(0x1a8)][_0x62f15c(0x18b)]()+_0x62f15c(0x1a3)},{'enableJSON':!![],'enableConsole':this[_0x62f15c(0x197)][_0x62f15c(0x1c8)](),'fileLogName':_0x527f89+_0x62f15c(0x1d5),'dir':this[_0x62f15c(0x1a8)][_0x62f15c(0x18b)]()+_0x62f15c(0x16f)+_0x527f89})),this[_0x62f15c(0x19b)][_0x62f15c(0x199)](_0x527f89,_0x301baa[_0x527f89]);}Object[_0x62f15c(0x1ad)](_0x301baa)[_0x62f15c(0x19f)]>0x0&&(!_0x3c1d38[_0x62f15c(0x178)]&&(_0x3c1d38[_0x62f15c(0x178)]={'default':{'maxSize':'1m','dir':this['app'][_0x62f15c(0x18b)]()+_0x62f15c(0x1a3)}}),_0x3c1d38['midwayLogger'][_0x62f15c(0x1ac)]=_0x301baa),this[_0x62f15c(0x17b)][_0x62f15c(0x1c7)](_0x3c1d38);}}async[a2_0x4d2901(0x168)](){const _0x301c67=a2_0x4d2901;var _0x346df0,_0x1e7320,_0x1235af,_0x5d6033,_0x1a9556,_0x26c1c1;const _0x59fc8d=this[_0x301c67(0x17b)]['getConfiguration']();((_0x1e7320=(_0x346df0=_0x59fc8d===null||_0x59fc8d===void 0x0?void 0x0:_0x59fc8d[_0x301c67(0x179)])===null||_0x346df0===void 0x0?void 0x0:_0x346df0[_0x301c67(0x18d)])===null||_0x1e7320===void 0x0?void 0x0:_0x1e7320['DEFAULT'])&&Object[_0x301c67(0x1ad)](_0x59fc8d[_0x301c67(0x179)][_0x301c67(0x18d)])[_0x301c67(0x19f)]>0x1&&delete _0x59fc8d[_0x301c67(0x179)]['devices'][_0x301c67(0x15f)];if((_0x1235af=_0x59fc8d===null||_0x59fc8d===void 0x0?void 0x0:_0x59fc8d[_0x301c67(0x1bd)])===null||_0x1235af===void 0x0?void 0x0:_0x1235af['dirs'])for(const _0x595c4e in _0x59fc8d[_0x301c67(0x1bd)][_0x301c67(0x19a)]){((_0x5d6033=_0x59fc8d[_0x301c67(0x1bd)]['dirs'][_0x595c4e])===null||_0x5d6033===void 0x0?void 0x0:_0x5d6033['dir'])&&typeof((_0x1a9556=_0x59fc8d['staticFile'][_0x301c67(0x19a)][_0x595c4e])===null||_0x1a9556===void 0x0?void 0x0:_0x1a9556['dir'])==_0x301c67(0x165)&&!fs[_0x301c67(0x1d2)](_0x59fc8d[_0x301c67(0x1bd)][_0x301c67(0x19a)][_0x595c4e][_0x301c67(0x1df)])&&(fs[_0x301c67(0x1ab)](_0x59fc8d[_0x301c67(0x1bd)][_0x301c67(0x19a)][_0x595c4e][_0x301c67(0x1df)],{'recursive':!![]}),console[_0x301c67(0x16a)](_0x301c67(0x192)+_0x59fc8d['staticFile'][_0x301c67(0x19a)][_0x595c4e][_0x301c67(0x1df)]));}((_0x26c1c1=_0x59fc8d===null||_0x59fc8d===void 0x0?void 0x0:_0x59fc8d['upload'])===null||_0x26c1c1===void 0x0?void 0x0:_0x26c1c1[_0x301c67(0x1d7)])&&!fs[_0x301c67(0x1d2)](_0x59fc8d['upload'][_0x301c67(0x1d7)])&&(fs[_0x301c67(0x1ab)](_0x59fc8d[_0x301c67(0x188)][_0x301c67(0x1d7)],{'recursive':!![]}),console['log'](_0x301c67(0x155)+_0x59fc8d[_0x301c67(0x188)]['tmpdir'])),this[_0x301c67(0x17b)][_0x301c67(0x1c7)](_0x59fc8d);}};__decorate([(0x0,core_1[a2_0x4d2901(0x166)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a2_0x4d2901(0x1a8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4d2901(0x1ba),core_2[a2_0x4d2901(0x185)])],CustomConfiguration[a2_0x4d2901(0x170)],a2_0x4d2901(0x17b),void 0x0),__decorate([(0x0,core_1[a2_0x4d2901(0x150)])(),__metadata(a2_0x4d2901(0x1ba),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x4d2901(0x1dd),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4d2901(0x1d4)])],CustomConfiguration[a2_0x4d2901(0x170)],a2_0x4d2901(0x1a2),void 0x0),__decorate([(0x0,core_1[a2_0x4d2901(0x150)])(),__metadata('design:type',core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x4d2901(0x170)],a2_0x4d2901(0x197),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4d2901(0x1ba),core_1[a2_0x4d2901(0x1b1)])],CustomConfiguration[a2_0x4d2901(0x170)],'loggerService',void 0x0),__decorate([(0x0,core_1[a2_0x4d2901(0x150)])(),__metadata('design:type',ApiService_1[a2_0x4d2901(0x159)])],CustomConfiguration[a2_0x4d2901(0x170)],a2_0x4d2901(0x159),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4d2901(0x161),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ActionOption, ActionApiOption } from '../types/action';
|
|
2
|
-
export declare function Action(filename: string, tagName: string, routerOptions?: ActionOption): ClassDecorator;
|
|
3
|
-
export declare namespace Action {
|
|
4
|
-
var get: (routerName: string, path?: string, options?: ActionApiOption) => MethodDecorator;
|
|
5
|
-
var post: (routerName: string, path?: string, options?: ActionApiOption) => MethodDecorator;
|
|
6
|
-
}
|
|
7
|
-
export declare function ActionApi(routerName: string, requestMethod?: "all" | "get" | "post", path?: string, options?: ActionApiOption): MethodDecorator;
|
|
8
|
-
export declare function parseRoute(filename: any): {
|
|
9
|
-
prefix: boolean | string;
|
|
10
|
-
route: string;
|
|
11
|
-
module: false | string;
|
|
12
|
-
rootpath: string;
|
|
13
|
-
filepath: string;
|
|
14
|
-
};
|
|
1
|
+
import { ActionOption, ActionApiOption } from '../types/action';
|
|
2
|
+
export declare function Action(filename: string, tagName: string, routerOptions?: ActionOption): ClassDecorator;
|
|
3
|
+
export declare namespace Action {
|
|
4
|
+
var get: (routerName: string, path?: string, options?: ActionApiOption) => MethodDecorator;
|
|
5
|
+
var post: (routerName: string, path?: string, options?: ActionApiOption) => MethodDecorator;
|
|
6
|
+
}
|
|
7
|
+
export declare function ActionApi(routerName: string, requestMethod?: "all" | "get" | "post", path?: string, options?: ActionApiOption): MethodDecorator;
|
|
8
|
+
export declare function parseRoute(filename: any): {
|
|
9
|
+
prefix: boolean | string;
|
|
10
|
+
route: string;
|
|
11
|
+
module: false | string;
|
|
12
|
+
rootpath: string;
|
|
13
|
+
filepath: string;
|
|
14
|
+
};
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x30a7c7=a3_0x1d33;(function(_0x3f2722,_0x1cde1b){const _0x54ecb7=a3_0x1d33,_0x46dc28=_0x3f2722();while(!![]){try{const _0xdb5e40=-parseInt(_0x54ecb7(0x116))/0x1*(parseInt(_0x54ecb7(0x113))/0x2)+-parseInt(_0x54ecb7(0x110))/0x3+-parseInt(_0x54ecb7(0x152))/0x4+parseInt(_0x54ecb7(0x119))/0x5+-parseInt(_0x54ecb7(0x126))/0x6+parseInt(_0x54ecb7(0x111))/0x7+-parseInt(_0x54ecb7(0x15c))/0x8*(-parseInt(_0x54ecb7(0x11f))/0x9);if(_0xdb5e40===_0x1cde1b)break;else _0x46dc28['push'](_0x46dc28['shift']());}catch(_0xb1a2cd){_0x46dc28['push'](_0x46dc28['shift']());}}}(a3_0x18f8,0xbd19f));const a3_0x429c3e=(function(){let _0x10b3de=!![];return function(_0x1afc4f,_0x26b2cb){const _0x4d6455=_0x10b3de?function(){const _0x3b9829=a3_0x1d33;if(_0x26b2cb){const _0x4bd785=_0x26b2cb[_0x3b9829(0x130)](_0x1afc4f,arguments);return _0x26b2cb=null,_0x4bd785;}}:function(){};return _0x10b3de=![],_0x4d6455;};}()),a3_0x311921=a3_0x429c3e(this,function(){const _0x5e1604=a3_0x1d33;return a3_0x311921[_0x5e1604(0x115)]()['search'](_0x5e1604(0x11b))[_0x5e1604(0x115)]()[_0x5e1604(0x13f)](a3_0x311921)[_0x5e1604(0x13b)](_0x5e1604(0x11b));});a3_0x311921();'use strict';var _a,_b;Object['defineProperty'](exports,a3_0x30a7c7(0x12d),{'value':!![]}),exports['parseRoute']=exports['ActionApi']=exports['Action']=void 0x0;function a3_0x18f8(){const _0x4a4548=['Controller','NODE_ENV','__esModule','apps/','replace','apply','/controller/文件下','toLowerCase','endsWith','basic/controller/','routerName','assign','-action','AppsConfigTmp','ACTION_KEY','match','search','keys','validate','MIDWAY_SERVER_ENV','constructor','filter','saveClassMetadata','length','isArray','middleware','/controller/','startsWith','/apps','defaultsDeep','route','\x20文件请放在apps/','trim','-controller','apimit','RequestMapping','undefined','intercept','createCustomMethodDecorator','4503212hPJfCO','@midwayjs/core','middlewareIgnore','splice','prefix','existsSync','/apps/','ActionApi','filepath','APPSCONFIG_KEY','3744CKEUDt','attachClassMetadata','cwd','getClassMetadata','615111Egdqah','5749086TftdtJ','\x20文件请放在app/controller/文件下','2eetFRe','parseRoute','toString','714412ZLTRpu','saveModule','../types/action','3276910fzNShx','push','(((.+)+)+)+$','string','@anncic-api/validator','indexOf','28485yEVDwa','app/controller/','post','ACTION_ROUTE_KEY','/config.','split','description','828534zUbLex','substring','get','join','module'];a3_0x18f8=function(){return _0x4a4548;};return a3_0x18f8();}const fs=require('fs'),validator_1=require(a3_0x30a7c7(0x11d)),core_1=require(a3_0x30a7c7(0x153)),core_2=require(a3_0x30a7c7(0x153)),action_1=require(a3_0x30a7c7(0x118)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a[a3_0x30a7c7(0x13e)])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a3_0x30a7c7(0x12c)]);function Action(_0x41b403,_0x2394c5,_0x52cff8={'middleware':[],'sensitive':!![]}){return _0x16eb90=>{const _0x474fa9=a3_0x1d33;var _0x331da3;_0x52cff8['tagName']=_0x2394c5;const _0x319afc=parseRoute(_0x41b403);if(_0x319afc[_0x474fa9(0x12a)]){_0x52cff8['prefix']=_0x52cff8[_0x474fa9(0x156)]?'/'+_0x319afc[_0x474fa9(0x12a)]+'/'+_0x52cff8[_0x474fa9(0x156)]:'/'+_0x319afc[_0x474fa9(0x149)];_0x319afc[_0x474fa9(0x156)]&&(_0x52cff8['prefix']='/'+_0x319afc['prefix']+'/'+_0x52cff8['prefix']);_0x52cff8[_0x474fa9(0x156)]=_0x52cff8[_0x474fa9(0x156)]['toLowerCase']()['replace'](/\/{2,}/g,'/');const _0x1b3b27=getModuleConfig(_0x319afc['rootpath']+_0x474fa9(0x147),_0x319afc['module'],lodash[_0x474fa9(0x133)](_0x319afc[_0x474fa9(0x15a)],'ts')?'ts':'js');if(lodash[_0x474fa9(0x143)](_0x1b3b27['middleware'])&&_0x1b3b27[_0x474fa9(0x144)][_0x474fa9(0x142)]>0x0)for(let _0x2cdd23 in _0x1b3b27[_0x474fa9(0x144)]){if(((_0x331da3=_0x1b3b27===null||_0x1b3b27===void 0x0?void 0x0:_0x1b3b27[_0x474fa9(0x154)])===null||_0x331da3===void 0x0?void 0x0:_0x331da3[_0x474fa9(0x142)])>0x0&&_0x1b3b27[_0x474fa9(0x154)]['indexOf'](_0x1b3b27[_0x474fa9(0x144)][_0x2cdd23])!=-0x1)continue;_0x52cff8['middleware'][_0x474fa9(0x11a)](_0x1b3b27[_0x474fa9(0x144)][_0x2cdd23]);}(0x0,core_1[_0x474fa9(0x117)])(action_1[_0x474fa9(0x139)],_0x16eb90),(0x0,core_1['Controller'])(_0x52cff8[_0x474fa9(0x156)],_0x52cff8)(_0x16eb90),(0x0,core_1[_0x474fa9(0x141)])(action_1[_0x474fa9(0x139)],{'prefix':_0x52cff8[_0x474fa9(0x156)],'pprefix':_0x319afc['prefix'],'module':_0x319afc[_0x474fa9(0x12a)],'filepath':_0x319afc['filepath'],'routerOptions':_0x52cff8},_0x16eb90);}else _0x52cff8['prefix']=_0x52cff8[_0x474fa9(0x156)]?'/'+_0x52cff8[_0x474fa9(0x156)]:'/'+_0x319afc['route'],_0x319afc[_0x474fa9(0x156)]&&(_0x52cff8[_0x474fa9(0x156)]='/'+_0x319afc[_0x474fa9(0x156)]+'/'+_0x52cff8['prefix']),_0x52cff8[_0x474fa9(0x156)]=_0x52cff8['prefix'][_0x474fa9(0x132)]()[_0x474fa9(0x12f)](/\/{2,}/g,'/'),(0x0,core_1[_0x474fa9(0x117)])(action_1[_0x474fa9(0x139)],_0x16eb90),(0x0,core_1[_0x474fa9(0x12b)])(_0x52cff8['prefix'],_0x52cff8)(_0x16eb90),(0x0,core_1[_0x474fa9(0x141)])(action_1['ACTION_KEY'],{'prefix':_0x52cff8[_0x474fa9(0x156)],'module':_0x319afc['module'],'pprefix':_0x319afc[_0x474fa9(0x156)],'filepath':_0x319afc[_0x474fa9(0x15a)],'routerOptions':_0x52cff8},_0x16eb90);};}exports['Action']=Action,Action['get']=function(_0x33cec6,_0x1b3b67='/',_0x128dac={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2ecd15,_0x38bb4b,_0x1e04c4)=>{const _0x4f6c54=a3_0x1d33;ActionApi(_0x33cec6,_0x4f6c54(0x128),_0x1b3b67,_0x128dac)(_0x2ecd15,_0x38bb4b,_0x1e04c4);};},Action['post']=function(_0x3fa651,_0xccfc41='/',_0x267991={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x36206e,_0x57a529,_0x49a73d)=>{const _0x5cee32=a3_0x1d33;ActionApi(_0x3fa651,_0x5cee32(0x121),_0xccfc41,_0x267991)(_0x36206e,_0x57a529,_0x49a73d);};};function ActionApi(_0x25cdf3,_0x423633=a3_0x30a7c7(0x128),_0x155e10='/',_0xa86c76={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3a35b1,_0x4189a4,_0x3885af)=>{const _0x36146b=a3_0x1d33;var _0x9df35a,_0x1884a5,_0xebcff1;!_0xa86c76[_0x36146b(0x144)]&&(_0xa86c76['middleware']=[]);!((_0x9df35a=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76[_0x36146b(0x13d)])===null||_0x9df35a===void 0x0?void 0x0:_0x9df35a['validationOptions'])&&(_0xa86c76[_0x36146b(0x13d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x36146b(0x11c)}});if(!_0x155e10)_0x155e10='/';else typeof _0x155e10==_0x36146b(0x11c)&&(!_0x155e10[_0x36146b(0x146)]('/')&&!_0x155e10[_0x36146b(0x146)]('-')&&(_0x155e10='/'+_0x155e10));typeof _0xa86c76['apimit']==_0x36146b(0x14f)&&(_0xa86c76[_0x36146b(0x14d)]=!![]);if(((_0x1884a5=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76['middleware'])===null||_0x1884a5===void 0x0?void 0x0:_0x1884a5['length'])>0x0&&((_0xebcff1=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76[_0x36146b(0x154)])===null||_0xebcff1===void 0x0?void 0x0:_0xebcff1['length'])>0x0)for(let _0x4ebea7 in _0xa86c76[_0x36146b(0x144)]){_0xa86c76[_0x36146b(0x154)][_0x36146b(0x11e)](_0xa86c76[_0x36146b(0x144)][_0x4ebea7])!==-0x1&&(_0xa86c76['middleware'][_0x4ebea7]=null);}_0xa86c76[_0x36146b(0x135)]=_0x25cdf3,(0x0,validator_1['Validator'])(_0xa86c76[_0x36146b(0x13d)])(_0x3a35b1,_0x4189a4,_0x3885af),(0x0,core_2[_0x36146b(0x14e)])(Object[_0x36146b(0x136)](_0xa86c76,{'path':_0x155e10,'requestMethod':(_0x423633||'get')[_0x36146b(0x132)]()}))(_0x3a35b1,_0x4189a4,_0x3885af),(0x0,core_2[_0x36146b(0x15d)])(action_1[_0x36146b(0x122)],{'path':_0x155e10,'method':_0x4189a4,'apimit':_0xa86c76['apimit'],'intercept':_0xa86c76[_0x36146b(0x150)],'routerName':_0xa86c76[_0x36146b(0x135)],'description':_0xa86c76['description'],'middleware':(_0xa86c76[_0x36146b(0x144)]||[])[_0x36146b(0x140)](_0x189142=>!!_0x189142),'requestMethod':(_0x423633||'get')[_0x36146b(0x132)]()},_0x3a35b1),(0x0,core_2[_0x36146b(0x151)])(action_1[_0x36146b(0x122)],{'path':_0x155e10,'method':_0x4189a4,'apimit':_0xa86c76[_0x36146b(0x14d)],'intercept':_0xa86c76[_0x36146b(0x150)],'routerName':_0xa86c76[_0x36146b(0x135)],'description':_0xa86c76[_0x36146b(0x125)],'middleware':(_0xa86c76['middleware']||[])['filter'](_0x2db13d=>!!_0x2db13d),'requestMethod':(_0x423633||_0x36146b(0x128))[_0x36146b(0x132)]()})(_0x3a35b1,_0x4189a4,_0x3885af);};}exports[a3_0x30a7c7(0x159)]=ActionApi;function parseRoute(_0x536f69){const _0x31b7bb=a3_0x30a7c7;_0x536f69=_0x536f69[_0x31b7bb(0x12f)](/(\\|\/)/g,'/');const _0x464597=process[_0x31b7bb(0x15e)]()[_0x31b7bb(0x12f)](/(\\|\/)/g,'/'),_0x377855=_0x536f69[_0x31b7bb(0x127)](0x0,_0x464597[_0x31b7bb(0x142)]+_0x536f69[_0x31b7bb(0x127)](_0x464597[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x11e)]('/')+0x1),_0x4c1dd5=_0x536f69['substring'](_0x377855[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x12f)](/(\\|\/)/g,'/'),_0x29e20f={'route':'','prefix':![],'module':![],'rootpath':_0x377855,'filepath':_0x4c1dd5};if(_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x120))||_0x4c1dd5[_0x31b7bb(0x146)]('basic/controller/')){const _0x43719b=_0x4c1dd5[_0x31b7bb(0x127)]((_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x120))?'app/controller/':_0x31b7bb(0x134))[_0x31b7bb(0x142)])[_0x31b7bb(0x124)]('/')[_0x31b7bb(0x140)](_0x43725d=>_0x43725d&&_0x43725d[_0x31b7bb(0x14b)]());return _0x43719b[_0x31b7bb(0x142)]>0x1&&(_0x29e20f['prefix']=_0x43719b[0x0]['toLowerCase'](),_0x43719b[_0x31b7bb(0x155)](0x0,0x1)),_0x29e20f[_0x31b7bb(0x149)]=('/'+_0x43719b[_0x31b7bb(0x129)]('/'))[_0x31b7bb(0x12f)](/(\.ts|\.js)$/,'')[_0x31b7bb(0x12f)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x31b7bb(0x129)]('-')['toLowerCase']()[_0x31b7bb(0x12f)](/\/\-/g,'/'),_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x133)](_0x31b7bb(0x137))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0x7)),_0x29e20f['route']['endsWith'](_0x31b7bb(0x14c))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0xb)),_0x29e20f;}else{if(_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x12e))){const _0xce8ec3=_0x4c1dd5['substring'](0x0,_0x4c1dd5['indexOf'](_0x31b7bb(0x158))+0x5),_0x4f5cfa=_0x4c1dd5[_0x31b7bb(0x127)](_0xce8ec3[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x12f)](/(\\|\/)/g,'/')[_0x31b7bb(0x124)]('/')[0x0];if(_0x4c1dd5[_0x31b7bb(0x146)]('apps/'+_0x4f5cfa+'/controller/')){const _0xfa97c5=_0x4c1dd5['substring']((_0xce8ec3+'/'+_0x4f5cfa+_0x31b7bb(0x145))[_0x31b7bb(0x142)])[_0x31b7bb(0x124)]('/')[_0x31b7bb(0x140)](_0x33a2e0=>_0x33a2e0&&_0x33a2e0['trim']());return _0xfa97c5[_0x31b7bb(0x142)]>0x1&&(_0x29e20f['prefix']=_0xfa97c5[0x0][_0x31b7bb(0x132)](),_0xfa97c5[_0x31b7bb(0x155)](0x0,0x1)),_0x29e20f[_0x31b7bb(0x12a)]=_0x4f5cfa,_0x29e20f[_0x31b7bb(0x149)]=('/'+_0x4f5cfa+'/'+_0xfa97c5[_0x31b7bb(0x129)]('/'))[_0x31b7bb(0x12f)](/(\.ts|\.js)$/,'')[_0x31b7bb(0x12f)](/\/{2,}/g,'/')[_0x31b7bb(0x13a)](/[\/|A-Z]*[^A-Z]+/g)[_0x31b7bb(0x129)]('-')['toLowerCase']()[_0x31b7bb(0x12f)](/\/\-/g,'/'),_0x29e20f['route'][_0x31b7bb(0x133)](_0x31b7bb(0x137))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0x7)),_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x133)]('-controller')&&(_0x29e20f['route']=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f['route'][_0x31b7bb(0x142)]-0xb)),_0x29e20f;}throw new Error(_0x4c1dd5+_0x31b7bb(0x14a)+_0x4f5cfa+_0x31b7bb(0x131));}}throw new Error(_0x4c1dd5+_0x31b7bb(0x112));}exports[a3_0x30a7c7(0x114)]=parseRoute;function a3_0x1d33(_0xfe2ab1,_0x2d2b77){const _0x57ff98=a3_0x18f8();return a3_0x1d33=function(_0x311921,_0x429c3e){_0x311921=_0x311921-0x110;let _0x18f8c5=_0x57ff98[_0x311921];return _0x18f8c5;},a3_0x1d33(_0xfe2ab1,_0x2d2b77);}const moduleConfigTmp=(0x0,core_1[a3_0x30a7c7(0x15f)])(action_1[a3_0x30a7c7(0x15b)],action_1[a3_0x30a7c7(0x138)])||{};function getModuleConfig(_0x312f74,_0xbe875b,_0x1357a3){const _0x5b5f03=a3_0x30a7c7;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0xbe875b])){let _0x519ecb={};if(NODE_ENV&&fs[_0x5b5f03(0x157)](_0x312f74+'/'+_0xbe875b+_0x5b5f03(0x123)+NODE_ENV+'.'+_0x1357a3)){const _0x3dd4ff=include(_0x312f74+'/'+_0xbe875b+'/config.'+NODE_ENV+'.'+_0x1357a3);Object[_0x5b5f03(0x13c)](_0x3dd4ff)[_0x5b5f03(0x142)]>0x0&&(_0x519ecb=lodash[_0x5b5f03(0x148)](_0x519ecb,_0x3dd4ff));}if(fs[_0x5b5f03(0x157)](_0x312f74+_0x5b5f03(0x123)+_0x1357a3)){const _0x3f0c0d=include(_0x312f74+_0x5b5f03(0x123)+_0x1357a3);Object[_0x5b5f03(0x13c)](_0x3f0c0d)[_0x5b5f03(0x142)]>0x0&&(_0x519ecb=lodash[_0x5b5f03(0x148)](_0x519ecb,_0x3f0c0d));}moduleConfigTmp[_0xbe875b]=_0x519ecb,(0x0,core_1[_0x5b5f03(0x141)])(action_1[_0x5b5f03(0x15b)],moduleConfigTmp,action_1[_0x5b5f03(0x138)]);}return moduleConfigTmp[_0xbe875b];}
|
|
1
|
+
function a3_0xac20(_0x25a450,_0x42da2b){const _0xee61fd=a3_0x3a9b();return a3_0xac20=function(_0x2b1d2b,_0x3c258){_0x2b1d2b=_0x2b1d2b-0x1a4;let _0x3a9bf3=_0xee61fd[_0x2b1d2b];return _0x3a9bf3;},a3_0xac20(_0x25a450,_0x42da2b);}const a3_0x59ba04=a3_0xac20;(function(_0x499c6c,_0x550f2d){const _0x5c4864=a3_0xac20,_0x3ad891=_0x499c6c();while(!![]){try{const _0x53a54a=-parseInt(_0x5c4864(0x1eb))/0x1*(-parseInt(_0x5c4864(0x1e9))/0x2)+-parseInt(_0x5c4864(0x1f1))/0x3*(-parseInt(_0x5c4864(0x1ac))/0x4)+parseInt(_0x5c4864(0x1a9))/0x5*(parseInt(_0x5c4864(0x1df))/0x6)+parseInt(_0x5c4864(0x1c1))/0x7*(-parseInt(_0x5c4864(0x1be))/0x8)+parseInt(_0x5c4864(0x1a7))/0x9*(parseInt(_0x5c4864(0x1cd))/0xa)+parseInt(_0x5c4864(0x1c5))/0xb+-parseInt(_0x5c4864(0x1e4))/0xc;if(_0x53a54a===_0x550f2d)break;else _0x3ad891['push'](_0x3ad891['shift']());}catch(_0x246160){_0x3ad891['push'](_0x3ad891['shift']());}}}(a3_0x3a9b,0x22af2));const a3_0x3c258=(function(){let _0x112d87=!![];return function(_0x17e3a3,_0x5660c2){const _0x11c31b=_0x112d87?function(){const _0x5df53d=a3_0xac20;if(_0x5660c2){const _0x8ed1ab=_0x5660c2[_0x5df53d(0x1b1)](_0x17e3a3,arguments);return _0x5660c2=null,_0x8ed1ab;}}:function(){};return _0x112d87=![],_0x11c31b;};}()),a3_0x2b1d2b=a3_0x3c258(this,function(){const _0x3a6a5a=a3_0xac20;return a3_0x2b1d2b[_0x3a6a5a(0x1b4)]()[_0x3a6a5a(0x1f0)](_0x3a6a5a(0x1cb))['toString']()[_0x3a6a5a(0x1cf)](a3_0x2b1d2b)[_0x3a6a5a(0x1f0)](_0x3a6a5a(0x1cb));});a3_0x2b1d2b();'use strict';var _a,_b;function a3_0x3a9b(){const _0x1d4a70=['144udNeAL','length','15BbZjYO','split','string','584852cbRqQd','substring','createCustomMethodDecorator','post','/config.','apply','splice','@anncic-api/validator','toString','assign','defineProperty','attachClassMetadata','/apps','apps/','filter','get','middlewareIgnore','\x20文件请放在apps/','72024xgQOUO','Validator','/apps/','7tTUhjp','description','basic/controller/','getClassMetadata','589743egSiBH','join','app/controller/','ACTION_ROUTE_KEY','saveModule','cwd','(((.+)+)+)+$','indexOf','149260OCUjMX','/controller/','constructor','module','route','rootpath','undefined','middleware','existsSync','apimit','Action','APPSCONFIG_KEY','replace','ACTION_KEY','../types/action','__esModule','defaultsDeep','saveClassMetadata','436968eeOpwd','validate','filepath','MIDWAY_SERVER_ENV','routerName','8245368dxMfDb','validationOptions','RequestMapping','-action','-controller','1094JAcxyA','env','331kpLCYy','prefix','NODE_ENV','trim','keys','search','3QqZXSK','endsWith','intercept','match','toLowerCase','startsWith','Controller'];a3_0x3a9b=function(){return _0x1d4a70;};return a3_0x3a9b();}Object[a3_0x59ba04(0x1b6)](exports,a3_0x59ba04(0x1dc),{'value':!![]}),exports['parseRoute']=exports['ActionApi']=exports[a3_0x59ba04(0x1d7)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x59ba04(0x1b3)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a3_0x59ba04(0x1db)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x59ba04(0x1ea)])===null||_a===void 0x0?void 0x0:_a[a3_0x59ba04(0x1e2)])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a3_0x59ba04(0x1ed)]);function Action(_0x5dee82,_0x28fb58,_0x2964c9={'middleware':[],'sensitive':!![]}){return _0x475582=>{const _0x5e9da4=a3_0xac20;var _0x2bf3d5;_0x2964c9['tagName']=_0x28fb58;const _0x1f431d=parseRoute(_0x5dee82);if(_0x1f431d[_0x5e9da4(0x1d0)]){_0x2964c9['prefix']=_0x2964c9[_0x5e9da4(0x1ec)]?'/'+_0x1f431d[_0x5e9da4(0x1d0)]+'/'+_0x2964c9[_0x5e9da4(0x1ec)]:'/'+_0x1f431d['route'];_0x1f431d['prefix']&&(_0x2964c9[_0x5e9da4(0x1ec)]='/'+_0x1f431d[_0x5e9da4(0x1ec)]+'/'+_0x2964c9[_0x5e9da4(0x1ec)]);_0x2964c9[_0x5e9da4(0x1ec)]=_0x2964c9[_0x5e9da4(0x1ec)][_0x5e9da4(0x1a4)]()[_0x5e9da4(0x1d9)](/\/{2,}/g,'/');const _0xefc538=getModuleConfig(_0x1f431d[_0x5e9da4(0x1d2)]+_0x5e9da4(0x1b8),_0x1f431d[_0x5e9da4(0x1d0)],lodash[_0x5e9da4(0x1f2)](_0x1f431d[_0x5e9da4(0x1e1)],'ts')?'ts':'js');if(lodash['isArray'](_0xefc538[_0x5e9da4(0x1d4)])&&_0xefc538[_0x5e9da4(0x1d4)][_0x5e9da4(0x1a8)]>0x0)for(let _0x3aabcb in _0xefc538[_0x5e9da4(0x1d4)]){if(((_0x2bf3d5=_0xefc538===null||_0xefc538===void 0x0?void 0x0:_0xefc538[_0x5e9da4(0x1bc)])===null||_0x2bf3d5===void 0x0?void 0x0:_0x2bf3d5[_0x5e9da4(0x1a8)])>0x0&&_0xefc538[_0x5e9da4(0x1bc)][_0x5e9da4(0x1cc)](_0xefc538[_0x5e9da4(0x1d4)][_0x3aabcb])!=-0x1)continue;_0x2964c9[_0x5e9da4(0x1d4)]['push'](_0xefc538['middleware'][_0x3aabcb]);}(0x0,core_1[_0x5e9da4(0x1c9)])(action_1[_0x5e9da4(0x1da)],_0x475582),(0x0,core_1[_0x5e9da4(0x1a6)])(_0x2964c9[_0x5e9da4(0x1ec)],_0x2964c9)(_0x475582),(0x0,core_1[_0x5e9da4(0x1de)])(action_1['ACTION_KEY'],{'prefix':_0x2964c9[_0x5e9da4(0x1ec)],'pprefix':_0x1f431d[_0x5e9da4(0x1ec)],'module':_0x1f431d[_0x5e9da4(0x1d0)],'filepath':_0x1f431d[_0x5e9da4(0x1e1)],'routerOptions':_0x2964c9},_0x475582);}else _0x2964c9[_0x5e9da4(0x1ec)]=_0x2964c9[_0x5e9da4(0x1ec)]?'/'+_0x2964c9[_0x5e9da4(0x1ec)]:'/'+_0x1f431d[_0x5e9da4(0x1d1)],_0x1f431d['prefix']&&(_0x2964c9[_0x5e9da4(0x1ec)]='/'+_0x1f431d[_0x5e9da4(0x1ec)]+'/'+_0x2964c9[_0x5e9da4(0x1ec)]),_0x2964c9['prefix']=_0x2964c9[_0x5e9da4(0x1ec)]['toLowerCase']()[_0x5e9da4(0x1d9)](/\/{2,}/g,'/'),(0x0,core_1[_0x5e9da4(0x1c9)])(action_1[_0x5e9da4(0x1da)],_0x475582),(0x0,core_1[_0x5e9da4(0x1a6)])(_0x2964c9[_0x5e9da4(0x1ec)],_0x2964c9)(_0x475582),(0x0,core_1[_0x5e9da4(0x1de)])(action_1[_0x5e9da4(0x1da)],{'prefix':_0x2964c9[_0x5e9da4(0x1ec)],'module':_0x1f431d[_0x5e9da4(0x1d0)],'pprefix':_0x1f431d[_0x5e9da4(0x1ec)],'filepath':_0x1f431d[_0x5e9da4(0x1e1)],'routerOptions':_0x2964c9},_0x475582);};}exports[a3_0x59ba04(0x1d7)]=Action,Action[a3_0x59ba04(0x1bb)]=function(_0x324db1,_0x44d833='/',_0x3ca0c8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3e24e6,_0xcc5342,_0x34e984)=>{const _0x1798c6=a3_0xac20;ActionApi(_0x324db1,_0x1798c6(0x1bb),_0x44d833,_0x3ca0c8)(_0x3e24e6,_0xcc5342,_0x34e984);};},Action[a3_0x59ba04(0x1af)]=function(_0x239399,_0x278ab9='/',_0x2e8101={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1a2718,_0x21cd07,_0x544865)=>{const _0x170b41=a3_0xac20;ActionApi(_0x239399,_0x170b41(0x1af),_0x278ab9,_0x2e8101)(_0x1a2718,_0x21cd07,_0x544865);};};function ActionApi(_0x522381,_0x5ea209=a3_0x59ba04(0x1bb),_0xa35fac='/',_0x18888d={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x46b5ec,_0x1d70ce,_0x5065b0)=>{const _0x5cdd8f=a3_0xac20;var _0x48e684,_0x4a8329,_0x5ac5fb;!_0x18888d[_0x5cdd8f(0x1d4)]&&(_0x18888d[_0x5cdd8f(0x1d4)]=[]);!((_0x48e684=_0x18888d===null||_0x18888d===void 0x0?void 0x0:_0x18888d[_0x5cdd8f(0x1e0)])===null||_0x48e684===void 0x0?void 0x0:_0x48e684[_0x5cdd8f(0x1e5)])&&(_0x18888d[_0x5cdd8f(0x1e0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0xa35fac)_0xa35fac='/';else typeof _0xa35fac==_0x5cdd8f(0x1ab)&&(!_0xa35fac[_0x5cdd8f(0x1a5)]('/')&&!_0xa35fac[_0x5cdd8f(0x1a5)]('-')&&(_0xa35fac='/'+_0xa35fac));typeof _0x18888d['apimit']==_0x5cdd8f(0x1d3)&&(_0x18888d[_0x5cdd8f(0x1d6)]=!![]);if(((_0x4a8329=_0x18888d===null||_0x18888d===void 0x0?void 0x0:_0x18888d[_0x5cdd8f(0x1d4)])===null||_0x4a8329===void 0x0?void 0x0:_0x4a8329[_0x5cdd8f(0x1a8)])>0x0&&((_0x5ac5fb=_0x18888d===null||_0x18888d===void 0x0?void 0x0:_0x18888d['middlewareIgnore'])===null||_0x5ac5fb===void 0x0?void 0x0:_0x5ac5fb[_0x5cdd8f(0x1a8)])>0x0)for(let _0x2692a0 in _0x18888d['middleware']){_0x18888d[_0x5cdd8f(0x1bc)][_0x5cdd8f(0x1cc)](_0x18888d[_0x5cdd8f(0x1d4)][_0x2692a0])!==-0x1&&(_0x18888d['middleware'][_0x2692a0]=null);}_0x18888d[_0x5cdd8f(0x1e3)]=_0x522381,(0x0,validator_1[_0x5cdd8f(0x1bf)])(_0x18888d[_0x5cdd8f(0x1e0)])(_0x46b5ec,_0x1d70ce,_0x5065b0),(0x0,core_2[_0x5cdd8f(0x1e6)])(Object[_0x5cdd8f(0x1b5)](_0x18888d,{'path':_0xa35fac,'requestMethod':(_0x5ea209||_0x5cdd8f(0x1bb))[_0x5cdd8f(0x1a4)]()}))(_0x46b5ec,_0x1d70ce,_0x5065b0),(0x0,core_2[_0x5cdd8f(0x1b7)])(action_1['ACTION_ROUTE_KEY'],{'path':_0xa35fac,'method':_0x1d70ce,'apimit':_0x18888d[_0x5cdd8f(0x1d6)],'intercept':_0x18888d[_0x5cdd8f(0x1f3)],'routerName':_0x18888d[_0x5cdd8f(0x1e3)],'description':_0x18888d['description'],'middleware':(_0x18888d[_0x5cdd8f(0x1d4)]||[])[_0x5cdd8f(0x1ba)](_0x12c12d=>!!_0x12c12d),'requestMethod':(_0x5ea209||_0x5cdd8f(0x1bb))['toLowerCase']()},_0x46b5ec),(0x0,core_2[_0x5cdd8f(0x1ae)])(action_1[_0x5cdd8f(0x1c8)],{'path':_0xa35fac,'method':_0x1d70ce,'apimit':_0x18888d['apimit'],'intercept':_0x18888d[_0x5cdd8f(0x1f3)],'routerName':_0x18888d[_0x5cdd8f(0x1e3)],'description':_0x18888d[_0x5cdd8f(0x1c2)],'middleware':(_0x18888d['middleware']||[])[_0x5cdd8f(0x1ba)](_0x5865e3=>!!_0x5865e3),'requestMethod':(_0x5ea209||_0x5cdd8f(0x1bb))[_0x5cdd8f(0x1a4)]()})(_0x46b5ec,_0x1d70ce,_0x5065b0);};}exports['ActionApi']=ActionApi;function parseRoute(_0x284ac1){const _0x7c503f=a3_0x59ba04;_0x284ac1=_0x284ac1[_0x7c503f(0x1d9)](/(\\|\/)/g,'/');const _0x3837d=process[_0x7c503f(0x1ca)]()[_0x7c503f(0x1d9)](/(\\|\/)/g,'/'),_0xd3b306=_0x284ac1['substring'](0x0,_0x3837d[_0x7c503f(0x1a8)]+_0x284ac1[_0x7c503f(0x1ad)](_0x3837d[_0x7c503f(0x1a8)]+0x1)[_0x7c503f(0x1cc)]('/')+0x1),_0x4ba853=_0x284ac1[_0x7c503f(0x1ad)](_0xd3b306[_0x7c503f(0x1a8)]+0x1)[_0x7c503f(0x1d9)](/(\\|\/)/g,'/'),_0x23895b={'route':'','prefix':![],'module':![],'rootpath':_0xd3b306,'filepath':_0x4ba853};if(_0x4ba853[_0x7c503f(0x1a5)](_0x7c503f(0x1c7))||_0x4ba853[_0x7c503f(0x1a5)](_0x7c503f(0x1c3))){const _0x30a90c=_0x4ba853[_0x7c503f(0x1ad)]((_0x4ba853[_0x7c503f(0x1a5)](_0x7c503f(0x1c7))?_0x7c503f(0x1c7):_0x7c503f(0x1c3))['length'])['split']('/')[_0x7c503f(0x1ba)](_0x47ca52=>_0x47ca52&&_0x47ca52[_0x7c503f(0x1ee)]());return _0x30a90c['length']>0x1&&(_0x23895b[_0x7c503f(0x1ec)]=_0x30a90c[0x0][_0x7c503f(0x1a4)](),_0x30a90c[_0x7c503f(0x1b2)](0x0,0x1)),_0x23895b[_0x7c503f(0x1d1)]=('/'+_0x30a90c[_0x7c503f(0x1c6)]('/'))[_0x7c503f(0x1d9)](/(\.ts|\.js)$/,'')[_0x7c503f(0x1d9)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x7c503f(0x1a4)]()['replace'](/\/\-/g,'/'),_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1f2)](_0x7c503f(0x1e7))&&(_0x23895b['route']=_0x23895b['route'][_0x7c503f(0x1ad)](0x0,_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1a8)]-0x7)),_0x23895b[_0x7c503f(0x1d1)]['endsWith']('-controller')&&(_0x23895b[_0x7c503f(0x1d1)]=_0x23895b[_0x7c503f(0x1d1)]['substring'](0x0,_0x23895b[_0x7c503f(0x1d1)]['length']-0xb)),_0x23895b;}else{if(_0x4ba853['startsWith'](_0x7c503f(0x1b9))){const _0x2898ff=_0x4ba853[_0x7c503f(0x1ad)](0x0,_0x4ba853[_0x7c503f(0x1cc)](_0x7c503f(0x1c0))+0x5),_0x1f42ce=_0x4ba853['substring'](_0x2898ff['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x7c503f(0x1aa)]('/')[0x0];if(_0x4ba853['startsWith'](_0x7c503f(0x1b9)+_0x1f42ce+_0x7c503f(0x1ce))){const _0x1ab4da=_0x4ba853[_0x7c503f(0x1ad)]((_0x2898ff+'/'+_0x1f42ce+'/controller/')['length'])[_0x7c503f(0x1aa)]('/')[_0x7c503f(0x1ba)](_0x2ac040=>_0x2ac040&&_0x2ac040[_0x7c503f(0x1ee)]());return _0x1ab4da['length']>0x1&&(_0x23895b['prefix']=_0x1ab4da[0x0]['toLowerCase'](),_0x1ab4da[_0x7c503f(0x1b2)](0x0,0x1)),_0x23895b[_0x7c503f(0x1d0)]=_0x1f42ce,_0x23895b['route']=('/'+_0x1f42ce+'/'+_0x1ab4da[_0x7c503f(0x1c6)]('/'))[_0x7c503f(0x1d9)](/(\.ts|\.js)$/,'')[_0x7c503f(0x1d9)](/\/{2,}/g,'/')[_0x7c503f(0x1f4)](/[\/|A-Z]*[^A-Z]+/g)[_0x7c503f(0x1c6)]('-')[_0x7c503f(0x1a4)]()[_0x7c503f(0x1d9)](/\/\-/g,'/'),_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1f2)](_0x7c503f(0x1e7))&&(_0x23895b['route']=_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1ad)](0x0,_0x23895b['route'][_0x7c503f(0x1a8)]-0x7)),_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1f2)](_0x7c503f(0x1e8))&&(_0x23895b[_0x7c503f(0x1d1)]=_0x23895b[_0x7c503f(0x1d1)][_0x7c503f(0x1ad)](0x0,_0x23895b[_0x7c503f(0x1d1)]['length']-0xb)),_0x23895b;}throw new Error(_0x4ba853+_0x7c503f(0x1bd)+_0x1f42ce+'/controller/文件下');}}throw new Error(_0x4ba853+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;const moduleConfigTmp=(0x0,core_1[a3_0x59ba04(0x1c4)])(action_1[a3_0x59ba04(0x1d8)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x16f37f,_0x2e34f1,_0x2c7055){const _0x319fd0=a3_0x59ba04;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x2e34f1])){let _0x4b2c67={};if(NODE_ENV&&fs[_0x319fd0(0x1d5)](_0x16f37f+'/'+_0x2e34f1+'/config.'+NODE_ENV+'.'+_0x2c7055)){const _0x50a297=include(_0x16f37f+'/'+_0x2e34f1+_0x319fd0(0x1b0)+NODE_ENV+'.'+_0x2c7055);Object[_0x319fd0(0x1ef)](_0x50a297)[_0x319fd0(0x1a8)]>0x0&&(_0x4b2c67=lodash[_0x319fd0(0x1dd)](_0x4b2c67,_0x50a297));}if(fs[_0x319fd0(0x1d5)](_0x16f37f+_0x319fd0(0x1b0)+_0x2c7055)){const _0x44180d=include(_0x16f37f+_0x319fd0(0x1b0)+_0x2c7055);Object[_0x319fd0(0x1ef)](_0x44180d)['length']>0x0&&(_0x4b2c67=lodash[_0x319fd0(0x1dd)](_0x4b2c67,_0x44180d));}moduleConfigTmp[_0x2e34f1]=_0x4b2c67,(0x0,core_1[_0x319fd0(0x1de)])(action_1[_0x319fd0(0x1d8)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x2e34f1];}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { getRouteOption } from '../helper/getRoutes';
|
|
2
|
-
export declare function Apitest(path?: string, option?: getRouteOption): MethodDecorator;
|
|
1
|
+
import { getRouteOption } from '../helper/getRoutes';
|
|
2
|
+
export declare function Apitest(path?: string, option?: getRouteOption): MethodDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4_0x19ff(){const _0x53ca23=['get','getAsync','208Ljcboq','4999190YHqywh','2051896Oiybsc','value','getApplicationContext','isDevelopmentEnvironment','4luAnZI','__esModule','app','/apitest','384147CaefKs','Apitest','../service/ApitestService','4825134MXfvNu','filepath','2440175StFfca','search','constructor','561572zStFlZ','@midwayjs/core','169338bUBxvo','(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','RequestMapping','toString','getConfig'];a4_0x19ff=function(){return _0x53ca23;};return a4_0x19ff();}const a4_0xd44ac=a4_0x2277;(function(_0x3e06ac,_0x37ae4c){const _0x268212=a4_0x2277,_0x1eb36f=_0x3e06ac();while(!![]){try{const _0x14a0e6=-parseInt(_0x268212(0x1ac))/0x1+-parseInt(_0x268212(0x1a0))/0x2*(parseInt(_0x268212(0x1ae))/0x3)+-parseInt(_0x268212(0x19c))/0x4+parseInt(_0x268212(0x1a9))/0x5+parseInt(_0x268212(0x1a7))/0x6+-parseInt(_0x268212(0x19b))/0x7+-parseInt(_0x268212(0x19a))/0x8*(-parseInt(_0x268212(0x1a4))/0x9);if(_0x14a0e6===_0x37ae4c)break;else _0x1eb36f['push'](_0x1eb36f['shift']());}catch(_0x49edcb){_0x1eb36f['push'](_0x1eb36f['shift']());}}}(a4_0x19ff,0x7a296));const a4_0xadccd5=(function(){let _0x390689=!![];return function(_0x5c070b,_0x343b31){const _0x5255d2=_0x390689?function(){if(_0x343b31){const _0x393fbd=_0x343b31['apply'](_0x5c070b,arguments);return _0x343b31=null,_0x393fbd;}}:function(){};return _0x390689=![],_0x5255d2;};}()),a4_0x35de9f=a4_0xadccd5(this,function(){const _0x518613=a4_0x2277;return a4_0x35de9f[_0x518613(0x1b2)]()[_0x518613(0x1aa)](_0x518613(0x1af))[_0x518613(0x1b2)]()[_0x518613(0x1ab)](a4_0x35de9f)[_0x518613(0x1aa)]('(((.+)+)+)+$');});a4_0x35de9f();function a4_0x2277(_0x10daf7,_0x291f8c){const _0xc187ad=a4_0x19ff();return a4_0x2277=function(_0x35de9f,_0xadccd5){_0x35de9f=_0x35de9f-0x197;let _0x19ff7d=_0xc187ad[_0x35de9f];return _0x19ff7d;},a4_0x2277(_0x10daf7,_0x291f8c);}'use strict';Object['defineProperty'](exports,a4_0xd44ac(0x1a1),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a4_0xd44ac(0x1ad)),ApitestService_1=require(a4_0xd44ac(0x1a6));function Apitest(_0x4fc8bd=a4_0xd44ac(0x1a3),_0x3f6f96){return(_0x110409,_0x4c1fa1,_0x5abe33)=>{const _0x2a478f=a4_0x2277;return(0x0,core_1[_0x2a478f(0x1b1)])({'path':_0x4fc8bd,'requestMethod':_0x2a478f(0x198)})(_0x110409,_0x4c1fa1,_0x5abe33),_0x5abe33[_0x2a478f(0x19d)]=async function(..._0x2f4e6b){const _0x32e45a=_0x2a478f;var _0x133ee1;const _0x16e991=(_0x133ee1=this[core_1[_0x32e45a(0x1b0)]])===null||_0x133ee1===void 0x0?void 0x0:_0x133ee1[_0x32e45a(0x1a2)];if(_0x16e991&&_0x16e991[_0x32e45a(0x197)]('apitest')){const _0x14058c=await _0x16e991[_0x32e45a(0x19e)]()[_0x32e45a(0x199)](ApitestService_1['ApitestService']),_0x5f35ea=await _0x16e991['getApplicationContext']()[_0x32e45a(0x199)](core_1['MidwayEnvironmentService']);return _0x5f35ea[_0x32e45a(0x19f)]()&&(_0x3f6f96[_0x32e45a(0x1a8)]=!![]),await _0x14058c['apidoc'](_0x3f6f96);}return'';},_0x5abe33;};}exports[a4_0xd44ac(0x1a5)]=Apitest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function Intercept(devices: string | string[]): ClassDecorator;
|
|
2
|
-
export declare abstract class IIntercept {
|
|
3
|
-
abstract handler(ctx: any, matchedRoute: string, metadata: any): Promise<void>;
|
|
4
|
-
match(ctx: any, matchedRoute: string, metadata: any): Promise<boolean>;
|
|
5
|
-
}
|
|
1
|
+
export declare function Intercept(devices: string | string[]): ClassDecorator;
|
|
2
|
+
export declare abstract class IIntercept {
|
|
3
|
+
abstract handler(ctx: any, matchedRoute: string, metadata: any): Promise<void>;
|
|
4
|
+
match(ctx: any, matchedRoute: string, metadata: any): Promise<boolean>;
|
|
5
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x439b95=a5_0x4610;(function(_0x37ae1f,_0x3a88ce){const _0x3dc5a8=a5_0x4610,_0x416d4b=_0x37ae1f();while(!![]){try{const _0x5986f0=-parseInt(_0x3dc5a8(0x15a))/0x1*(-parseInt(_0x3dc5a8(0x148))/0x2)+parseInt(_0x3dc5a8(0x147))/0x3+parseInt(_0x3dc5a8(0x14e))/0x4*(-parseInt(_0x3dc5a8(0x14f))/0x5)+-parseInt(_0x3dc5a8(0x153))/0x6*(-parseInt(_0x3dc5a8(0x158))/0x7)+-parseInt(_0x3dc5a8(0x160))/0x8*(-parseInt(_0x3dc5a8(0x15e))/0x9)+parseInt(_0x3dc5a8(0x155))/0xa+-parseInt(_0x3dc5a8(0x15f))/0xb;if(_0x5986f0===_0x3a88ce)break;else _0x416d4b['push'](_0x416d4b['shift']());}catch(_0x45c1ae){_0x416d4b['push'](_0x416d4b['shift']());}}}(a5_0x3909,0xdafb7));const a5_0x4a4830=(function(){let _0x1b02fe=!![];return function(_0x405e39,_0x248c21){const _0x51de3c=_0x1b02fe?function(){const _0x4404de=a5_0x4610;if(_0x248c21){const _0x484208=_0x248c21[_0x4404de(0x154)](_0x405e39,arguments);return _0x248c21=null,_0x484208;}}:function(){};return _0x1b02fe=![],_0x51de3c;};}()),a5_0x5e62e5=a5_0x4a4830(this,function(){const _0x534522=a5_0x4610;return a5_0x5e62e5[_0x534522(0x156)]()[_0x534522(0x146)]('(((.+)+)+)+$')[_0x534522(0x156)]()['constructor'](a5_0x5e62e5)['search'](_0x534522(0x145));});a5_0x5e62e5();'use strict';Object[a5_0x439b95(0x151)](exports,a5_0x439b95(0x157),{'value':!![]}),exports[a5_0x439b95(0x14c)]=exports[a5_0x439b95(0x15b)]=void 0x0;const core_1=require(a5_0x439b95(0x149)),intercept_1=require('../types/intercept');function a5_0x4610(_0x129206,_0x5b90de){const _0x292312=a5_0x3909();return a5_0x4610=function(_0x5e62e5,_0x4a4830){_0x5e62e5=_0x5e62e5-0x145;let _0x390940=_0x292312[_0x5e62e5];return _0x390940;},a5_0x4610(_0x129206,_0x5b90de);}function a5_0x3909(){const _0x42ed43=['290146RNcIza','@midwayjs/core','INTERCEPT_KEY','toUpperCase','IIntercept','InterceptTargetTmp','5869924wMCPCO','5tbtcwc','ScopeEnum','defineProperty','includes','2678502wTUmkS','apply','4167750HRarvd','toString','__esModule','7bdqloq','Singleton','1aGYGOp','Intercept','Provide','isArray','27AtCUnb','6203241HWwXlg','926096IyOxsI','(((.+)+)+)+$','search','4718436ozkssS'];a5_0x3909=function(){return _0x42ed43;};return a5_0x3909();}function Intercept(_0x1885d3){return _0x5efda3=>{const _0x159325=a5_0x4610,_0x168ffe=(0x0,core_1['getClassMetadata'])(intercept_1[_0x159325(0x14a)],intercept_1[_0x159325(0x14d)])||{};for(let _0x5dce4d of Array[_0x159325(0x15d)](_0x1885d3)?_0x1885d3:[_0x1885d3]){_0x5dce4d=_0x5dce4d[_0x159325(0x14b)]();!(_0x168ffe===null||_0x168ffe===void 0x0?void 0x0:_0x168ffe[_0x5dce4d])&&(_0x168ffe[_0x5dce4d]=[]);if(_0x168ffe[_0x5dce4d][_0x159325(0x152)](_0x5efda3))continue;_0x168ffe[_0x5dce4d]['push'](_0x5efda3);}(0x0,core_1[_0x159325(0x15c)])()(_0x5efda3),(0x0,core_1['Scope'])(core_1[_0x159325(0x150)][_0x159325(0x159)])(_0x5efda3),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x168ffe,intercept_1[_0x159325(0x14d)]);};}exports[a5_0x439b95(0x15b)]=Intercept;class IIntercept{async['match'](_0x2ecfd7,_0x55c2aa,_0x3381d2){return!![];}}exports[a5_0x439b95(0x14c)]=IIntercept;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="@anncic-api/core" />
|
|
2
|
-
export declare class ApiError extends AnnError {
|
|
3
|
-
static readonly TIMEOUT = 102403;
|
|
4
|
-
static readonly HEADERS_LACK = 102002;
|
|
5
|
-
static readonly HEADERS_DEVICE = 102003;
|
|
6
|
-
static readonly HEADERS_SIGNATURE = 102004;
|
|
7
|
-
static readonly HEADERS_CHECKCODE = 102005;
|
|
8
|
-
static readonly TIMEOUT_LOGINTIME = 102006;
|
|
9
|
-
}
|
|
1
|
+
/// <reference types="@anncic-api/core" />
|
|
2
|
+
export declare class ApiError extends AnnError {
|
|
3
|
+
static readonly TIMEOUT = 102403;
|
|
4
|
+
static readonly HEADERS_LACK = 102002;
|
|
5
|
+
static readonly HEADERS_DEVICE = 102003;
|
|
6
|
+
static readonly HEADERS_SIGNATURE = 102004;
|
|
7
|
+
static readonly HEADERS_CHECKCODE = 102005;
|
|
8
|
+
static readonly TIMEOUT_LOGINTIME = 102006;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x39b608=a6_0x32af;(function(_0x1b77b0,_0x16d8af){var _0x5b9a3f=a6_0x32af,_0x25f775=_0x1b77b0();while(!![]){try{var _0x3fffd7=parseInt(_0x5b9a3f(0xaf))/0x1+-parseInt(_0x5b9a3f(0xa0))/0x2*(-parseInt(_0x5b9a3f(0xb1))/0x3)+-parseInt(_0x5b9a3f(0xb0))/0x4*(parseInt(_0x5b9a3f(0xa6))/0x5)+-parseInt(_0x5b9a3f(0x95))/0x6+parseInt(_0x5b9a3f(0x8e))/0x7*(-parseInt(_0x5b9a3f(0xac))/0x8)+-parseInt(_0x5b9a3f(0x8f))/0x9*(parseInt(_0x5b9a3f(0xa3))/0xa)+-parseInt(_0x5b9a3f(0xab))/0xb*(-parseInt(_0x5b9a3f(0xa2))/0xc);if(_0x3fffd7===_0x16d8af)break;else _0x25f775['push'](_0x25f775['shift']());}catch(_0x225d2e){_0x25f775['push'](_0x25f775['shift']());}}}(a6_0x1e72,0x29572));var a6_0x128e1a=(function(){var _0x1021c5=!![];return function(_0x49c753,_0x5f5c6b){var _0x15a52c=_0x1021c5?function(){var _0x534aa2=a6_0x32af;if(_0x5f5c6b){var _0x2cfd07=_0x5f5c6b[_0x534aa2(0x94)](_0x49c753,arguments);return _0x5f5c6b=null,_0x2cfd07;}}:function(){};return _0x1021c5=![],_0x15a52c;};}()),a6_0x545daa=a6_0x128e1a(this,function(){var _0x446099=a6_0x32af;return a6_0x545daa[_0x446099(0xad)]()['search']('(((.+)+)+)+$')[_0x446099(0xad)]()[_0x446099(0xaa)](a6_0x545daa)[_0x446099(0x99)](_0x446099(0xae));});a6_0x545daa();'use strict';function a6_0x1e72(){var _0xd2612b=['请求头信息不完整','7TTlDhl','18801FDTSzz','getOwnPropertyDescriptor','object','HEADERS_DEVICE','defineProperty','apply','779118xWGBYm','请使用正确的设备','design:type','TIMEOUT_LOGINTIME','search','metadata','length','HEADERS_SIGNATURE','signature验证失败','function','HEADERS_CHECKCODE','2JrmOIR','TIMEOUT','5254332uLRzVE','1490xPXfrz','__esModule','ApiError','1335530TYqCpu','HEADERS_LACK','请求超时,请重试','decorate','constructor','11smDycm','109672KbbVTd','toString','(((.+)+)+)+$','242115rJbsbz','4qVurHx','633849juXGjT','__metadata'];a6_0x1e72=function(){return _0xd2612b;};return a6_0x1e72();}function a6_0x32af(_0x4ce403,_0x24641a){var _0x2acf25=a6_0x1e72();return a6_0x32af=function(_0x545daa,_0x128e1a){_0x545daa=_0x545daa-0x8d;var _0x1e72ad=_0x2acf25[_0x545daa];return _0x1e72ad;},a6_0x32af(_0x4ce403,_0x24641a);}var __decorate=this&&this['__decorate']||function(_0xeb0c5d,_0x51fd26,_0x3e27d4,_0x2c29d1){var _0x31ff06=a6_0x32af,_0x3ffad5=arguments[_0x31ff06(0x9b)],_0x2b3640=_0x3ffad5<0x3?_0x51fd26:_0x2c29d1===null?_0x2c29d1=Object[_0x31ff06(0x90)](_0x51fd26,_0x3e27d4):_0x2c29d1,_0x245760;if(typeof Reflect==='object'&&typeof Reflect[_0x31ff06(0xa9)]==='function')_0x2b3640=Reflect['decorate'](_0xeb0c5d,_0x51fd26,_0x3e27d4,_0x2c29d1);else{for(var _0xec64e3=_0xeb0c5d[_0x31ff06(0x9b)]-0x1;_0xec64e3>=0x0;_0xec64e3--)if(_0x245760=_0xeb0c5d[_0xec64e3])_0x2b3640=(_0x3ffad5<0x3?_0x245760(_0x2b3640):_0x3ffad5>0x3?_0x245760(_0x51fd26,_0x3e27d4,_0x2b3640):_0x245760(_0x51fd26,_0x3e27d4))||_0x2b3640;}return _0x3ffad5>0x3&&_0x2b3640&&Object['defineProperty'](_0x51fd26,_0x3e27d4,_0x2b3640),_0x2b3640;},__metadata=this&&this[a6_0x39b608(0xb2)]||function(_0x4112a7,_0xe9207b){var _0x5c866a=a6_0x39b608;if(typeof Reflect===_0x5c866a(0x91)&&typeof Reflect[_0x5c866a(0x9a)]===_0x5c866a(0x9e))return Reflect['metadata'](_0x4112a7,_0xe9207b);};Object[a6_0x39b608(0x93)](exports,a6_0x39b608(0xa4),{'value':!![]}),exports[a6_0x39b608(0xa5)]=void 0x0;class ApiError extends AnnError{}ApiError[a6_0x39b608(0xa1)]=0x19003,ApiError[a6_0x39b608(0xa7)]=0x18e72,ApiError[a6_0x39b608(0x92)]=0x18e73,ApiError[a6_0x39b608(0x9c)]=0x18e74,ApiError[a6_0x39b608(0x9f)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a6_0x39b608(0xa8)),__metadata(a6_0x39b608(0x97),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x39b608(0x8d)),__metadata(a6_0x39b608(0x97),Object)],ApiError,a6_0x39b608(0xa7),void 0x0),__decorate([AnnErrorMsg(a6_0x39b608(0x96)),__metadata(a6_0x39b608(0x97),Object)],ApiError,a6_0x39b608(0x92),void 0x0),__decorate([AnnErrorMsg(a6_0x39b608(0x9d)),__metadata(a6_0x39b608(0x97),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x39b608(0x97),Object)],ApiError,a6_0x39b608(0x9f),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a6_0x39b608(0x97),Object)],ApiError,a6_0x39b608(0x98),void 0x0),exports[a6_0x39b608(0xa5)]=ApiError;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function getAppsConfig(appName?: string): {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
1
|
+
export declare function getAppsConfig(appName?: string): {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7_0x482cf2=a7_0x4a90;(function(_0x549036,_0x3a3e3f){const _0x169f33=a7_0x4a90,_0x544e71=_0x549036();while(!![]){try{const _0x40c3d1=parseInt(_0x169f33(0x172))/0x1*(parseInt(_0x169f33(0x177))/0x2)+-parseInt(_0x169f33(0x169))/0x3+parseInt(_0x169f33(0x166))/0x4*(parseInt(_0x169f33(0x168))/0x5)+parseInt(_0x169f33(0x16f))/0x6+-parseInt(_0x169f33(0x163))/0x7*(parseInt(_0x169f33(0x178))/0x8)+parseInt(_0x169f33(0x165))/0x9*(parseInt(_0x169f33(0x173))/0xa)+parseInt(_0x169f33(0x171))/0xb;if(_0x40c3d1===_0x3a3e3f)break;else _0x544e71['push'](_0x544e71['shift']());}catch(_0x421dc3){_0x544e71['push'](_0x544e71['shift']());}}}(a7_0x966f,0xb4d91));const a7_0x44677f=(function(){let _0x4feb08=!![];return function(_0x2833b5,_0x1da9b6){const _0x46c0da=_0x4feb08?function(){const _0x5f1d8f=a7_0x4a90;if(_0x1da9b6){const _0x10e69c=_0x1da9b6[_0x5f1d8f(0x16e)](_0x2833b5,arguments);return _0x1da9b6=null,_0x10e69c;}}:function(){};return _0x4feb08=![],_0x46c0da;};}()),a7_0x5c54e8=a7_0x44677f(this,function(){const _0x28a48c=a7_0x4a90;return a7_0x5c54e8[_0x28a48c(0x16d)]()[_0x28a48c(0x175)](_0x28a48c(0x162))[_0x28a48c(0x16d)]()['constructor'](a7_0x5c54e8)[_0x28a48c(0x175)]('(((.+)+)+)+$');});a7_0x5c54e8();'use strict';Object[a7_0x482cf2(0x16a)](exports,a7_0x482cf2(0x164),{'value':!![]}),exports[a7_0x482cf2(0x174)]=void 0x0;function a7_0x4a90(_0x5d8b1d,_0x397860){const _0x10e8fe=a7_0x966f();return a7_0x4a90=function(_0x5c54e8,_0x44677f){_0x5c54e8=_0x5c54e8-0x162;let _0x966fc9=_0x10e8fe[_0x5c54e8];return _0x966fc9;},a7_0x4a90(_0x5d8b1d,_0x397860);}const core_1=require(a7_0x482cf2(0x16b)),action_1=require(a7_0x482cf2(0x167));function getAppsConfig(_0x42e284){const _0x1a604a=a7_0x482cf2,_0xb180b2=(0x0,core_1[_0x1a604a(0x16c)])(action_1['APPSCONFIG_KEY'],action_1[_0x1a604a(0x170)])||{};return _0x42e284?lodash[_0x1a604a(0x176)](_0xb180b2,_0x42e284):_0xb180b2;}function a7_0x966f(){const _0x244a4e=['1434gpJDOW','210fPZOWj','getAppsConfig','search','get','1328eNDBYo','4002312SiQQYB','(((.+)+)+)+$','7IEpneR','__esModule','123489NZJziz','5360PzUUon','../types/action','1040UTSIQw','3853458VEGBcm','defineProperty','@midwayjs/core','getClassMetadata','toString','apply','1804416IaDwIF','AppsConfigTmp','7763305MmsUxm'];a7_0x966f=function(){return _0x244a4e;};return a7_0x966f();}exports[a7_0x482cf2(0x174)]=getAppsConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface getRouteOption {
|
|
2
|
-
noreq?: boolean;
|
|
3
|
-
prefix?: string;
|
|
4
|
-
module?: string | boolean;
|
|
5
|
-
filter?: string[];
|
|
6
|
-
filepath?: boolean;
|
|
7
|
-
intercept?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function getRoutes(filter?: getRouteOption): {};
|
|
1
|
+
export interface getRouteOption {
|
|
2
|
+
noreq?: boolean;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
module?: string | boolean;
|
|
5
|
+
filter?: string[];
|
|
6
|
+
filepath?: boolean;
|
|
7
|
+
intercept?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function getRoutes(filter?: getRouteOption): {};
|