anncic-api 3.4.38 → 3.4.41
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 +8 -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 +13 -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 +9 -9
|
@@ -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
|
-
var
|
|
1
|
+
var a0_0x21e74e=a0_0x4d98;function a0_0x4d98(_0x18e6c5,_0x593db2){var _0x240e16=a0_0x1268();return a0_0x4d98=function(_0xd316ec,_0x187e7c){_0xd316ec=_0xd316ec-0x12a;var _0x1268d1=_0x240e16[_0xd316ec];return _0x1268d1;},a0_0x4d98(_0x18e6c5,_0x593db2);}(function(_0x12efb0,_0x39b1e5){var _0x46e5d4=a0_0x4d98,_0x20b98b=_0x12efb0();while(!![]){try{var _0x4f0f57=-parseInt(_0x46e5d4(0x13b))/0x1*(parseInt(_0x46e5d4(0x13f))/0x2)+-parseInt(_0x46e5d4(0x140))/0x3+parseInt(_0x46e5d4(0x136))/0x4*(-parseInt(_0x46e5d4(0x142))/0x5)+parseInt(_0x46e5d4(0x13c))/0x6+-parseInt(_0x46e5d4(0x134))/0x7*(-parseInt(_0x46e5d4(0x141))/0x8)+parseInt(_0x46e5d4(0x138))/0x9*(-parseInt(_0x46e5d4(0x133))/0xa)+parseInt(_0x46e5d4(0x131))/0xb;if(_0x4f0f57===_0x39b1e5)break;else _0x20b98b['push'](_0x20b98b['shift']());}catch(_0x13ca53){_0x20b98b['push'](_0x20b98b['shift']());}}}(a0_0x1268,0xdacdf));var a0_0x187e7c=(function(){var _0x231407=!![];return function(_0x3c7552,_0x56548e){var _0x187685=_0x231407?function(){var _0x141e2e=a0_0x4d98;if(_0x56548e){var _0x30acbb=_0x56548e[_0x141e2e(0x132)](_0x3c7552,arguments);return _0x56548e=null,_0x30acbb;}}:function(){};return _0x231407=![],_0x187685;};}()),a0_0xd316ec=a0_0x187e7c(this,function(){var _0x324e01=a0_0x4d98;return a0_0xd316ec[_0x324e01(0x13e)]()[_0x324e01(0x12a)](_0x324e01(0x13d))['toString']()['constructor'](a0_0xd316ec)[_0x324e01(0x12a)](_0x324e01(0x13d));});a0_0xd316ec();'use strict';function a0_0x1268(){var _0x2d8a53=['38423286QwUZUC','apply','385600NEceSh','7SFqCff','dhauo1234420123gg3234901','356WXdDIx','text','126aGzFnK','_token','xml','1xZOufm','7032822mxRyoD','(((.+)+)+)+$','toString','3340476uehKeJ','3019968jkIgTl','3547496wpqmLI','55935LAfcYe','search','20mb','__esModule','zhiulanuiy7892387985hnoi','default','appDir','name'];a0_0x1268=function(){return _0x2d8a53;};return a0_0x1268();}Object['defineProperty'](exports,a0_0x21e74e(0x12c),{'value':!![]}),exports[a0_0x21e74e(0x12e)]=_0x4095b0=>{var _0x5eb510=a0_0x21e74e;return{'apitest':!![],'keys':_0x4095b0[_0x5eb510(0x130)],'anncicapi':{'requestKey':_0x5eb510(0x139),'password':_0x5eb510(0x12d),'devices':{'DEFAULT':{'secret':_0x5eb510(0x135),'checkcode':_0x5eb510(0x135)}}},'bodyParser':{'enableTypes':['json','form',_0x5eb510(0x137),_0x5eb510(0x13a)],'formLimit':_0x5eb510(0x12b),'jsonLimit':_0x5eb510(0x12b),'textLimit':_0x5eb510(0x12b),'xmlLimit':_0x5eb510(0x12b),'enable':!![]},'upload':{'tmpdir':_0x4095b0[_0x5eb510(0x12f)]+'/runtime/.upload','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
|
-
var
|
|
1
|
+
function a1_0x4981(){var _0x51c92f=['toString','9420lgzTgD','defineProperty','40goajBG','18377082pNYXzh','178PvMKEY','constructor','__esModule','251598BYwflF','3172740EIndxe','default','(((.+)+)+)+$','1229445CwcufW','apply','7243980HCPBwD','2980285XHmqNb','search'];a1_0x4981=function(){return _0x51c92f;};return a1_0x4981();}var a1_0x40c10d=a1_0x5d14;function a1_0x5d14(_0x5a60da,_0x5083b8){var _0x1c5351=a1_0x4981();return a1_0x5d14=function(_0x4ee96a,_0x3ad124){_0x4ee96a=_0x4ee96a-0xb2;var _0x498190=_0x1c5351[_0x4ee96a];return _0x498190;},a1_0x5d14(_0x5a60da,_0x5083b8);}(function(_0x5bb518,_0x46cce4){var _0x5bd479=a1_0x5d14,_0x477091=_0x5bb518();while(!![]){try{var _0x366937=-parseInt(_0x5bd479(0xb8))/0x1*(parseInt(_0x5bd479(0xbc))/0x2)+parseInt(_0x5bd479(0xbf))/0x3+-parseInt(_0x5bd479(0xc0))/0x4+parseInt(_0x5bd479(0xb5))/0x5+-parseInt(_0x5bd479(0xb4))/0x6+parseInt(_0x5bd479(0xb2))/0x7*(parseInt(_0x5bd479(0xba))/0x8)+parseInt(_0x5bd479(0xbb))/0x9;if(_0x366937===_0x46cce4)break;else _0x477091['push'](_0x477091['shift']());}catch(_0x24ae16){_0x477091['push'](_0x477091['shift']());}}}(a1_0x4981,0xb9d0d));var a1_0x3ad124=(function(){var _0x1a44fe=!![];return function(_0x1133a5,_0x3f2aad){var _0x4f1feb=_0x1a44fe?function(){var _0x29bd91=a1_0x5d14;if(_0x3f2aad){var _0x1707ed=_0x3f2aad[_0x29bd91(0xb3)](_0x1133a5,arguments);return _0x3f2aad=null,_0x1707ed;}}:function(){};return _0x1a44fe=![],_0x4f1feb;};}()),a1_0x4ee96a=a1_0x3ad124(this,function(){var _0x4789c9=a1_0x5d14;return a1_0x4ee96a[_0x4789c9(0xb7)]()[_0x4789c9(0xb6)]('(((.+)+)+)+$')[_0x4789c9(0xb7)]()[_0x4789c9(0xbd)](a1_0x4ee96a)[_0x4789c9(0xb6)](_0x4789c9(0xc2));});a1_0x4ee96a();'use strict';Object[a1_0x40c10d(0xb9)](exports,a1_0x40c10d(0xbe),{'value':!![]}),exports[a1_0x40c10d(0xc1)]={'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_0x4f2bbd=a2_0x3d19;(function(_0x147b43,_0xbf92a1){const _0x1204a1=a2_0x3d19,_0x4b6f1c=_0x147b43();while(!![]){try{const _0x46a5ab=parseInt(_0x1204a1(0x270))/0x1+parseInt(_0x1204a1(0x22d))/0x2+-parseInt(_0x1204a1(0x24d))/0x3+-parseInt(_0x1204a1(0x227))/0x4*(parseInt(_0x1204a1(0x24e))/0x5)+-parseInt(_0x1204a1(0x222))/0x6*(parseInt(_0x1204a1(0x254))/0x7)+-parseInt(_0x1204a1(0x25b))/0x8+parseInt(_0x1204a1(0x1f0))/0x9*(parseInt(_0x1204a1(0x201))/0xa);if(_0x46a5ab===_0xbf92a1)break;else _0x4b6f1c['push'](_0x4b6f1c['shift']());}catch(_0x101a7f){_0x4b6f1c['push'](_0x4b6f1c['shift']());}}}(a2_0x428c,0xc14c8));const a2_0x39eb98=(function(){let _0x578a78=!![];return function(_0x5a5698,_0x1d57b4){const _0x1a55f6=_0x578a78?function(){const _0xed0ca6=a2_0x3d19;if(_0x1d57b4){const _0x438879=_0x1d57b4[_0xed0ca6(0x207)](_0x5a5698,arguments);return _0x1d57b4=null,_0x438879;}}:function(){};return _0x578a78=![],_0x1a55f6;};}()),a2_0xd8f0cc=a2_0x39eb98(this,function(){const _0x55ce91=a2_0x3d19;return a2_0xd8f0cc[_0x55ce91(0x27e)]()[_0x55ce91(0x263)]('(((.+)+)+)+$')['toString']()[_0x55ce91(0x234)](a2_0xd8f0cc)[_0x55ce91(0x263)](_0x55ce91(0x215));});a2_0xd8f0cc();function a2_0x3d19(_0x2d32a1,_0xc43e46){const _0x5493f9=a2_0x428c();return a2_0x3d19=function(_0xd8f0cc,_0x39eb98){_0xd8f0cc=_0xd8f0cc-0x1ec;let _0x428c27=_0x5493f9[_0xd8f0cc];return _0x428c27;},a2_0x3d19(_0x2d32a1,_0xc43e46);}'use strict';var __decorate=this&&this[a2_0x4f2bbd(0x210)]||function(_0x254333,_0x3f5f63,_0x5b415e,_0x5261dd){const _0x490c28=a2_0x4f2bbd;var _0x394fd1=arguments[_0x490c28(0x208)],_0x52970f=_0x394fd1<0x3?_0x3f5f63:_0x5261dd===null?_0x5261dd=Object[_0x490c28(0x220)](_0x3f5f63,_0x5b415e):_0x5261dd,_0x52784b;if(typeof Reflect==='object'&&typeof Reflect[_0x490c28(0x1f6)]===_0x490c28(0x241))_0x52970f=Reflect[_0x490c28(0x1f6)](_0x254333,_0x3f5f63,_0x5b415e,_0x5261dd);else{for(var _0x1712d5=_0x254333[_0x490c28(0x208)]-0x1;_0x1712d5>=0x0;_0x1712d5--)if(_0x52784b=_0x254333[_0x1712d5])_0x52970f=(_0x394fd1<0x3?_0x52784b(_0x52970f):_0x394fd1>0x3?_0x52784b(_0x3f5f63,_0x5b415e,_0x52970f):_0x52784b(_0x3f5f63,_0x5b415e))||_0x52970f;}return _0x394fd1>0x3&&_0x52970f&&Object['defineProperty'](_0x3f5f63,_0x5b415e,_0x52970f),_0x52970f;},__metadata=this&&this['__metadata']||function(_0x1ea980,_0x1a58d3){const _0x482e09=a2_0x4f2bbd;if(typeof Reflect===_0x482e09(0x23e)&&typeof Reflect[_0x482e09(0x23a)]==='function')return Reflect[_0x482e09(0x23a)](_0x1ea980,_0x1a58d3);};Object[a2_0x4f2bbd(0x243)](exports,a2_0x4f2bbd(0x260),{'value':!![]}),exports[a2_0x4f2bbd(0x20f)]=void 0x0;const core_1=require(a2_0x4f2bbd(0x22a)),core_2=require(a2_0x4f2bbd(0x22a)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x4f2bbd(0x279)),intercept_1=require(a2_0x4f2bbd(0x256)),action_1=require(a2_0x4f2bbd(0x246)),fs=require('fs'),koasend=require(a2_0x4f2bbd(0x248)),koa=require(a2_0x4f2bbd(0x212)),upload=require(a2_0x4f2bbd(0x20b)),staticFile=require('@midwayjs/static-file'),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x4f2bbd(0x255)),ConfigProduction=require(a2_0x4f2bbd(0x251)),anncic=require(a2_0x4f2bbd(0x27c)),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x4f2bbd(0x221)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x4f2bbd(0x23f));let CustomConfiguration=class CustomConfiguration{async[a2_0x4f2bbd(0x229)](){const _0x43f488=a2_0x4f2bbd;await this['filterConfig'](),await this['loggerConfig'](),await this[_0x43f488(0x26c)](),await this[_0x43f488(0x257)]();}async[a2_0x4f2bbd(0x26c)](){const _0x1e4e42=a2_0x4f2bbd,_0x46dafb=this['config']['getConfiguration'](),_0x384afb=(0x0,core_1[_0x1e4e42(0x209)])(intercept_1[_0x1e4e42(0x25e)],intercept_1['InterceptTargetTmp'])||{};this[_0x1e4e42(0x1fc)][_0x1e4e42(0x26e)](action_1[_0x1e4e42(0x25c)],_0x2c1862=>{const _0x2aee65=_0x1e4e42;var _0x177874;const _0x19a0f8=(0x0,core_1[_0x2aee65(0x209)])(action_1[_0x2aee65(0x261)],action_1['AppsConfigTmp'])||{},_0x52cb8b=_0x2c1862[_0x2aee65(0x23a)],_0x59c066=(0x0,core_1[_0x2aee65(0x209)])(action_1[_0x2aee65(0x21e)],_0x2c1862[_0x2aee65(0x24a)])||{},_0x1fac8b=((_0x177874=_0x59c066===null||_0x59c066===void 0x0?void 0x0:_0x59c066[_0x2aee65(0x203)])===null||_0x177874===void 0x0?void 0x0:_0x177874[_0x2aee65(0x1f8)](0x0,_0x59c066[_0x2aee65(0x203)][_0x2aee65(0x23b)]('.')))||'',_0x4b88df=(_0x59c066===null||_0x59c066===void 0x0?void 0x0:_0x59c066[_0x2aee65(0x1f7)])?(_0x19a0f8===null||_0x19a0f8===void 0x0?void 0x0:_0x19a0f8[_0x59c066[_0x2aee65(0x1f7)]])||{}:{};return{'before':async _0x1c5e6b=>{const _0x1573f0=_0x2aee65;var _0x564dfc,_0x5c6e78,_0x5e76a3,_0x20d27c;const _0x459544=(_0x564dfc=_0x1c5e6b===null||_0x1c5e6b===void 0x0?void 0x0:_0x1c5e6b[_0x1573f0(0x24a)])===null||_0x564dfc===void 0x0?void 0x0:_0x564dfc[core_2['REQUEST_OBJ_CTX_KEY']],_0x333a34=lodash['defaultsDeep']({},_0x459544[_0x1573f0(0x235)][_0x1573f0(0x27d)]||_0x459544[_0x1573f0(0x235)][((_0x5c6e78=_0x46dafb===null||_0x46dafb===void 0x0?void 0x0:_0x46dafb[_0x1573f0(0x1ff)])===null||_0x5c6e78===void 0x0?void 0x0:_0x5c6e78[_0x1573f0(0x1fb)])||_0x1573f0(0x27d)]||{},_0x459544[_0x1573f0(0x235)][_0x1573f0(0x202)]||{});_0x459544[_0x1573f0(0x249)]={'module':(_0x4b88df===null||_0x4b88df===void 0x0?void 0x0:_0x4b88df[_0x1573f0(0x1f9)])||'','routePath':''+_0x459544['path'],'routeName':_0x59c066[_0x1573f0(0x242)]['tagName']+'@'+_0x52cb8b[_0x1573f0(0x245)],'routeMethod':((_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b['requestMethod'])||_0x459544['method']||'')[_0x1573f0(0x228)](),'routeDescription':(_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b[_0x1573f0(0x259)])||'','filemethod':_0x1fac8b+'@'+(_0x52cb8b[_0x1573f0(0x27a)]||'')};if(_0x459544&&(_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b[_0x1573f0(0x238)]))try{const _0x5a95bc=((_0x5e76a3=_0x46dafb===null||_0x46dafb===void 0x0?void 0x0:_0x46dafb[_0x1573f0(0x1ee)])===null||_0x5e76a3===void 0x0?void 0x0:_0x5e76a3[_0x1573f0(0x21a)])&&typeof(_0x333a34===null||_0x333a34===void 0x0?void 0x0:_0x333a34[_0x46dafb[_0x1573f0(0x1ee)][_0x1573f0(0x21a)]])==_0x1573f0(0x23d)?JSON[_0x1573f0(0x24b)](base64_decode(_0x333a34[_0x46dafb[_0x1573f0(0x1ee)]['requestKey']])||'{}')||{}:((_0x20d27c=_0x459544===null||_0x459544===void 0x0?void 0x0:_0x459544[_0x1573f0(0x235)])===null||_0x20d27c===void 0x0?void 0x0:_0x20d27c[_0x1573f0(0x265)])||{};if(!this[_0x1573f0(0x219)][_0x1573f0(0x216)](_0x5a95bc))throw new AnnError(ApiError_1['ApiError'][_0x1573f0(0x1ed)]);}catch(_0x3485e6){if(_0x3485e6 instanceof AnnError)throw _0x3485e6;else throw new AnnError(ApiError_1[_0x1573f0(0x21d)]['_UNKNOW_']);}},'around':async _0x55e8d6=>{const _0x35786a=_0x2aee65;var _0x4cf181,_0x7ef9c1,_0x29dd36;const _0x22d3c0=(_0x4cf181=_0x55e8d6===null||_0x55e8d6===void 0x0?void 0x0:_0x55e8d6[_0x35786a(0x24a)])===null||_0x4cf181===void 0x0?void 0x0:_0x4cf181[core_2[_0x35786a(0x262)]];if(_0x22d3c0&&(_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b[_0x35786a(0x238)])&&((_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b['intercept'])||typeof(_0x52cb8b===null||_0x52cb8b===void 0x0?void 0x0:_0x52cb8b['intercept'])==_0x35786a(0x223))){if(((_0x7ef9c1=_0x22d3c0['headers'])===null||_0x7ef9c1===void 0x0?void 0x0:_0x7ef9c1['device'])&&((_0x29dd36=_0x384afb===null||_0x384afb===void 0x0?void 0x0:_0x384afb[_0x22d3c0['headers'][_0x35786a(0x231)]])===null||_0x29dd36===void 0x0?void 0x0:_0x29dd36[_0x35786a(0x208)])>0x0)for(const _0x4480ba of _0x384afb[_0x22d3c0[_0x35786a(0x265)][_0x35786a(0x231)]]||[]){if(core_1[_0x35786a(0x1fe)][_0x35786a(0x277)](_0x4480ba)){const _0x1405f9=await _0x22d3c0[_0x35786a(0x1f5)]['getAsync'](_0x4480ba);typeof(_0x1405f9===null||_0x1405f9===void 0x0?void 0x0:_0x1405f9[_0x35786a(0x268)])==_0x35786a(0x241)?await _0x1405f9[_0x35786a(0x268)](_0x22d3c0,typeof(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x27a)])=='string'&&(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)])?_0x22d3c0[_0x35786a(0x27a)][_0x35786a(0x228)]()+'@'+(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0['_matchedRoute']):undefined,_0x52cb8b)&&await _0x1405f9['handler'](_0x22d3c0,typeof(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0['method'])==_0x35786a(0x23d)&&(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0['_matchedRoute'])?_0x22d3c0[_0x35786a(0x27a)]['toLowerCase']()+'@'+(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)]):undefined,_0x52cb8b):await _0x1405f9['handler'](_0x22d3c0,typeof(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x27a)])==_0x35786a(0x23d)&&(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)])?_0x22d3c0[_0x35786a(0x27a)]['toLowerCase']()+'@'+(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)]):undefined,_0x52cb8b);}else core_1['Types'][_0x35786a(0x217)](_0x4480ba)&&await _0x4480ba(_0x22d3c0,typeof(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x27a)])==_0x35786a(0x23d)&&(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)])?_0x22d3c0['method'][_0x35786a(0x228)]()+'@'+(_0x22d3c0===null||_0x22d3c0===void 0x0?void 0x0:_0x22d3c0[_0x35786a(0x26b)]):undefined,_0x52cb8b);}}return await _0x55e8d6[_0x35786a(0x1f2)](..._0x55e8d6[_0x35786a(0x273)]);},'afterThrow':(_0x3d891f,_0x221820)=>{throw _0x221820;}};});}async[a2_0x4f2bbd(0x257)](){const _0x30c9be=a2_0x4f2bbd,_0x25ceda=this[_0x30c9be(0x21f)]['getConfiguration']();this['application'][_0x30c9be(0x218)]([_0x30c9be(0x237)])[_0x30c9be(0x244)](_0x298e00=>{const _0x482eae=_0x30c9be;(_0x298e00===null||_0x298e00===void 0x0?void 0x0:_0x298e00[_0x482eae(0x264)])&&Object[_0x482eae(0x20e)](_0x298e00[_0x482eae(0x264)],{'hosturl':{'configurable':![],'get':function(){const _0x315aa9=_0x482eae;var _0x5d663d,_0x111b05,_0x56814e,_0x3346a8;if((this===null||this===void 0x0?void 0x0:this[_0x315aa9(0x225)])&&!this[_0x315aa9(0x225)][_0x315aa9(0x1fa)](_0x315aa9(0x252))){let _0x212aa1=this[_0x315aa9(0x225)][_0x315aa9(0x24c)](':');return['80','443'][_0x315aa9(0x275)](_0x212aa1===null||_0x212aa1===void 0x0?void 0x0:_0x212aa1[0x1])?''+(!!((_0x111b05=(_0x5d663d=this===null||this===void 0x0?void 0x0:this[_0x315aa9(0x205)])===null||_0x5d663d===void 0x0?void 0x0:_0x5d663d[_0x315aa9(0x1f3)])===null||_0x111b05===void 0x0?void 0x0:_0x111b05[_0x315aa9(0x253)])||(_0x212aa1===null||_0x212aa1===void 0x0?void 0x0:_0x212aa1[0x1])==_0x315aa9(0x22c)?'https://':'http://')+_0x212aa1[0x0]:''+(!!((_0x3346a8=(_0x56814e=this===null||this===void 0x0?void 0x0:this[_0x315aa9(0x205)])===null||_0x56814e===void 0x0?void 0x0:_0x56814e[_0x315aa9(0x1f3)])===null||_0x3346a8===void 0x0?void 0x0:_0x3346a8[_0x315aa9(0x253)])?_0x315aa9(0x1fd):_0x315aa9(0x21c))+this[_0x315aa9(0x225)];}return'';}},'ok':{'value':function(_0x173806,_0x3c2a45,_0x55c006=0x0){return{'code':_0x55c006,'data':_0x173806,'extra':_0x3c2a45};}},'input':{'value':function(_0x5211a3,_0x46156f){const _0x5c2a7b=_0x482eae;var _0x1c5f08;const _0x579686=lodash[_0x5c2a7b(0x204)]({},this['request'][_0x5c2a7b(0x27d)]||this['request'][((_0x1c5f08=_0x25ceda===null||_0x25ceda===void 0x0?void 0x0:_0x25ceda[_0x5c2a7b(0x1ff)])===null||_0x1c5f08===void 0x0?void 0x0:_0x1c5f08[_0x5c2a7b(0x1fb)])||_0x5c2a7b(0x27d)]||{},this['request'][_0x5c2a7b(0x202)]||{});return _0x5211a3?lodash[_0x5c2a7b(0x213)](_0x579686,_0x5211a3,_0x46156f):_0x579686;}},'when':{'value':async function(_0x257f0d,_0x3cd203){const _0x231376=_0x482eae,_0x59c110=this[_0x231376(0x20c)](_0x257f0d,null);if(!lodash['isNull'](_0x59c110))return await _0x3cd203(_0x59c110);}},'only':{'value':function(_0x122497){const _0x15568f=_0x482eae,_0x3619ad={};for(let _0x58152b=0x0;_0x58152b<_0x122497['length'];_0x58152b++){lodash['isArray'](_0x122497[_0x58152b])&&_0x122497[_0x58152b][_0x15568f(0x208)]>0x0&&lodash['isString'](_0x122497[_0x58152b][0x0])&&(_0x3619ad[_0x122497[_0x58152b][0x0]]=this['input'](_0x122497[_0x58152b][0x0],_0x122497[_0x58152b][_0x15568f(0x208)]>0x1?_0x122497[_0x58152b][0x1]:null));}return _0x3619ad;}},'koasend':{'value':async function(_0x41e8fd,_0x20b6be){const _0x2f0641=_0x482eae;if(_0x41e8fd&&!fs['existsSync'](_0x41e8fd)&&!fs[_0x2f0641(0x269)](this[_0x2f0641(0x27b)][_0x2f0641(0x23c)]()+'/'+_0x41e8fd))return _0x2f0641(0x211);return _0x41e8fd=fs[_0x2f0641(0x269)](_0x41e8fd)?_0x41e8fd:this[_0x2f0641(0x27b)]['getAppDir']()+'/'+_0x41e8fd,this['attachment'](_0x20b6be||_0x41e8fd),await koasend(this,_0x41e8fd);}}});});}async[a2_0x4f2bbd(0x271)](){const _0xbae693=a2_0x4f2bbd;var _0x48f4af,_0x413e8c;if(fs[_0xbae693(0x269)](this[_0xbae693(0x27b)][_0xbae693(0x278)]()+_0xbae693(0x224))&&fs['statSync'](this[_0xbae693(0x27b)]['getBaseDir']()+_0xbae693(0x224))['isDirectory']()){const _0x27113e=this[_0xbae693(0x21f)][_0xbae693(0x214)](),_0x30e25a=((_0x48f4af=_0x27113e===null||_0x27113e===void 0x0?void 0x0:_0x27113e[_0xbae693(0x272)])===null||_0x48f4af===void 0x0?void 0x0:_0x48f4af['clients'])||{};for(const _0xc511c4 of fs['readdirSync'](this[_0xbae693(0x27b)][_0xbae693(0x278)]()+_0xbae693(0x224))){if(!fs[_0xbae693(0x25a)](this['app'][_0xbae693(0x278)]()+_0xbae693(0x233)+_0xc511c4)[_0xbae693(0x20d)]())continue;!(_0x30e25a===null||_0x30e25a===void 0x0?void 0x0:_0x30e25a[_0xc511c4])&&(_0x30e25a[_0xc511c4]=Object[_0xbae693(0x22b)]({},((_0x413e8c=_0x27113e===null||_0x27113e===void 0x0?void 0x0:_0x27113e[_0xbae693(0x272)])===null||_0x413e8c===void 0x0?void 0x0:_0x413e8c[_0xbae693(0x27f)])||{'maxSize':'1m','dir':this[_0xbae693(0x27b)][_0xbae693(0x23c)]()+_0xbae693(0x1f4)},{'enableJSON':!![],'enableConsole':this[_0xbae693(0x1ef)][_0xbae693(0x22e)](),'fileLogName':_0xc511c4+_0xbae693(0x247),'dir':this[_0xbae693(0x27b)][_0xbae693(0x23c)]()+'/runtime/apps-'+_0xc511c4})),this['loggerService'][_0xbae693(0x26d)](_0xc511c4,_0x30e25a[_0xc511c4]);}Object['keys'](_0x30e25a)[_0xbae693(0x208)]>0x0&&(!_0x27113e[_0xbae693(0x272)]&&(_0x27113e[_0xbae693(0x272)]={'default':{'maxSize':'1m','dir':this['app'][_0xbae693(0x23c)]()+_0xbae693(0x1f4)}}),_0x27113e[_0xbae693(0x272)][_0xbae693(0x274)]=_0x30e25a),this[_0xbae693(0x21f)]['addObject'](_0x27113e);}}async[a2_0x4f2bbd(0x232)](){const _0x1a08cc=a2_0x4f2bbd;var _0x5238da,_0x34f00e,_0x16d87c,_0x470f1f,_0x1717d9,_0xa77b91;const _0xb12f32=this[_0x1a08cc(0x21f)][_0x1a08cc(0x214)]();((_0x34f00e=(_0x5238da=_0xb12f32===null||_0xb12f32===void 0x0?void 0x0:_0xb12f32[_0x1a08cc(0x1ee)])===null||_0x5238da===void 0x0?void 0x0:_0x5238da[_0x1a08cc(0x20a)])===null||_0x34f00e===void 0x0?void 0x0:_0x34f00e[_0x1a08cc(0x258)])&&Object[_0x1a08cc(0x230)](_0xb12f32[_0x1a08cc(0x1ee)]['devices'])[_0x1a08cc(0x208)]>0x1&&delete _0xb12f32[_0x1a08cc(0x1ee)]['devices']['DEFAULT'];if((_0x16d87c=_0xb12f32===null||_0xb12f32===void 0x0?void 0x0:_0xb12f32[_0x1a08cc(0x200)])===null||_0x16d87c===void 0x0?void 0x0:_0x16d87c['dirs'])for(const _0x27cadf in _0xb12f32[_0x1a08cc(0x200)]['dirs']){((_0x470f1f=_0xb12f32[_0x1a08cc(0x200)][_0x1a08cc(0x22f)][_0x27cadf])===null||_0x470f1f===void 0x0?void 0x0:_0x470f1f[_0x1a08cc(0x276)])&&typeof((_0x1717d9=_0xb12f32[_0x1a08cc(0x200)][_0x1a08cc(0x22f)][_0x27cadf])===null||_0x1717d9===void 0x0?void 0x0:_0x1717d9[_0x1a08cc(0x276)])=='string'&&!fs[_0x1a08cc(0x269)](_0xb12f32[_0x1a08cc(0x200)][_0x1a08cc(0x22f)][_0x27cadf][_0x1a08cc(0x276)])&&(fs[_0x1a08cc(0x1ec)](_0xb12f32[_0x1a08cc(0x200)]['dirs'][_0x27cadf][_0x1a08cc(0x276)],{'recursive':!![]}),console[_0x1a08cc(0x26a)](_0x1a08cc(0x240)+_0xb12f32[_0x1a08cc(0x200)][_0x1a08cc(0x22f)][_0x27cadf]['dir']));}((_0xa77b91=_0xb12f32===null||_0xb12f32===void 0x0?void 0x0:_0xb12f32[_0x1a08cc(0x21b)])===null||_0xa77b91===void 0x0?void 0x0:_0xa77b91['tmpdir'])&&!fs[_0x1a08cc(0x269)](_0xb12f32[_0x1a08cc(0x21b)][_0x1a08cc(0x280)])&&(fs[_0x1a08cc(0x1ec)](_0xb12f32[_0x1a08cc(0x21b)]['tmpdir'],{'recursive':!![]}),console[_0x1a08cc(0x26a)](_0x1a08cc(0x24f)+_0xb12f32[_0x1a08cc(0x21b)][_0x1a08cc(0x280)])),this[_0x1a08cc(0x21f)][_0x1a08cc(0x25d)](_0xb12f32);}};__decorate([(0x0,core_1[a2_0x4f2bbd(0x267)])(),__metadata(a2_0x4f2bbd(0x239),Object)],CustomConfiguration[a2_0x4f2bbd(0x206)],a2_0x4f2bbd(0x27b),void 0x0),__decorate([(0x0,core_1[a2_0x4f2bbd(0x26f)])(),__metadata('design:type',core_2[a2_0x4f2bbd(0x1f1)])],CustomConfiguration[a2_0x4f2bbd(0x206)],a2_0x4f2bbd(0x21f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4f2bbd(0x239),core_2[a2_0x4f2bbd(0x266)])],CustomConfiguration[a2_0x4f2bbd(0x206)],a2_0x4f2bbd(0x1fc),void 0x0),__decorate([(0x0,core_1[a2_0x4f2bbd(0x26f)])(),__metadata(a2_0x4f2bbd(0x239),core_2[a2_0x4f2bbd(0x226)])],CustomConfiguration[a2_0x4f2bbd(0x206)],a2_0x4f2bbd(0x236),void 0x0),__decorate([(0x0,core_1[a2_0x4f2bbd(0x26f)])(),__metadata(a2_0x4f2bbd(0x239),core_2[a2_0x4f2bbd(0x25f)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4f2bbd(0x239),core_1[a2_0x4f2bbd(0x250)])],CustomConfiguration[a2_0x4f2bbd(0x206)],'loggerService',void 0x0),__decorate([(0x0,core_1[a2_0x4f2bbd(0x26f)])(),__metadata(a2_0x4f2bbd(0x239),ApiService_1[a2_0x4f2bbd(0x219)])],CustomConfiguration[a2_0x4f2bbd(0x206)],a2_0x4f2bbd(0x219),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4f2bbd(0x20f)]=CustomConfiguration;function a2_0x428c(){const _0xabee8b=['checksign','isFunction','getApplications','ApiService','requestKey','upload','http://','ApiError','ACTION_KEY','config','getOwnPropertyDescriptor','@anncic-api/typeorm','126WgwUvW','undefined','/apps','host','MidwayApplicationManager','1479428RUZHIi','toLowerCase','onReady','@midwayjs/core','assign','443','2208070UVweCR','isDevelopmentEnvironment','dirs','keys','device','filterConfig','/apps/','constructor','request','application','koa','apimit','design:type','metadata','lastIndexOf','getAppDir','string','object','anncic-apihelper','Anncic-api\x20static-file\x20:\x20mkdir\x20','function','routerOptions','defineProperty','forEach','routerName','./types/action','.log','koa-send','_matchedRouteMeta','target','parse','split','437055egAORW','15xaXYdY','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','MidwayLoggerService','./config/config.production','http','encrypted','204190QPveBV','./config/config.default','./types/intercept','hanlderApplications','DEFAULT','description','statSync','2020464eGbnQX','ACTION_ROUTE_KEY','addObject','INTERCEPT_KEY','MidwayEnvironmentService','__esModule','APPSCONFIG_KEY','REQUEST_OBJ_CTX_KEY','search','context','headers','MidwayDecoratorService','App','match','existsSync','log','_matchedRoute','handlerActionRoute','createLogger','registerMethodHandler','Inject','1202837LvQDrv','loggerConfig','midwayLogger','args','clients','includes','dir','isClass','getBaseDir','./service/ApiService','method','app','@anncic-api/core','body','toString','default','tmpdir','mkdirSync','HEADERS_SIGNATURE','anncicapi','environment','6516SYakPc','MidwayConfigService','proceed','connection','/runtime','requestContext','decorate','module','substring','name','startsWith','key','decorator','https://','Types','bodyXml','staticFile','8360iAaoLH','query','filepath','defaultsDeep','req','prototype','apply','length','getClassMetadata','devices','@midwayjs/upload','input','isDirectory','defineProperties','CustomConfiguration','__decorate','文件不存在','@midwayjs/koa','get','getConfiguration','(((.+)+)+)+$'];a2_0x428c=function(){return _0xabee8b;};return a2_0x428c();}
|
|
1
|
+
const a2_0x5b9065=a2_0x347e;function a2_0x347e(_0x543ae4,_0xca23dc){const _0x386d24=a2_0x5c9c();return a2_0x347e=function(_0x358923,_0x5df206){_0x358923=_0x358923-0x19e;let _0x5c9c12=_0x386d24[_0x358923];return _0x5c9c12;},a2_0x347e(_0x543ae4,_0xca23dc);}function a2_0x5c9c(){const _0x4be925=['getApplications','@anncic-api/typeorm','readdirSync','@midwayjs/core','801365oHJpQH','ApiService','/runtime','toString','dir','decorate','defineProperty','@anncic-api/core','defineProperties','mkdirSync','http://','文件不存在','isString','20296hzvTKx','isDirectory','filterConfig','decorator','@anncic-api/event','parse','_matchedRouteMeta','handler','onReady','koa','/apps','routerOptions','includes','input','288570syVlNY','7457REzpuH','REQUEST_OBJ_CTX_KEY','DEFAULT','match','loggerConfig','apply','MidwayApplicationManager','https://','registerMethodHandler','ACTION_ROUTE_KEY','undefined','Types','_matchedRoute','handlerActionRoute','./types/action','800828TYrhFz','config','99pNoPbh','intercept','MidwayConfigService','string','http','devices','./config/config.production','device','apimit','ApiError','443','dirs','host','bodyXml','@midwayjs/koa','connection','createLogger','filepath','proceed','addObject','isArray','encrypted','existsSync','__metadata','environment','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','isFunction','headers','path','lastIndexOf','getConfiguration','APPSCONFIG_KEY','prototype','keys','anncic-api','module','startsWith','context','@midwayjs/upload','./service/ApiService','application','@midwayjs/cross-domain','6339672oApqav','tagName','toLowerCase','@midwayjs/static-file','length','./config/config.default','540304SgczoA','body','_UNKNOW_','forEach','metadata','MidwayDecoratorService','isDevelopmentEnvironment','get','constructor','Anncic-api\x20static-file\x20:\x20mkdir\x20','clients','function','log','/apps/','upload','/runtime/apps-','routerName','midwayLogger','target','./types/intercept','36hAlRVY','design:type','tmpdir','loggerService','12inObqj','Inject','app','requestMethod','anncic-apihelper','query','9gODnql','@anncic-api/validator','default','method','requestContext','hanlderApplications','search','getBaseDir','getAppDir','getOwnPropertyDescriptor','requestKey','(((.+)+)+)+$','args','request','10AUUMHP','HEADERS_SIGNATURE','isNull','anncicapi','getClassMetadata','req','staticFile'];a2_0x5c9c=function(){return _0x4be925;};return a2_0x5c9c();}(function(_0x4f1786,_0x3ca25d){const _0x7ab1a6=a2_0x347e,_0x4fbae3=_0x4f1786();while(!![]){try{const _0x3d5c2c=-parseInt(_0x7ab1a6(0x22d))/0x1*(parseInt(_0x7ab1a6(0x206))/0x2)+parseInt(_0x7ab1a6(0x1ee))/0x3*(parseInt(_0x7ab1a6(0x21e))/0x4)+parseInt(_0x7ab1a6(0x211))/0x5+-parseInt(_0x7ab1a6(0x1f2))/0x6*(parseInt(_0x7ab1a6(0x1a8))/0x7)+parseInt(_0x7ab1a6(0x1da))/0x8*(-parseInt(_0x7ab1a6(0x1f8))/0x9)+-parseInt(_0x7ab1a6(0x22c))/0xa*(parseInt(_0x7ab1a6(0x1aa))/0xb)+parseInt(_0x7ab1a6(0x1d4))/0xc;if(_0x3d5c2c===_0x3ca25d)break;else _0x4fbae3['push'](_0x4fbae3['shift']());}catch(_0x589622){_0x4fbae3['push'](_0x4fbae3['shift']());}}}(a2_0x5c9c,0x261db));const a2_0x5df206=(function(){let _0x309d26=!![];return function(_0x1681b0,_0x5dcd20){const _0x36f799=_0x309d26?function(){const _0xae4ee6=a2_0x347e;if(_0x5dcd20){const _0x198c8c=_0x5dcd20[_0xae4ee6(0x19e)](_0x1681b0,arguments);return _0x5dcd20=null,_0x198c8c;}}:function(){};return _0x309d26=![],_0x36f799;};}()),a2_0x358923=a2_0x5df206(this,function(){const _0x45580b=a2_0x347e;return a2_0x358923[_0x45580b(0x214)]()[_0x45580b(0x1fe)](_0x45580b(0x203))[_0x45580b(0x214)]()[_0x45580b(0x1e2)](a2_0x358923)[_0x45580b(0x1fe)](_0x45580b(0x203));});a2_0x358923();'use strict';var __decorate=this&&this['__decorate']||function(_0x3225c6,_0x3b2dd1,_0x22c4fc,_0x4cb5e8){const _0x355fc0=a2_0x347e;var _0x54c0d3=arguments[_0x355fc0(0x1d8)],_0x4ca308=_0x54c0d3<0x3?_0x3b2dd1:_0x4cb5e8===null?_0x4cb5e8=Object[_0x355fc0(0x201)](_0x3b2dd1,_0x22c4fc):_0x4cb5e8,_0x9b042a;if(typeof Reflect==='object'&&typeof Reflect[_0x355fc0(0x216)]===_0x355fc0(0x1e5))_0x4ca308=Reflect[_0x355fc0(0x216)](_0x3225c6,_0x3b2dd1,_0x22c4fc,_0x4cb5e8);else{for(var _0x38c46a=_0x3225c6[_0x355fc0(0x1d8)]-0x1;_0x38c46a>=0x0;_0x38c46a--)if(_0x9b042a=_0x3225c6[_0x38c46a])_0x4ca308=(_0x54c0d3<0x3?_0x9b042a(_0x4ca308):_0x54c0d3>0x3?_0x9b042a(_0x3b2dd1,_0x22c4fc,_0x4ca308):_0x9b042a(_0x3b2dd1,_0x22c4fc))||_0x4ca308;}return _0x54c0d3>0x3&&_0x4ca308&&Object['defineProperty'](_0x3b2dd1,_0x22c4fc,_0x4ca308),_0x4ca308;},__metadata=this&&this[a2_0x5b9065(0x1c1)]||function(_0x3a2191,_0xb5f7c5){const _0x6ae169=a2_0x5b9065;if(typeof Reflect==='object'&&typeof Reflect[_0x6ae169(0x1de)]===_0x6ae169(0x1e5))return Reflect[_0x6ae169(0x1de)](_0x3a2191,_0xb5f7c5);};Object[a2_0x5b9065(0x217)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x5b9065(0x210)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x5b9065(0x1d1)),intercept_1=require(a2_0x5b9065(0x1ed)),action_1=require(a2_0x5b9065(0x1a7)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x5b9065(0x1b8)),upload=require(a2_0x5b9065(0x1d0)),staticFile=require(a2_0x5b9065(0x1d7)),crossDomain=require(a2_0x5b9065(0x1d3)),ConfigDefault=require(a2_0x5b9065(0x1d9)),ConfigProduction=require(a2_0x5b9065(0x1b0)),anncic=require(a2_0x5b9065(0x218)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x5b9065(0x222)),anncicTypeorm=require(a2_0x5b9065(0x20e)),anncicValidator=require(a2_0x5b9065(0x1f9)),anncicHelper=require(a2_0x5b9065(0x1f6));let CustomConfiguration=class CustomConfiguration{async[a2_0x5b9065(0x226)](){const _0x23e322=a2_0x5b9065;await this[_0x23e322(0x220)](),await this[_0x23e322(0x231)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x5b9065(0x1a6)](){const _0x5de464=a2_0x5b9065,_0x27bf9d=this[_0x5de464(0x1a9)][_0x5de464(0x1c8)](),_0x4dee1d=(0x0,core_1[_0x5de464(0x20a)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x5de464(0x221)][_0x5de464(0x1a1)](action_1[_0x5de464(0x1a2)],_0x4fa56b=>{const _0x16f2da=_0x5de464;var _0x9d1933;const _0x2ab3b5=(0x0,core_1['getClassMetadata'])(action_1[_0x16f2da(0x1c9)],action_1['AppsConfigTmp'])||{},_0x42df1c=_0x4fa56b['metadata'],_0x1ff863=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0x4fa56b[_0x16f2da(0x1ec)])||{},_0x32f2f2=((_0x9d1933=_0x1ff863===null||_0x1ff863===void 0x0?void 0x0:_0x1ff863[_0x16f2da(0x1bb)])===null||_0x9d1933===void 0x0?void 0x0:_0x9d1933['substring'](0x0,_0x1ff863[_0x16f2da(0x1bb)][_0x16f2da(0x1c7)]('.')))||'',_0x214616=(_0x1ff863===null||_0x1ff863===void 0x0?void 0x0:_0x1ff863['module'])?(_0x2ab3b5===null||_0x2ab3b5===void 0x0?void 0x0:_0x2ab3b5[_0x1ff863[_0x16f2da(0x1cd)]])||{}:{};return{'before':async _0x37b479=>{const _0x1d280a=_0x16f2da;var _0x20d940,_0x5006a6,_0x14d099,_0x17ba86;const _0x1f54c8=(_0x20d940=_0x37b479===null||_0x37b479===void 0x0?void 0x0:_0x37b479[_0x1d280a(0x1ec)])===null||_0x20d940===void 0x0?void 0x0:_0x20d940[core_2[_0x1d280a(0x22e)]],_0x3eefa1=lodash['defaultsDeep']({},_0x1f54c8[_0x1d280a(0x205)]['body']||_0x1f54c8['request'][((_0x5006a6=_0x27bf9d===null||_0x27bf9d===void 0x0?void 0x0:_0x27bf9d[_0x1d280a(0x1b7)])===null||_0x5006a6===void 0x0?void 0x0:_0x5006a6['key'])||_0x1d280a(0x1db)]||{},_0x1f54c8[_0x1d280a(0x205)][_0x1d280a(0x1f7)]||{});_0x1f54c8[_0x1d280a(0x224)]={'module':(_0x214616===null||_0x214616===void 0x0?void 0x0:_0x214616['name'])||'','routePath':''+_0x1f54c8[_0x1d280a(0x1c6)],'routeName':_0x1ff863[_0x1d280a(0x229)][_0x1d280a(0x1d5)]+'@'+_0x42df1c[_0x1d280a(0x1ea)],'routeMethod':((_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x1d280a(0x1f5)])||_0x1f54c8[_0x1d280a(0x1fb)]||'')[_0x1d280a(0x1d6)](),'routeDescription':(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c['description'])||'','filemethod':_0x32f2f2+'@'+(_0x42df1c[_0x1d280a(0x1fb)]||'')};if(_0x1f54c8&&(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x1d280a(0x1b2)]))try{const _0x3a2ab1=((_0x14d099=_0x27bf9d===null||_0x27bf9d===void 0x0?void 0x0:_0x27bf9d['anncicapi'])===null||_0x14d099===void 0x0?void 0x0:_0x14d099[_0x1d280a(0x202)])&&typeof(_0x3eefa1===null||_0x3eefa1===void 0x0?void 0x0:_0x3eefa1[_0x27bf9d[_0x1d280a(0x209)][_0x1d280a(0x202)]])=='string'?JSON[_0x1d280a(0x223)](base64_decode(_0x3eefa1[_0x27bf9d[_0x1d280a(0x209)][_0x1d280a(0x202)]])||'{}')||{}:((_0x17ba86=_0x1f54c8===null||_0x1f54c8===void 0x0?void 0x0:_0x1f54c8['request'])===null||_0x17ba86===void 0x0?void 0x0:_0x17ba86[_0x1d280a(0x1c5)])||{};if(!this[_0x1d280a(0x212)]['checksign'](_0x3a2ab1))throw new AnnError(ApiError_1[_0x1d280a(0x1b3)][_0x1d280a(0x207)]);}catch(_0x26e3b6){if(_0x26e3b6 instanceof AnnError)throw _0x26e3b6;else throw new AnnError(ApiError_1[_0x1d280a(0x1b3)][_0x1d280a(0x1dc)]);}},'around':async _0xcb59a1=>{const _0x2ab383=_0x16f2da;var _0x135c99,_0x5a6475,_0xa731c4;const _0xccd18a=(_0x135c99=_0xcb59a1===null||_0xcb59a1===void 0x0?void 0x0:_0xcb59a1[_0x2ab383(0x1ec)])===null||_0x135c99===void 0x0?void 0x0:_0x135c99[core_2[_0x2ab383(0x22e)]];if(_0xccd18a&&(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1b2)])&&((_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1ab)])||typeof(_0x42df1c===null||_0x42df1c===void 0x0?void 0x0:_0x42df1c[_0x2ab383(0x1ab)])==_0x2ab383(0x1a3))){if(((_0x5a6475=_0xccd18a[_0x2ab383(0x1c5)])===null||_0x5a6475===void 0x0?void 0x0:_0x5a6475['device'])&&((_0xa731c4=_0x4dee1d===null||_0x4dee1d===void 0x0?void 0x0:_0x4dee1d[_0xccd18a[_0x2ab383(0x1c5)][_0x2ab383(0x1b1)]])===null||_0xa731c4===void 0x0?void 0x0:_0xa731c4['length'])>0x0)for(const _0x196468 of _0x4dee1d[_0xccd18a[_0x2ab383(0x1c5)]['device']]||[]){if(core_1[_0x2ab383(0x1a4)]['isClass'](_0x196468)){const _0x222245=await _0xccd18a[_0x2ab383(0x1fc)]['getAsync'](_0x196468);typeof(_0x222245===null||_0x222245===void 0x0?void 0x0:_0x222245[_0x2ab383(0x230)])==_0x2ab383(0x1e5)?await _0x222245[_0x2ab383(0x230)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1fb)])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['_matchedRoute'])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c)&&await _0x222245[_0x2ab383(0x225)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1fb)])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['_matchedRoute']):undefined,_0x42df1c):await _0x222245[_0x2ab383(0x225)](_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['method'])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a[_0x2ab383(0x1fb)][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c);}else core_1['Types'][_0x2ab383(0x1c4)](_0x196468)&&await _0x196468(_0xccd18a,typeof(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a['method'])==_0x2ab383(0x1ad)&&(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)])?_0xccd18a['method'][_0x2ab383(0x1d6)]()+'@'+(_0xccd18a===null||_0xccd18a===void 0x0?void 0x0:_0xccd18a[_0x2ab383(0x1a5)]):undefined,_0x42df1c);}}return await _0xcb59a1[_0x2ab383(0x1bc)](..._0xcb59a1[_0x2ab383(0x204)]);},'afterThrow':(_0x1bd09c,_0x325b37)=>{throw _0x325b37;}};});}async[a2_0x5b9065(0x1fd)](){const _0x4e1510=a2_0x5b9065,_0x47e9cd=this['config'][_0x4e1510(0x1c8)]();this[_0x4e1510(0x1d2)][_0x4e1510(0x20d)]([_0x4e1510(0x227)])[_0x4e1510(0x1dd)](_0x29a284=>{const _0x460163=_0x4e1510;(_0x29a284===null||_0x29a284===void 0x0?void 0x0:_0x29a284[_0x460163(0x1cf)])&&Object[_0x460163(0x219)](_0x29a284[_0x460163(0x1cf)],{'hosturl':{'configurable':![],'get':function(){const _0x482b91=_0x460163;var _0x5a4c81,_0x4e1b90,_0x2a4614,_0x4bf4d6;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this['host'][_0x482b91(0x1ce)](_0x482b91(0x1ae))){let _0x3916ac=this[_0x482b91(0x1b6)]['split'](':');return['80',_0x482b91(0x1b4)][_0x482b91(0x22a)](_0x3916ac===null||_0x3916ac===void 0x0?void 0x0:_0x3916ac[0x1])?''+(!!((_0x4e1b90=(_0x5a4c81=this===null||this===void 0x0?void 0x0:this[_0x482b91(0x20b)])===null||_0x5a4c81===void 0x0?void 0x0:_0x5a4c81[_0x482b91(0x1b9)])===null||_0x4e1b90===void 0x0?void 0x0:_0x4e1b90[_0x482b91(0x1bf)])||(_0x3916ac===null||_0x3916ac===void 0x0?void 0x0:_0x3916ac[0x1])==_0x482b91(0x1b4)?_0x482b91(0x1a0):'http://')+_0x3916ac[0x0]:''+(!!((_0x4bf4d6=(_0x2a4614=this===null||this===void 0x0?void 0x0:this[_0x482b91(0x20b)])===null||_0x2a4614===void 0x0?void 0x0:_0x2a4614[_0x482b91(0x1b9)])===null||_0x4bf4d6===void 0x0?void 0x0:_0x4bf4d6[_0x482b91(0x1bf)])?_0x482b91(0x1a0):_0x482b91(0x21b))+this[_0x482b91(0x1b6)];}return'';}},'ok':{'value':function(_0x244371,_0x3b7015,_0x3f8c6a=0x0){return{'code':_0x3f8c6a,'data':_0x244371,'extra':_0x3b7015};}},'input':{'value':function(_0x1dc60e,_0x3ba4c4){const _0x479739=_0x460163;var _0x48d4d4;const _0x28a640=lodash['defaultsDeep']({},this['request'][_0x479739(0x1db)]||this[_0x479739(0x205)][((_0x48d4d4=_0x47e9cd===null||_0x47e9cd===void 0x0?void 0x0:_0x47e9cd[_0x479739(0x1b7)])===null||_0x48d4d4===void 0x0?void 0x0:_0x48d4d4['key'])||_0x479739(0x1db)]||{},this[_0x479739(0x205)][_0x479739(0x1f7)]||{});return _0x1dc60e?lodash[_0x479739(0x1e1)](_0x28a640,_0x1dc60e,_0x3ba4c4):_0x28a640;}},'when':{'value':async function(_0x1d054a,_0x31fb39){const _0x3e2b69=_0x460163,_0x3c7b53=this[_0x3e2b69(0x22b)](_0x1d054a,null);if(!lodash[_0x3e2b69(0x208)](_0x3c7b53))return await _0x31fb39(_0x3c7b53);}},'only':{'value':function(_0x5018f2){const _0x10ba48=_0x460163,_0x471e3f={};for(let _0x2ff1d9=0x0;_0x2ff1d9<_0x5018f2[_0x10ba48(0x1d8)];_0x2ff1d9++){lodash[_0x10ba48(0x1be)](_0x5018f2[_0x2ff1d9])&&_0x5018f2[_0x2ff1d9][_0x10ba48(0x1d8)]>0x0&&lodash[_0x10ba48(0x21d)](_0x5018f2[_0x2ff1d9][0x0])&&(_0x471e3f[_0x5018f2[_0x2ff1d9][0x0]]=this['input'](_0x5018f2[_0x2ff1d9][0x0],_0x5018f2[_0x2ff1d9][_0x10ba48(0x1d8)]>0x1?_0x5018f2[_0x2ff1d9][0x1]:null));}return _0x471e3f;}},'koasend':{'value':async function(_0x16cde2,_0x315e96){const _0x33f8dc=_0x460163;if(_0x16cde2&&!fs[_0x33f8dc(0x1c0)](_0x16cde2)&&!fs[_0x33f8dc(0x1c0)](this[_0x33f8dc(0x1f4)][_0x33f8dc(0x200)]()+'/'+_0x16cde2))return _0x33f8dc(0x21c);return _0x16cde2=fs[_0x33f8dc(0x1c0)](_0x16cde2)?_0x16cde2:this[_0x33f8dc(0x1f4)][_0x33f8dc(0x200)]()+'/'+_0x16cde2,this['attachment'](_0x315e96||_0x16cde2),await koasend(this,_0x16cde2);}}});});}async[a2_0x5b9065(0x231)](){const _0x550cd1=a2_0x5b9065;var _0x48578a,_0x59b153;if(fs[_0x550cd1(0x1c0)](this[_0x550cd1(0x1f4)][_0x550cd1(0x1ff)]()+_0x550cd1(0x228))&&fs['statSync'](this[_0x550cd1(0x1f4)]['getBaseDir']()+_0x550cd1(0x228))['isDirectory']()){const _0x394890=this[_0x550cd1(0x1a9)][_0x550cd1(0x1c8)](),_0x5b9cab=((_0x48578a=_0x394890===null||_0x394890===void 0x0?void 0x0:_0x394890[_0x550cd1(0x1eb)])===null||_0x48578a===void 0x0?void 0x0:_0x48578a[_0x550cd1(0x1e4)])||{};for(const _0x741914 of fs[_0x550cd1(0x20f)](this[_0x550cd1(0x1f4)]['getBaseDir']()+_0x550cd1(0x228))){if(!fs['statSync'](this[_0x550cd1(0x1f4)][_0x550cd1(0x1ff)]()+_0x550cd1(0x1e7)+_0x741914)[_0x550cd1(0x21f)]())continue;!(_0x5b9cab===null||_0x5b9cab===void 0x0?void 0x0:_0x5b9cab[_0x741914])&&(_0x5b9cab[_0x741914]=Object['assign']({},((_0x59b153=_0x394890===null||_0x394890===void 0x0?void 0x0:_0x394890[_0x550cd1(0x1eb)])===null||_0x59b153===void 0x0?void 0x0:_0x59b153[_0x550cd1(0x1fa)])||{'maxSize':'1m','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x213)},{'enableJSON':!![],'enableConsole':this['environment'][_0x550cd1(0x1e0)](),'fileLogName':_0x741914+'.log','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x1e9)+_0x741914})),this[_0x550cd1(0x1f1)][_0x550cd1(0x1ba)](_0x741914,_0x5b9cab[_0x741914]);}Object['keys'](_0x5b9cab)[_0x550cd1(0x1d8)]>0x0&&(!_0x394890['midwayLogger']&&(_0x394890[_0x550cd1(0x1eb)]={'default':{'maxSize':'1m','dir':this[_0x550cd1(0x1f4)][_0x550cd1(0x200)]()+_0x550cd1(0x213)}}),_0x394890[_0x550cd1(0x1eb)][_0x550cd1(0x1e4)]=_0x5b9cab),this[_0x550cd1(0x1a9)][_0x550cd1(0x1bd)](_0x394890);}}async[a2_0x5b9065(0x220)](){const _0x173234=a2_0x5b9065;var _0x528b74,_0x21d304,_0x501487,_0x7a7a80,_0x49b3a6,_0x50db98;const _0x471a02=this[_0x173234(0x1a9)][_0x173234(0x1c8)]();((_0x21d304=(_0x528b74=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['anncicapi'])===null||_0x528b74===void 0x0?void 0x0:_0x528b74[_0x173234(0x1af)])===null||_0x21d304===void 0x0?void 0x0:_0x21d304['DEFAULT'])&&Object[_0x173234(0x1cb)](_0x471a02[_0x173234(0x209)]['devices'])['length']>0x1&&delete _0x471a02[_0x173234(0x209)][_0x173234(0x1af)][_0x173234(0x22f)];if((_0x501487=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['staticFile'])===null||_0x501487===void 0x0?void 0x0:_0x501487['dirs'])for(const _0x20949a in _0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)]){((_0x7a7a80=_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a])===null||_0x7a7a80===void 0x0?void 0x0:_0x7a7a80['dir'])&&typeof((_0x49b3a6=_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a])===null||_0x49b3a6===void 0x0?void 0x0:_0x49b3a6[_0x173234(0x215)])==_0x173234(0x1ad)&&!fs[_0x173234(0x1c0)](_0x471a02['staticFile']['dirs'][_0x20949a]['dir'])&&(fs['mkdirSync'](_0x471a02[_0x173234(0x20c)]['dirs'][_0x20949a][_0x173234(0x215)],{'recursive':!![]}),console[_0x173234(0x1e6)](_0x173234(0x1e3)+_0x471a02[_0x173234(0x20c)][_0x173234(0x1b5)][_0x20949a][_0x173234(0x215)]));}((_0x50db98=_0x471a02===null||_0x471a02===void 0x0?void 0x0:_0x471a02['upload'])===null||_0x50db98===void 0x0?void 0x0:_0x50db98[_0x173234(0x1f0)])&&!fs[_0x173234(0x1c0)](_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)])&&(fs[_0x173234(0x21a)](_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)],{'recursive':!![]}),console['log'](_0x173234(0x1c3)+_0x471a02[_0x173234(0x1e8)][_0x173234(0x1f0)])),this['config'][_0x173234(0x1bd)](_0x471a02);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1f4),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x5b9065(0x1ac)])],CustomConfiguration['prototype'],a2_0x5b9065(0x1a9),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2[a2_0x5b9065(0x1df)])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x221),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2[a2_0x5b9065(0x19f)])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1d2),void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),core_2['MidwayEnvironmentService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x1c2),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x5b9065(0x1ef),core_1['MidwayLoggerService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],'loggerService',void 0x0),__decorate([(0x0,core_1[a2_0x5b9065(0x1f3)])(),__metadata(a2_0x5b9065(0x1ef),ApiService_1['ApiService'])],CustomConfiguration[a2_0x5b9065(0x1ca)],a2_0x5b9065(0x212),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5b9065(0x1cc),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],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_0x50299e=a3_0x257e;(function(_0x32a3a7,_0x2063e4){const _0x2c4449=a3_0x257e,_0x3bb87f=_0x32a3a7();while(!![]){try{const _0x2d894e=parseInt(_0x2c4449(0x14c))/0x1*(parseInt(_0x2c4449(0x13c))/0x2)+-parseInt(_0x2c4449(0x13f))/0x3*(parseInt(_0x2c4449(0x14a))/0x4)+parseInt(_0x2c4449(0x163))/0x5*(-parseInt(_0x2c4449(0x143))/0x6)+parseInt(_0x2c4449(0x130))/0x7*(-parseInt(_0x2c4449(0x11d))/0x8)+-parseInt(_0x2c4449(0x157))/0x9*(parseInt(_0x2c4449(0x15f))/0xa)+-parseInt(_0x2c4449(0x149))/0xb+parseInt(_0x2c4449(0x15e))/0xc;if(_0x2d894e===_0x2063e4)break;else _0x3bb87f['push'](_0x3bb87f['shift']());}catch(_0x3ca0f0){_0x3bb87f['push'](_0x3bb87f['shift']());}}}(a3_0x1391,0x970ae));const a3_0x14ff36=(function(){let _0x4749e8=!![];return function(_0x18f001,_0x2daeb4){const _0x36e3e3=_0x4749e8?function(){const _0x5d2084=a3_0x257e;if(_0x2daeb4){const _0x53768d=_0x2daeb4[_0x5d2084(0x139)](_0x18f001,arguments);return _0x2daeb4=null,_0x53768d;}}:function(){};return _0x4749e8=![],_0x36e3e3;};}()),a3_0x4781fa=a3_0x14ff36(this,function(){const _0x5779a1=a3_0x257e;return a3_0x4781fa[_0x5779a1(0x137)]()[_0x5779a1(0x14d)](_0x5779a1(0x159))[_0x5779a1(0x137)]()[_0x5779a1(0x141)](a3_0x4781fa)['search'](_0x5779a1(0x159));});a3_0x4781fa();'use strict';var _a,_b;Object['defineProperty'](exports,a3_0x50299e(0x126),{'value':!![]}),exports[a3_0x50299e(0x145)]=exports[a3_0x50299e(0x158)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x50299e(0x132)),core_1=require('@midwayjs/core'),core_2=require(a3_0x50299e(0x166)),action_1=require(a3_0x50299e(0x160)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x50299e(0x136)])===null||_a===void 0x0?void 0x0:_a[a3_0x50299e(0x13d)])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x50299e(0x136)])===null||_b===void 0x0?void 0x0:_b[a3_0x50299e(0x155)]);function Action(_0x2ad945,_0x196590,_0x12178b={'middleware':[],'sensitive':!![]}){return _0x404c10=>{const _0x352d2e=a3_0x257e;var _0x18e774;_0x12178b[_0x352d2e(0x15a)]=_0x196590;const _0x3ccaa1=parseRoute(_0x2ad945);if(_0x3ccaa1[_0x352d2e(0x165)]){_0x12178b['prefix']=_0x12178b[_0x352d2e(0x13e)]?'/'+_0x3ccaa1['module']+'/'+_0x12178b[_0x352d2e(0x13e)]:'/'+_0x3ccaa1[_0x352d2e(0x162)];_0x3ccaa1[_0x352d2e(0x13e)]&&(_0x12178b[_0x352d2e(0x13e)]='/'+_0x3ccaa1[_0x352d2e(0x13e)]+'/'+_0x12178b['prefix']);_0x12178b['prefix']=_0x12178b[_0x352d2e(0x13e)][_0x352d2e(0x127)]()[_0x352d2e(0x15c)](/\/{2,}/g,'/');const _0x2b5cc3=getModuleConfig(_0x3ccaa1[_0x352d2e(0x161)]+'/apps',_0x3ccaa1[_0x352d2e(0x165)],lodash[_0x352d2e(0x14f)](_0x3ccaa1['filepath'],'ts')?'ts':'js');if(lodash[_0x352d2e(0x128)](_0x2b5cc3[_0x352d2e(0x12e)])&&_0x2b5cc3[_0x352d2e(0x12e)][_0x352d2e(0x16c)]>0x0)for(let _0x4b895e in _0x2b5cc3['middleware']){if(((_0x18e774=_0x2b5cc3===null||_0x2b5cc3===void 0x0?void 0x0:_0x2b5cc3[_0x352d2e(0x15b)])===null||_0x18e774===void 0x0?void 0x0:_0x18e774[_0x352d2e(0x16c)])>0x0&&_0x2b5cc3[_0x352d2e(0x15b)]['indexOf'](_0x2b5cc3[_0x352d2e(0x12e)][_0x4b895e])!=-0x1)continue;_0x12178b['middleware'][_0x352d2e(0x169)](_0x2b5cc3[_0x352d2e(0x12e)][_0x4b895e]);}(0x0,core_1[_0x352d2e(0x120)])(action_1['ACTION_KEY'],_0x404c10),(0x0,core_1[_0x352d2e(0x150)])(_0x12178b[_0x352d2e(0x13e)],_0x12178b)(_0x404c10),(0x0,core_1['saveClassMetadata'])(action_1[_0x352d2e(0x16e)],{'prefix':_0x12178b[_0x352d2e(0x13e)],'pprefix':_0x3ccaa1[_0x352d2e(0x13e)],'module':_0x3ccaa1[_0x352d2e(0x165)],'filepath':_0x3ccaa1[_0x352d2e(0x156)],'routerOptions':_0x12178b},_0x404c10);}else _0x12178b[_0x352d2e(0x13e)]=_0x12178b['prefix']?'/'+_0x12178b[_0x352d2e(0x13e)]:'/'+_0x3ccaa1[_0x352d2e(0x162)],_0x3ccaa1[_0x352d2e(0x13e)]&&(_0x12178b[_0x352d2e(0x13e)]='/'+_0x3ccaa1[_0x352d2e(0x13e)]+'/'+_0x12178b['prefix']),_0x12178b[_0x352d2e(0x13e)]=_0x12178b[_0x352d2e(0x13e)][_0x352d2e(0x127)]()[_0x352d2e(0x15c)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x352d2e(0x16e)],_0x404c10),(0x0,core_1[_0x352d2e(0x150)])(_0x12178b['prefix'],_0x12178b)(_0x404c10),(0x0,core_1[_0x352d2e(0x13b)])(action_1['ACTION_KEY'],{'prefix':_0x12178b[_0x352d2e(0x13e)],'module':_0x3ccaa1['module'],'pprefix':_0x3ccaa1[_0x352d2e(0x13e)],'filepath':_0x3ccaa1[_0x352d2e(0x156)],'routerOptions':_0x12178b},_0x404c10);};}exports[a3_0x50299e(0x16d)]=Action,Action[a3_0x50299e(0x11f)]=function(_0xf92504,_0x349a31='/',_0x2aee92={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2a3366,_0x3cbae5,_0x2a6158)=>{const _0x1ad231=a3_0x257e;ActionApi(_0xf92504,_0x1ad231(0x11f),_0x349a31,_0x2aee92)(_0x2a3366,_0x3cbae5,_0x2a6158);};},Action[a3_0x50299e(0x152)]=function(_0xbba819,_0x332416='/',_0x1d878f={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2de561,_0xc7c513,_0x4d1b61)=>{const _0xc89919=a3_0x257e;ActionApi(_0xbba819,_0xc89919(0x152),_0x332416,_0x1d878f)(_0x2de561,_0xc7c513,_0x4d1b61);};};function ActionApi(_0x12d434,_0x11697f=a3_0x50299e(0x11f),_0x13d1df='/',_0x20a3ad={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x484044,_0x1a0d75,_0xa26883)=>{const _0x2bb960=a3_0x257e;var _0x43b7ca,_0x381033,_0x24e904;!_0x20a3ad[_0x2bb960(0x12e)]&&(_0x20a3ad[_0x2bb960(0x12e)]=[]);!((_0x43b7ca=_0x20a3ad===null||_0x20a3ad===void 0x0?void 0x0:_0x20a3ad['validate'])===null||_0x43b7ca===void 0x0?void 0x0:_0x43b7ca[_0x2bb960(0x151)])&&(_0x20a3ad[_0x2bb960(0x135)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x2bb960(0x13a)}});if(!_0x13d1df)_0x13d1df='/';else typeof _0x13d1df==_0x2bb960(0x13a)&&(!_0x13d1df[_0x2bb960(0x14e)]('/')&&!_0x13d1df[_0x2bb960(0x14e)]('-')&&(_0x13d1df='/'+_0x13d1df));typeof _0x20a3ad[_0x2bb960(0x147)]==_0x2bb960(0x11e)&&(_0x20a3ad[_0x2bb960(0x147)]=!![]);if(((_0x381033=_0x20a3ad===null||_0x20a3ad===void 0x0?void 0x0:_0x20a3ad[_0x2bb960(0x12e)])===null||_0x381033===void 0x0?void 0x0:_0x381033[_0x2bb960(0x16c)])>0x0&&((_0x24e904=_0x20a3ad===null||_0x20a3ad===void 0x0?void 0x0:_0x20a3ad[_0x2bb960(0x15b)])===null||_0x24e904===void 0x0?void 0x0:_0x24e904['length'])>0x0)for(let _0x118576 in _0x20a3ad[_0x2bb960(0x12e)]){_0x20a3ad[_0x2bb960(0x15b)]['indexOf'](_0x20a3ad[_0x2bb960(0x12e)][_0x118576])!==-0x1&&(_0x20a3ad[_0x2bb960(0x12e)][_0x118576]=null);}_0x20a3ad[_0x2bb960(0x122)]=_0x12d434,(0x0,validator_1[_0x2bb960(0x131)])(_0x20a3ad['validate'])(_0x484044,_0x1a0d75,_0xa26883),(0x0,core_2[_0x2bb960(0x129)])(Object[_0x2bb960(0x164)](_0x20a3ad,{'path':_0x13d1df,'requestMethod':(_0x11697f||_0x2bb960(0x11f))[_0x2bb960(0x127)]()}))(_0x484044,_0x1a0d75,_0xa26883),(0x0,core_2[_0x2bb960(0x144)])(action_1[_0x2bb960(0x12f)],{'path':_0x13d1df,'method':_0x1a0d75,'apimit':_0x20a3ad[_0x2bb960(0x147)],'intercept':_0x20a3ad['intercept'],'routerName':_0x20a3ad[_0x2bb960(0x122)],'description':_0x20a3ad[_0x2bb960(0x124)],'middleware':(_0x20a3ad[_0x2bb960(0x12e)]||[])['filter'](_0x539667=>!!_0x539667),'requestMethod':(_0x11697f||_0x2bb960(0x11f))[_0x2bb960(0x127)]()},_0x484044),(0x0,core_2[_0x2bb960(0x138)])(action_1[_0x2bb960(0x12f)],{'path':_0x13d1df,'method':_0x1a0d75,'apimit':_0x20a3ad[_0x2bb960(0x147)],'intercept':_0x20a3ad['intercept'],'routerName':_0x20a3ad[_0x2bb960(0x122)],'description':_0x20a3ad[_0x2bb960(0x124)],'middleware':(_0x20a3ad['middleware']||[])['filter'](_0x4732f5=>!!_0x4732f5),'requestMethod':(_0x11697f||'get')[_0x2bb960(0x127)]()})(_0x484044,_0x1a0d75,_0xa26883);};}exports['ActionApi']=ActionApi;function parseRoute(_0x24b5a7){const _0x1b1edb=a3_0x50299e;_0x24b5a7=_0x24b5a7[_0x1b1edb(0x15c)](/(\\|\/)/g,'/');const _0x2d9144=process[_0x1b1edb(0x148)]()[_0x1b1edb(0x15c)](/(\\|\/)/g,'/'),_0x5e3cc5=_0x24b5a7[_0x1b1edb(0x16b)](0x0,_0x2d9144[_0x1b1edb(0x16c)]+_0x24b5a7[_0x1b1edb(0x16b)](_0x2d9144['length']+0x1)[_0x1b1edb(0x12d)]('/')+0x1),_0x1b1009=_0x24b5a7[_0x1b1edb(0x16b)](_0x5e3cc5['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x3f480b={'route':'','prefix':![],'module':![],'rootpath':_0x5e3cc5,'filepath':_0x1b1009};if(_0x1b1009[_0x1b1edb(0x14e)](_0x1b1edb(0x171))||_0x1b1009[_0x1b1edb(0x14e)](_0x1b1edb(0x12c))){const _0x13b6bb=_0x1b1009[_0x1b1edb(0x16b)]((_0x1b1009[_0x1b1edb(0x14e)](_0x1b1edb(0x171))?'app/controller/':_0x1b1edb(0x12c))[_0x1b1edb(0x16c)])['split']('/')[_0x1b1edb(0x15d)](_0x4da624=>_0x4da624&&_0x4da624[_0x1b1edb(0x170)]());return _0x13b6bb[_0x1b1edb(0x16c)]>0x1&&(_0x3f480b[_0x1b1edb(0x13e)]=_0x13b6bb[0x0]['toLowerCase'](),_0x13b6bb[_0x1b1edb(0x12a)](0x0,0x1)),_0x3f480b[_0x1b1edb(0x162)]=('/'+_0x13b6bb[_0x1b1edb(0x167)]('/'))[_0x1b1edb(0x15c)](/(\.ts|\.js)$/,'')[_0x1b1edb(0x15c)](/\/{2,}/g,'/')[_0x1b1edb(0x142)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b1edb(0x167)]('-')[_0x1b1edb(0x127)]()[_0x1b1edb(0x15c)](/\/\-/g,'/'),_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x14f)](_0x1b1edb(0x133))&&(_0x3f480b[_0x1b1edb(0x162)]=_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x16b)](0x0,_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x16c)]-0x7)),_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x14f)]('-controller')&&(_0x3f480b[_0x1b1edb(0x162)]=_0x3f480b['route']['substring'](0x0,_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x16c)]-0xb)),_0x3f480b;}else{if(_0x1b1009[_0x1b1edb(0x14e)](_0x1b1edb(0x14b))){const _0xbfa3e6=_0x1b1009[_0x1b1edb(0x16b)](0x0,_0x1b1009['indexOf'](_0x1b1edb(0x154))+0x5),_0x35c955=_0x1b1009['substring'](_0xbfa3e6[_0x1b1edb(0x16c)]+0x1)[_0x1b1edb(0x15c)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x1b1009[_0x1b1edb(0x14e)](_0x1b1edb(0x14b)+_0x35c955+_0x1b1edb(0x16a))){const _0x19a9e4=_0x1b1009['substring']((_0xbfa3e6+'/'+_0x35c955+_0x1b1edb(0x16a))[_0x1b1edb(0x16c)])[_0x1b1edb(0x12b)]('/')[_0x1b1edb(0x15d)](_0x3446f8=>_0x3446f8&&_0x3446f8[_0x1b1edb(0x170)]());return _0x19a9e4[_0x1b1edb(0x16c)]>0x1&&(_0x3f480b[_0x1b1edb(0x13e)]=_0x19a9e4[0x0][_0x1b1edb(0x127)](),_0x19a9e4[_0x1b1edb(0x12a)](0x0,0x1)),_0x3f480b[_0x1b1edb(0x165)]=_0x35c955,_0x3f480b[_0x1b1edb(0x162)]=('/'+_0x35c955+'/'+_0x19a9e4[_0x1b1edb(0x167)]('/'))[_0x1b1edb(0x15c)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x1b1edb(0x167)]('-')[_0x1b1edb(0x127)]()[_0x1b1edb(0x15c)](/\/\-/g,'/'),_0x3f480b['route'][_0x1b1edb(0x14f)](_0x1b1edb(0x133))&&(_0x3f480b['route']=_0x3f480b[_0x1b1edb(0x162)]['substring'](0x0,_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x16c)]-0x7)),_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x14f)](_0x1b1edb(0x16f))&&(_0x3f480b[_0x1b1edb(0x162)]=_0x3f480b[_0x1b1edb(0x162)][_0x1b1edb(0x16b)](0x0,_0x3f480b['route'][_0x1b1edb(0x16c)]-0xb)),_0x3f480b;}throw new Error(_0x1b1009+_0x1b1edb(0x134)+_0x35c955+'/controller/文件下');}}throw new Error(_0x1b1009+_0x1b1edb(0x153));}exports[a3_0x50299e(0x145)]=parseRoute;function a3_0x257e(_0x349606,_0x3d83ad){const _0x2ac66c=a3_0x1391();return a3_0x257e=function(_0x4781fa,_0x14ff36){_0x4781fa=_0x4781fa-0x11d;let _0x139199=_0x2ac66c[_0x4781fa];return _0x139199;},a3_0x257e(_0x349606,_0x3d83ad);}const moduleConfigTmp=(0x0,core_1[a3_0x50299e(0x125)])(action_1[a3_0x50299e(0x123)],action_1['AppsConfigTmp'])||{};function a3_0x1391(){const _0x3a29c7=['module','@midwayjs/core','join','defaultsDeep','push','/controller/','substring','length','Action','ACTION_KEY','-controller','trim','app/controller/','32lgEaAR','undefined','get','saveModule','existsSync','routerName','APPSCONFIG_KEY','description','getClassMetadata','__esModule','toLowerCase','isArray','RequestMapping','splice','split','basic/controller/','indexOf','middleware','ACTION_ROUTE_KEY','975779AScPlq','Validator','@anncic-api/validator','-action','\x20文件请放在apps/','validate','env','toString','createCustomMethodDecorator','apply','string','saveClassMetadata','6EzDryU','MIDWAY_SERVER_ENV','prefix','1083837hOsgVX','/config.','constructor','match','7338sFCVmF','attachClassMetadata','parseRoute','keys','apimit','cwd','311432Wfqabk','4uoefrC','apps/','194885eWhByj','search','startsWith','endsWith','Controller','validationOptions','post','\x20文件请放在app/controller/文件下','/apps/','NODE_ENV','filepath','25290LbbkWx','ActionApi','(((.+)+)+)+$','tagName','middlewareIgnore','replace','filter','26122440rpDdvA','3550QSqvbE','../types/action','rootpath','route','810WFfHnQ','assign'];a3_0x1391=function(){return _0x3a29c7;};return a3_0x1391();}function getModuleConfig(_0x44d400,_0x1cfbf8,_0x41609f){const _0x2d6aca=a3_0x50299e;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x1cfbf8])){let _0x1663e1={};if(NODE_ENV&&fs[_0x2d6aca(0x121)](_0x44d400+'/'+_0x1cfbf8+'/config.'+NODE_ENV+'.'+_0x41609f)){const _0x3d3829=include(_0x44d400+'/'+_0x1cfbf8+_0x2d6aca(0x140)+NODE_ENV+'.'+_0x41609f);Object['keys'](_0x3d3829)[_0x2d6aca(0x16c)]>0x0&&(_0x1663e1=lodash['defaultsDeep'](_0x1663e1,_0x3d3829));}if(fs[_0x2d6aca(0x121)](_0x44d400+'/config.'+_0x41609f)){const _0x3cf8d9=include(_0x44d400+_0x2d6aca(0x140)+_0x41609f);Object[_0x2d6aca(0x146)](_0x3cf8d9)[_0x2d6aca(0x16c)]>0x0&&(_0x1663e1=lodash[_0x2d6aca(0x168)](_0x1663e1,_0x3cf8d9));}moduleConfigTmp[_0x1cfbf8]=_0x1663e1,(0x0,core_1[_0x2d6aca(0x13b)])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x1cfbf8];}
|
|
1
|
+
const a3_0x6db539=a3_0x2bbe;(function(_0x4f9a90,_0x23d5e4){const _0x1c2b0c=a3_0x2bbe,_0x2ba910=_0x4f9a90();while(!![]){try{const _0x4960de=-parseInt(_0x1c2b0c(0xbc))/0x1*(parseInt(_0x1c2b0c(0x9e))/0x2)+parseInt(_0x1c2b0c(0x82))/0x3*(-parseInt(_0x1c2b0c(0xaf))/0x4)+-parseInt(_0x1c2b0c(0xb5))/0x5+parseInt(_0x1c2b0c(0x9a))/0x6+-parseInt(_0x1c2b0c(0x76))/0x7*(-parseInt(_0x1c2b0c(0x7f))/0x8)+-parseInt(_0x1c2b0c(0x80))/0x9*(-parseInt(_0x1c2b0c(0x81))/0xa)+parseInt(_0x1c2b0c(0x73))/0xb*(parseInt(_0x1c2b0c(0x71))/0xc);if(_0x4960de===_0x23d5e4)break;else _0x2ba910['push'](_0x2ba910['shift']());}catch(_0x501018){_0x2ba910['push'](_0x2ba910['shift']());}}}(a3_0x3c56,0xcade2));const a3_0x444732=(function(){let _0x25231e=!![];return function(_0x247a85,_0x559d1b){const _0x475cc8=_0x25231e?function(){const _0x3152ed=a3_0x2bbe;if(_0x559d1b){const _0x4e7fce=_0x559d1b[_0x3152ed(0x7b)](_0x247a85,arguments);return _0x559d1b=null,_0x4e7fce;}}:function(){};return _0x25231e=![],_0x475cc8;};}()),a3_0x2e311b=a3_0x444732(this,function(){const _0x24c74a=a3_0x2bbe;return a3_0x2e311b[_0x24c74a(0x94)]()[_0x24c74a(0xa1)]('(((.+)+)+)+$')[_0x24c74a(0x94)]()[_0x24c74a(0x83)](a3_0x2e311b)[_0x24c74a(0xa1)](_0x24c74a(0xbf));});a3_0x2e311b();function a3_0x2bbe(_0x5b5e56,_0x2b320d){const _0x2da8e1=a3_0x3c56();return a3_0x2bbe=function(_0x2e311b,_0x444732){_0x2e311b=_0x2e311b-0x6f;let _0x3c56d5=_0x2da8e1[_0x2e311b];return _0x3c56d5;},a3_0x2bbe(_0x5b5e56,_0x2b320d);}function a3_0x3c56(){const _0x518b8d=['264aqCtqN','/apps/','__esModule','env','apimit','/controller/文件下','4293055pSbOCe','/controller/','saveClassMetadata','-controller','join','-action','ACTION_KEY','677rxzueW','@anncic-api/validator','saveModule','(((.+)+)+)+$','validate','prefix','getClassMetadata','../types/action','basic/controller/','splice','627084cnBwNU','indexOf','363LdBnXE','APPSCONFIG_KEY','NODE_ENV','7wUvxhT','parseRoute','rootpath','ACTION_ROUTE_KEY','trim','apply','Validator','toLowerCase','split','1626448pHnOfp','8116803zqSCQb','10rNBXzB','16728AuyoRH','constructor','startsWith','existsSync','filepath','replace','middlewareIgnore','substring','middleware','@midwayjs/core','/config.','routerName','endsWith','AppsConfigTmp','apps/','Controller','filter','module','toString','createCustomMethodDecorator','get','assign','keys','RequestMapping','1854528XUtfFN','\x20文件请放在apps/','tagName','length','3194AHilcH','isArray','app/controller/','search','defaultsDeep','match','route','intercept','cwd','description','Action','undefined','/apps','validationOptions','defineProperty','attachClassMetadata','string'];a3_0x3c56=function(){return _0x518b8d;};return a3_0x3c56();}'use strict';var _a,_b;Object[a3_0x6db539(0xac)](exports,a3_0x6db539(0xb1),{'value':!![]}),exports[a3_0x6db539(0xa8)]=Action,exports['ActionApi']=ActionApi,exports[a3_0x6db539(0x77)]=parseRoute;const fs=require('fs'),validator_1=require(a3_0x6db539(0xbd)),core_1=require(a3_0x6db539(0x8b)),core_2=require('@midwayjs/core'),action_1=require(a3_0x6db539(0xc3)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x6db539(0xb2)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a3_0x6db539(0x75)]);function Action(_0x1e41e2,_0x5ce79f,_0x421b3f={'middleware':[],'sensitive':!![]}){return _0x4602b7=>{const _0x15a94e=a3_0x2bbe;var _0x3866b2;_0x421b3f[_0x15a94e(0x9c)]=_0x5ce79f;const _0x5ca9ef=parseRoute(_0x1e41e2);if(_0x5ca9ef['module']){_0x421b3f['prefix']=_0x421b3f[_0x15a94e(0xc1)]?'/'+_0x5ca9ef['module']+'/'+_0x421b3f[_0x15a94e(0xc1)]:'/'+_0x5ca9ef[_0x15a94e(0xa4)];_0x5ca9ef['prefix']&&(_0x421b3f[_0x15a94e(0xc1)]='/'+_0x5ca9ef[_0x15a94e(0xc1)]+'/'+_0x421b3f[_0x15a94e(0xc1)]);_0x421b3f[_0x15a94e(0xc1)]=_0x421b3f[_0x15a94e(0xc1)][_0x15a94e(0x7d)]()['replace'](/\/{2,}/g,'/');const _0x122a19=getModuleConfig(_0x5ca9ef[_0x15a94e(0x78)]+_0x15a94e(0xaa),_0x5ca9ef[_0x15a94e(0x93)],lodash[_0x15a94e(0x8e)](_0x5ca9ef[_0x15a94e(0x86)],'ts')?'ts':'js');if(lodash[_0x15a94e(0x9f)](_0x122a19[_0x15a94e(0x8a)])&&_0x122a19['middleware'][_0x15a94e(0x9d)]>0x0)for(let _0x449d9b in _0x122a19['middleware']){if(((_0x3866b2=_0x122a19===null||_0x122a19===void 0x0?void 0x0:_0x122a19[_0x15a94e(0x88)])===null||_0x3866b2===void 0x0?void 0x0:_0x3866b2['length'])>0x0&&_0x122a19[_0x15a94e(0x88)][_0x15a94e(0x72)](_0x122a19[_0x15a94e(0x8a)][_0x449d9b])!=-0x1)continue;_0x421b3f[_0x15a94e(0x8a)]['push'](_0x122a19[_0x15a94e(0x8a)][_0x449d9b]);}(0x0,core_1['saveModule'])(action_1[_0x15a94e(0xbb)],_0x4602b7),(0x0,core_1[_0x15a94e(0x91)])(_0x421b3f[_0x15a94e(0xc1)],_0x421b3f)(_0x4602b7),(0x0,core_1[_0x15a94e(0xb7)])(action_1[_0x15a94e(0xbb)],{'prefix':_0x421b3f['prefix'],'pprefix':_0x5ca9ef['prefix'],'module':_0x5ca9ef['module'],'filepath':_0x5ca9ef[_0x15a94e(0x86)],'routerOptions':_0x421b3f},_0x4602b7);}else _0x421b3f[_0x15a94e(0xc1)]=_0x421b3f[_0x15a94e(0xc1)]?'/'+_0x421b3f[_0x15a94e(0xc1)]:'/'+_0x5ca9ef['route'],_0x5ca9ef[_0x15a94e(0xc1)]&&(_0x421b3f['prefix']='/'+_0x5ca9ef[_0x15a94e(0xc1)]+'/'+_0x421b3f[_0x15a94e(0xc1)]),_0x421b3f['prefix']=_0x421b3f['prefix'][_0x15a94e(0x7d)]()[_0x15a94e(0x87)](/\/{2,}/g,'/'),(0x0,core_1[_0x15a94e(0xbe)])(action_1[_0x15a94e(0xbb)],_0x4602b7),(0x0,core_1[_0x15a94e(0x91)])(_0x421b3f[_0x15a94e(0xc1)],_0x421b3f)(_0x4602b7),(0x0,core_1[_0x15a94e(0xb7)])(action_1[_0x15a94e(0xbb)],{'prefix':_0x421b3f[_0x15a94e(0xc1)],'module':_0x5ca9ef[_0x15a94e(0x93)],'pprefix':_0x5ca9ef[_0x15a94e(0xc1)],'filepath':_0x5ca9ef[_0x15a94e(0x86)],'routerOptions':_0x421b3f},_0x4602b7);};}Action['get']=function(_0x71fa63,_0x2b73c3='/',_0x1b4d58={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x349f8d,_0x70562b,_0x4a4ffe)=>{const _0x53e612=a3_0x2bbe;ActionApi(_0x71fa63,_0x53e612(0x96),_0x2b73c3,_0x1b4d58)(_0x349f8d,_0x70562b,_0x4a4ffe);};},Action['post']=function(_0x52b3f6,_0x14fff6='/',_0x570197={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1881e4,_0x15c7cd,_0x260b15)=>{ActionApi(_0x52b3f6,'post',_0x14fff6,_0x570197)(_0x1881e4,_0x15c7cd,_0x260b15);};};function ActionApi(_0x387bd0,_0x5d936e=a3_0x6db539(0x96),_0x4f83f0='/',_0x3b9244={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x63bca8,_0x19c721,_0x2f787a)=>{const _0x1d0bf7=a3_0x2bbe;var _0x21e6ea,_0x5a2e2e,_0x439fa7;!_0x3b9244['middleware']&&(_0x3b9244[_0x1d0bf7(0x8a)]=[]);!((_0x21e6ea=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244[_0x1d0bf7(0xc0)])===null||_0x21e6ea===void 0x0?void 0x0:_0x21e6ea[_0x1d0bf7(0xab)])&&(_0x3b9244[_0x1d0bf7(0xc0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x1d0bf7(0xae)}});if(!_0x4f83f0)_0x4f83f0='/';else typeof _0x4f83f0==_0x1d0bf7(0xae)&&(!_0x4f83f0[_0x1d0bf7(0x84)]('/')&&!_0x4f83f0['startsWith']('-')&&(_0x4f83f0='/'+_0x4f83f0));typeof _0x3b9244[_0x1d0bf7(0xb3)]==_0x1d0bf7(0xa9)&&(_0x3b9244[_0x1d0bf7(0xb3)]=!![]);if(((_0x5a2e2e=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244[_0x1d0bf7(0x8a)])===null||_0x5a2e2e===void 0x0?void 0x0:_0x5a2e2e[_0x1d0bf7(0x9d)])>0x0&&((_0x439fa7=_0x3b9244===null||_0x3b9244===void 0x0?void 0x0:_0x3b9244['middlewareIgnore'])===null||_0x439fa7===void 0x0?void 0x0:_0x439fa7['length'])>0x0)for(let _0x1271d5 in _0x3b9244[_0x1d0bf7(0x8a)]){_0x3b9244[_0x1d0bf7(0x88)][_0x1d0bf7(0x72)](_0x3b9244[_0x1d0bf7(0x8a)][_0x1271d5])!==-0x1&&(_0x3b9244['middleware'][_0x1271d5]=null);}_0x3b9244['routerName']=_0x387bd0,(0x0,validator_1[_0x1d0bf7(0x7c)])(_0x3b9244['validate'])(_0x63bca8,_0x19c721,_0x2f787a),(0x0,core_2[_0x1d0bf7(0x99)])(Object[_0x1d0bf7(0x97)](_0x3b9244,{'path':_0x4f83f0,'requestMethod':(_0x5d936e||'get')[_0x1d0bf7(0x7d)]()}))(_0x63bca8,_0x19c721,_0x2f787a),(0x0,core_2[_0x1d0bf7(0xad)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x4f83f0,'method':_0x19c721,'apimit':_0x3b9244[_0x1d0bf7(0xb3)],'intercept':_0x3b9244['intercept'],'routerName':_0x3b9244[_0x1d0bf7(0x8d)],'description':_0x3b9244[_0x1d0bf7(0xa7)],'middleware':(_0x3b9244[_0x1d0bf7(0x8a)]||[])['filter'](_0x5e69b7=>!!_0x5e69b7),'requestMethod':(_0x5d936e||'get')[_0x1d0bf7(0x7d)]()},_0x63bca8),(0x0,core_2[_0x1d0bf7(0x95)])(action_1[_0x1d0bf7(0x79)],{'path':_0x4f83f0,'method':_0x19c721,'apimit':_0x3b9244['apimit'],'intercept':_0x3b9244[_0x1d0bf7(0xa5)],'routerName':_0x3b9244[_0x1d0bf7(0x8d)],'description':_0x3b9244[_0x1d0bf7(0xa7)],'middleware':(_0x3b9244[_0x1d0bf7(0x8a)]||[])[_0x1d0bf7(0x92)](_0x4cd860=>!!_0x4cd860),'requestMethod':(_0x5d936e||_0x1d0bf7(0x96))[_0x1d0bf7(0x7d)]()})(_0x63bca8,_0x19c721,_0x2f787a);};}function parseRoute(_0x4fb32a){const _0x5c455c=a3_0x6db539;_0x4fb32a=_0x4fb32a[_0x5c455c(0x87)](/(\\|\/)/g,'/');const _0xd78a0f=process[_0x5c455c(0xa6)]()['replace'](/(\\|\/)/g,'/'),_0x390fde=_0x4fb32a[_0x5c455c(0x89)](0x0,_0xd78a0f['length']+_0x4fb32a[_0x5c455c(0x89)](_0xd78a0f[_0x5c455c(0x9d)]+0x1)[_0x5c455c(0x72)]('/')+0x1),_0x260103=_0x4fb32a[_0x5c455c(0x89)](_0x390fde[_0x5c455c(0x9d)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x5896af={'route':'','prefix':![],'module':![],'rootpath':_0x390fde,'filepath':_0x260103};if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0xa0))||_0x260103[_0x5c455c(0x84)](_0x5c455c(0x6f))){const _0x182a40=_0x260103[_0x5c455c(0x89)]((_0x260103['startsWith']('app/controller/')?_0x5c455c(0xa0):_0x5c455c(0x6f))[_0x5c455c(0x9d)])[_0x5c455c(0x7e)]('/')[_0x5c455c(0x92)](_0x3e3e32=>_0x3e3e32&&_0x3e3e32[_0x5c455c(0x7a)]());return _0x182a40[_0x5c455c(0x9d)]>0x1&&(_0x5896af[_0x5c455c(0xc1)]=_0x182a40[0x0][_0x5c455c(0x7d)](),_0x182a40[_0x5c455c(0x70)](0x0,0x1)),_0x5896af[_0x5c455c(0xa4)]=('/'+_0x182a40[_0x5c455c(0xb9)]('/'))[_0x5c455c(0x87)](/(\.ts|\.js)$/,'')[_0x5c455c(0x87)](/\/{2,}/g,'/')[_0x5c455c(0xa3)](/[\/|A-Z]*[^A-Z]+/g)[_0x5c455c(0xb9)]('-')[_0x5c455c(0x7d)]()[_0x5c455c(0x87)](/\/\-/g,'/'),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)]('-action')&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x89)](0x0,_0x5896af['route'][_0x5c455c(0x9d)]-0x7)),_0x5896af['route'][_0x5c455c(0x8e)]('-controller')&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x89)](0x0,_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x9d)]-0xb)),_0x5896af;}else{if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0x90))){const _0x52583c=_0x260103[_0x5c455c(0x89)](0x0,_0x260103['indexOf'](_0x5c455c(0xb0))+0x5),_0x5a04ee=_0x260103[_0x5c455c(0x89)](_0x52583c[_0x5c455c(0x9d)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x5c455c(0x7e)]('/')[0x0];if(_0x260103[_0x5c455c(0x84)](_0x5c455c(0x90)+_0x5a04ee+_0x5c455c(0xb6))){const _0x25d4dc=_0x260103[_0x5c455c(0x89)]((_0x52583c+'/'+_0x5a04ee+_0x5c455c(0xb6))[_0x5c455c(0x9d)])['split']('/')['filter'](_0xec1ec2=>_0xec1ec2&&_0xec1ec2[_0x5c455c(0x7a)]());return _0x25d4dc[_0x5c455c(0x9d)]>0x1&&(_0x5896af[_0x5c455c(0xc1)]=_0x25d4dc[0x0][_0x5c455c(0x7d)](),_0x25d4dc[_0x5c455c(0x70)](0x0,0x1)),_0x5896af[_0x5c455c(0x93)]=_0x5a04ee,_0x5896af[_0x5c455c(0xa4)]=('/'+_0x5a04ee+'/'+_0x25d4dc['join']('/'))[_0x5c455c(0x87)](/(\.ts|\.js)$/,'')[_0x5c455c(0x87)](/\/{2,}/g,'/')[_0x5c455c(0xa3)](/[\/|A-Z]*[^A-Z]+/g)[_0x5c455c(0xb9)]('-')[_0x5c455c(0x7d)]()[_0x5c455c(0x87)](/\/\-/g,'/'),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)](_0x5c455c(0xba))&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af['route']['substring'](0x0,_0x5896af['route'][_0x5c455c(0x9d)]-0x7)),_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x8e)](_0x5c455c(0xb8))&&(_0x5896af[_0x5c455c(0xa4)]=_0x5896af[_0x5c455c(0xa4)]['substring'](0x0,_0x5896af[_0x5c455c(0xa4)][_0x5c455c(0x9d)]-0xb)),_0x5896af;}throw new Error(_0x260103+_0x5c455c(0x9b)+_0x5a04ee+_0x5c455c(0xb4));}}throw new Error(_0x260103+'\x20文件请放在app/controller/文件下');}const moduleConfigTmp=(0x0,core_1[a3_0x6db539(0xc2)])(action_1[a3_0x6db539(0x74)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x45ed5e,_0x48a312,_0x2b8c08){const _0x3c0cb9=a3_0x6db539;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x48a312])){let _0x3caa66={};if(NODE_ENV&&fs[_0x3c0cb9(0x85)](_0x45ed5e+'/'+_0x48a312+_0x3c0cb9(0x8c)+NODE_ENV+'.'+_0x2b8c08)){const _0x82cfe8=include(_0x45ed5e+'/'+_0x48a312+'/config.'+NODE_ENV+'.'+_0x2b8c08);Object[_0x3c0cb9(0x98)](_0x82cfe8)[_0x3c0cb9(0x9d)]>0x0&&(_0x3caa66=lodash[_0x3c0cb9(0xa2)](_0x3caa66,_0x82cfe8));}if(fs[_0x3c0cb9(0x85)](_0x45ed5e+'/config.'+_0x2b8c08)){const _0x396ec1=include(_0x45ed5e+_0x3c0cb9(0x8c)+_0x2b8c08);Object[_0x3c0cb9(0x98)](_0x396ec1)[_0x3c0cb9(0x9d)]>0x0&&(_0x3caa66=lodash[_0x3c0cb9(0xa2)](_0x3caa66,_0x396ec1));}moduleConfigTmp[_0x48a312]=_0x3caa66,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1[_0x3c0cb9(0x8f)]);}return moduleConfigTmp[_0x48a312];}
|
|
@@ -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
|
+
const a4_0x463ca8=a4_0x168d;(function(_0x573dc3,_0x5cb8fd){const _0x10ad40=a4_0x168d,_0x9ac08d=_0x573dc3();while(!![]){try{const _0x5b42da=-parseInt(_0x10ad40(0x1a8))/0x1+parseInt(_0x10ad40(0x1b4))/0x2+-parseInt(_0x10ad40(0x1b6))/0x3*(parseInt(_0x10ad40(0x1bb))/0x4)+-parseInt(_0x10ad40(0x1b7))/0x5*(parseInt(_0x10ad40(0x1b3))/0x6)+-parseInt(_0x10ad40(0x1b5))/0x7+-parseInt(_0x10ad40(0x1ba))/0x8*(-parseInt(_0x10ad40(0x19e))/0x9)+parseInt(_0x10ad40(0x1a0))/0xa*(parseInt(_0x10ad40(0x19f))/0xb);if(_0x5b42da===_0x5cb8fd)break;else _0x9ac08d['push'](_0x9ac08d['shift']());}catch(_0x2b807a){_0x9ac08d['push'](_0x9ac08d['shift']());}}}(a4_0x41d6,0x56cef));const a4_0x226e10=(function(){let _0x2ef7d7=!![];return function(_0x22e776,_0x22f65e){const _0x2c1a56=_0x2ef7d7?function(){if(_0x22f65e){const _0x39dace=_0x22f65e['apply'](_0x22e776,arguments);return _0x22f65e=null,_0x39dace;}}:function(){};return _0x2ef7d7=![],_0x2c1a56;};}()),a4_0x36d7b9=a4_0x226e10(this,function(){const _0xe733db=a4_0x168d;return a4_0x36d7b9[_0xe733db(0x1b1)]()[_0xe733db(0x1af)](_0xe733db(0x1ad))[_0xe733db(0x1b1)]()['constructor'](a4_0x36d7b9)[_0xe733db(0x1af)](_0xe733db(0x1ad));});function a4_0x168d(_0x320aa7,_0x22028a){const _0xdb0bab=a4_0x41d6();return a4_0x168d=function(_0x36d7b9,_0x226e10){_0x36d7b9=_0x36d7b9-0x19e;let _0x41d641=_0xdb0bab[_0x36d7b9];return _0x41d641;},a4_0x168d(_0x320aa7,_0x22028a);}a4_0x36d7b9();'use strict';function a4_0x41d6(){const _0x5eadb5=['(((.+)+)+)+$','ApitestService','search','apitest','toString','@midwayjs/core','24NkVMDA','768606qSSLqV','3720318EdUgeV','463461MbALDv','559905FQwczq','getAsync','getApplicationContext','3259312QqJDRv','4oFwQLs','filepath','REQUEST_OBJ_CTX_KEY','9dxSgyx','814dtdDfG','111590fhNWsf','get','../service/ApitestService','Apitest','/apitest','getConfig','RequestMapping','MidwayEnvironmentService','128031ecHQeq','apidoc','isDevelopmentEnvironment','app','defineProperty'];a4_0x41d6=function(){return _0x5eadb5;};return a4_0x41d6();}Object[a4_0x463ca8(0x1ac)](exports,'__esModule',{'value':!![]}),exports[a4_0x463ca8(0x1a3)]=Apitest;const core_1=require(a4_0x463ca8(0x1b2)),ApitestService_1=require(a4_0x463ca8(0x1a2));function Apitest(_0x4edf0b=a4_0x463ca8(0x1a4),_0x24cd72){return(_0x346ccb,_0x3a4011,_0x10b616)=>{const _0x4eceae=a4_0x168d;return(0x0,core_1[_0x4eceae(0x1a6)])({'path':_0x4edf0b,'requestMethod':_0x4eceae(0x1a1)})(_0x346ccb,_0x3a4011,_0x10b616),_0x10b616['value']=async function(..._0x516565){const _0x1dff22=_0x4eceae;var _0x51806a;const _0x5f306a=(_0x51806a=this[core_1[_0x1dff22(0x1bd)]])===null||_0x51806a===void 0x0?void 0x0:_0x51806a[_0x1dff22(0x1ab)];if(_0x5f306a&&_0x5f306a[_0x1dff22(0x1a5)](_0x1dff22(0x1b0))){const _0x5b4d92=await _0x5f306a[_0x1dff22(0x1b9)]()['getAsync'](ApitestService_1[_0x1dff22(0x1ae)]),_0x364bce=await _0x5f306a[_0x1dff22(0x1b9)]()[_0x1dff22(0x1b8)](core_1[_0x1dff22(0x1a7)]);return _0x364bce[_0x1dff22(0x1aa)]()&&(_0x24cd72[_0x1dff22(0x1bc)]=!![]),await _0x5b4d92[_0x1dff22(0x1a9)](_0x24cd72);}return'';},_0x10b616;};}
|
|
@@ -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_0x2c4c4c=a5_0x6460;function a5_0x6460(_0xd0ac8a,_0x909631){const _0x1baafd=a5_0x3fff();return a5_0x6460=function(_0x51de83,_0xdd1d5a){_0x51de83=_0x51de83-0x1bd;let _0x3fff56=_0x1baafd[_0x51de83];return _0x3fff56;},a5_0x6460(_0xd0ac8a,_0x909631);}(function(_0x208e7c,_0x27b659){const _0x49fd56=a5_0x6460,_0x4012c5=_0x208e7c();while(!![]){try{const _0x3ea451=parseInt(_0x49fd56(0x1d3))/0x1+parseInt(_0x49fd56(0x1cd))/0x2+parseInt(_0x49fd56(0x1bd))/0x3+-parseInt(_0x49fd56(0x1c2))/0x4*(-parseInt(_0x49fd56(0x1c0))/0x5)+-parseInt(_0x49fd56(0x1cb))/0x6+-parseInt(_0x49fd56(0x1d0))/0x7+-parseInt(_0x49fd56(0x1ca))/0x8*(parseInt(_0x49fd56(0x1c5))/0x9);if(_0x3ea451===_0x27b659)break;else _0x4012c5['push'](_0x4012c5['shift']());}catch(_0x3bacb3){_0x4012c5['push'](_0x4012c5['shift']());}}}(a5_0x3fff,0x34eeb));const a5_0xdd1d5a=(function(){let _0x4cbdcc=!![];return function(_0x1a9035,_0xfbd66d){const _0x2532bc=_0x4cbdcc?function(){const _0x17e74e=a5_0x6460;if(_0xfbd66d){const _0x2e7ebb=_0xfbd66d[_0x17e74e(0x1c8)](_0x1a9035,arguments);return _0xfbd66d=null,_0x2e7ebb;}}:function(){};return _0x4cbdcc=![],_0x2532bc;};}()),a5_0x51de83=a5_0xdd1d5a(this,function(){const _0x22798c=a5_0x6460;return a5_0x51de83[_0x22798c(0x1bf)]()[_0x22798c(0x1c3)](_0x22798c(0x1be))[_0x22798c(0x1bf)]()['constructor'](a5_0x51de83)['search'](_0x22798c(0x1be));});a5_0x51de83();'use strict';Object['defineProperty'](exports,a5_0x2c4c4c(0x1d4),{'value':!![]}),exports[a5_0x2c4c4c(0x1d5)]=void 0x0,exports['Intercept']=Intercept;const core_1=require(a5_0x2c4c4c(0x1c9)),intercept_1=require(a5_0x2c4c4c(0x1c1));function a5_0x3fff(){const _0x52a25c=['apply','@midwayjs/core','517112dfFXkY','248970uYYxcf','Scope','639736cHbHtH','InterceptTargetTmp','push','711060ENwqSi','match','Provide','328363zaNYMX','__esModule','IIntercept','Singleton','1057623UKPTly','(((.+)+)+)+$','toString','6880KKdsPB','../types/intercept','16gnrbJH','search','isArray','90stjqcq','getClassMetadata','ScopeEnum'];a5_0x3fff=function(){return _0x52a25c;};return a5_0x3fff();}function Intercept(_0x23d270){return _0xf32a3c=>{const _0x18785d=a5_0x6460,_0x889340=(0x0,core_1[_0x18785d(0x1c6)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x18785d(0x1ce)])||{};for(let _0x475522 of Array[_0x18785d(0x1c4)](_0x23d270)?_0x23d270:[_0x23d270]){_0x475522=_0x475522['toUpperCase']();!(_0x889340===null||_0x889340===void 0x0?void 0x0:_0x889340[_0x475522])&&(_0x889340[_0x475522]=[]);if(_0x889340[_0x475522]['includes'](_0xf32a3c))continue;_0x889340[_0x475522][_0x18785d(0x1cf)](_0xf32a3c);}(0x0,core_1[_0x18785d(0x1d2)])()(_0xf32a3c),(0x0,core_1[_0x18785d(0x1cc)])(core_1[_0x18785d(0x1c7)][_0x18785d(0x1d6)])(_0xf32a3c),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x889340,intercept_1[_0x18785d(0x1ce)]);};}class IIntercept{async[a5_0x2c4c4c(0x1d1)](_0xb33dca,_0x154f84,_0x5ec079){return!![];}}exports[a5_0x2c4c4c(0x1d5)]=IIntercept;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
static readonly
|
|
4
|
-
static readonly
|
|
5
|
-
static readonly
|
|
6
|
-
static readonly
|
|
7
|
-
static readonly
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export declare class ApiError extends AnnError {
|
|
2
|
+
static readonly TIMEOUT = 102403;
|
|
3
|
+
static readonly HEADERS_LACK = 102002;
|
|
4
|
+
static readonly HEADERS_DEVICE = 102003;
|
|
5
|
+
static readonly HEADERS_SIGNATURE = 102004;
|
|
6
|
+
static readonly HEADERS_CHECKCODE = 102005;
|
|
7
|
+
static readonly TIMEOUT_LOGINTIME = 102006;
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a6_0x544d(){var _0x31b132=['decorate','登录超时,请重新登录','(((.+)+)+)+$','18yFuAMV','请使用正确的设备','1537587WqKEOR','257146KYJZdG','search','HEADERS_SIGNATURE','metadata','10zwcrcF','2637548pPIMDV','__esModule','HEADERS_LACK','constructor','9979732HCiktn','2rrvBSZ','6252156WxFqCr','TIMEOUT','signature验证失败','验证失败,请重新登录','defineProperty','TIMEOUT_LOGINTIME','object','apply','__metadata','design:type','__decorate','HEADERS_DEVICE','getOwnPropertyDescriptor','653870waFRZs','请求头信息不完整','function','4059328GQOFge','ApiError'];a6_0x544d=function(){return _0x31b132;};return a6_0x544d();}var a6_0x1ee3f7=a6_0x56da;(function(_0x2a89f1,_0x169d26){var _0x511f04=a6_0x56da,_0x3fb16f=_0x2a89f1();while(!![]){try{var _0x44337b=-parseInt(_0x511f04(0x174))/0x1+parseInt(_0x511f04(0x17e))/0x2*(parseInt(_0x511f04(0x173))/0x3)+parseInt(_0x511f04(0x179))/0x4*(-parseInt(_0x511f04(0x178))/0x5)+parseInt(_0x511f04(0x17f))/0x6+parseInt(_0x511f04(0x17d))/0x7+-parseInt(_0x511f04(0x16c))/0x8+parseInt(_0x511f04(0x171))/0x9*(-parseInt(_0x511f04(0x169))/0xa);if(_0x44337b===_0x169d26)break;else _0x3fb16f['push'](_0x3fb16f['shift']());}catch(_0x404ced){_0x3fb16f['push'](_0x3fb16f['shift']());}}}(a6_0x544d,0xbb0a9));var a6_0xc14a64=(function(){var _0x11dcab=!![];return function(_0x354b99,_0x251785){var _0x3d6cd9=_0x11dcab?function(){var _0x416286=a6_0x56da;if(_0x251785){var _0x11b9e6=_0x251785[_0x416286(0x186)](_0x354b99,arguments);return _0x251785=null,_0x11b9e6;}}:function(){};return _0x11dcab=![],_0x3d6cd9;};}()),a6_0x117bc1=a6_0xc14a64(this,function(){var _0x3ce354=a6_0x56da;return a6_0x117bc1['toString']()[_0x3ce354(0x175)](_0x3ce354(0x170))['toString']()[_0x3ce354(0x17c)](a6_0x117bc1)[_0x3ce354(0x175)](_0x3ce354(0x170));});function a6_0x56da(_0x311a6a,_0x130700){var _0x4b85c2=a6_0x544d();return a6_0x56da=function(_0x117bc1,_0xc14a64){_0x117bc1=_0x117bc1-0x165;var _0x544d2a=_0x4b85c2[_0x117bc1];return _0x544d2a;},a6_0x56da(_0x311a6a,_0x130700);}a6_0x117bc1();'use strict';var __decorate=this&&this[a6_0x1ee3f7(0x166)]||function(_0x5b8dd7,_0x5647e5,_0x49cc98,_0x3e4759){var _0x279ade=a6_0x1ee3f7,_0x1e5ca6=arguments['length'],_0x3dbda5=_0x1e5ca6<0x3?_0x5647e5:_0x3e4759===null?_0x3e4759=Object[_0x279ade(0x168)](_0x5647e5,_0x49cc98):_0x3e4759,_0x131f93;if(typeof Reflect===_0x279ade(0x185)&&typeof Reflect[_0x279ade(0x16e)]===_0x279ade(0x16b))_0x3dbda5=Reflect['decorate'](_0x5b8dd7,_0x5647e5,_0x49cc98,_0x3e4759);else{for(var _0x478d31=_0x5b8dd7['length']-0x1;_0x478d31>=0x0;_0x478d31--)if(_0x131f93=_0x5b8dd7[_0x478d31])_0x3dbda5=(_0x1e5ca6<0x3?_0x131f93(_0x3dbda5):_0x1e5ca6>0x3?_0x131f93(_0x5647e5,_0x49cc98,_0x3dbda5):_0x131f93(_0x5647e5,_0x49cc98))||_0x3dbda5;}return _0x1e5ca6>0x3&&_0x3dbda5&&Object['defineProperty'](_0x5647e5,_0x49cc98,_0x3dbda5),_0x3dbda5;},__metadata=this&&this[a6_0x1ee3f7(0x187)]||function(_0x334c01,_0x97674c){var _0x4b7a93=a6_0x1ee3f7;if(typeof Reflect===_0x4b7a93(0x185)&&typeof Reflect[_0x4b7a93(0x177)]===_0x4b7a93(0x16b))return Reflect[_0x4b7a93(0x177)](_0x334c01,_0x97674c);};Object[a6_0x1ee3f7(0x183)](exports,a6_0x1ee3f7(0x17a),{'value':!![]}),exports[a6_0x1ee3f7(0x16d)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x1ee3f7(0x16d)]=ApiError,ApiError[a6_0x1ee3f7(0x180)]=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a6_0x1ee3f7(0x167)]=0x18e73,ApiError[a6_0x1ee3f7(0x176)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a6_0x1ee3f7(0x184)]=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a6_0x1ee3f7(0x165),Object)],ApiError,a6_0x1ee3f7(0x180),void 0x0),__decorate([AnnErrorMsg(a6_0x1ee3f7(0x16a)),__metadata('design:type',Object)],ApiError,a6_0x1ee3f7(0x17b),void 0x0),__decorate([AnnErrorMsg(a6_0x1ee3f7(0x172)),__metadata(a6_0x1ee3f7(0x165),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x1ee3f7(0x181)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a6_0x1ee3f7(0x182)),__metadata(a6_0x1ee3f7(0x165),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x1ee3f7(0x16f)),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0);
|
|
@@ -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
|
-
const
|
|
1
|
+
const a7_0x201701=a7_0x1d44;(function(_0x34945c,_0x1ed207){const _0x3fc3cb=a7_0x1d44,_0x54212e=_0x34945c();while(!![]){try{const _0x2d69e8=-parseInt(_0x3fc3cb(0x1f6))/0x1*(-parseInt(_0x3fc3cb(0x1e8))/0x2)+-parseInt(_0x3fc3cb(0x1e6))/0x3*(-parseInt(_0x3fc3cb(0x1e5))/0x4)+parseInt(_0x3fc3cb(0x1e4))/0x5+parseInt(_0x3fc3cb(0x1ed))/0x6+-parseInt(_0x3fc3cb(0x1e2))/0x7+-parseInt(_0x3fc3cb(0x1e3))/0x8*(parseInt(_0x3fc3cb(0x1ef))/0x9)+parseInt(_0x3fc3cb(0x1eb))/0xa*(-parseInt(_0x3fc3cb(0x1ea))/0xb);if(_0x2d69e8===_0x1ed207)break;else _0x54212e['push'](_0x54212e['shift']());}catch(_0xf0d5b7){_0x54212e['push'](_0x54212e['shift']());}}}(a7_0x1874,0x65727));const a7_0x41fe11=(function(){let _0x2c2ff1=!![];return function(_0x5c4e4d,_0x2f7bd0){const _0x1a9708=_0x2c2ff1?function(){const _0x287745=a7_0x1d44;if(_0x2f7bd0){const _0xad24a=_0x2f7bd0[_0x287745(0x1f8)](_0x5c4e4d,arguments);return _0x2f7bd0=null,_0xad24a;}}:function(){};return _0x2c2ff1=![],_0x1a9708;};}()),a7_0xa0520d=a7_0x41fe11(this,function(){const _0x2edce5=a7_0x1d44;return a7_0xa0520d[_0x2edce5(0x1ee)]()[_0x2edce5(0x1f0)](_0x2edce5(0x1f7))['toString']()[_0x2edce5(0x1f1)](a7_0xa0520d)[_0x2edce5(0x1f0)](_0x2edce5(0x1f7));});function a7_0x1874(){const _0x44c433=['../types/action','APPSCONFIG_KEY','536585FwUzGo','(((.+)+)+)+$','apply','@midwayjs/core','1070797XQxYDx','129608nLSKUx','578710pcifrI','1710036VYpyoU','3TmCxRQ','getClassMetadata','2qrHIUc','getAppsConfig','48389urDSTu','2860zrBxQn','get','4577862OCuvoS','toString','9XEJeyD','search','constructor','defineProperty','__esModule'];a7_0x1874=function(){return _0x44c433;};return a7_0x1874();}a7_0xa0520d();'use strict';function a7_0x1d44(_0x3d1353,_0x30370b){const _0x20f4dd=a7_0x1874();return a7_0x1d44=function(_0xa0520d,_0x41fe11){_0xa0520d=_0xa0520d-0x1e2;let _0x18742=_0x20f4dd[_0xa0520d];return _0x18742;},a7_0x1d44(_0x3d1353,_0x30370b);}Object[a7_0x201701(0x1f2)](exports,a7_0x201701(0x1f3),{'value':!![]}),exports[a7_0x201701(0x1e9)]=getAppsConfig;const core_1=require(a7_0x201701(0x1f9)),action_1=require(a7_0x201701(0x1f4));function getAppsConfig(_0x8581ce){const _0x41ac20=a7_0x201701,_0x2602f7=(0x0,core_1[_0x41ac20(0x1e7)])(action_1[_0x41ac20(0x1f5)],action_1['AppsConfigTmp'])||{};return _0x8581ce?lodash[_0x41ac20(0x1ec)](_0x2602f7,_0x8581ce):_0x2602f7;}
|
|
@@ -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): {};
|