cgserver 5.2.2 → 5.4.0
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/lib/Framework/AI/Astar.js +21 -17
- package/lib/Framework/AI/Astar.js.map +1 -1
- package/lib/Framework/AI/BehaviorAI.js +1 -8
- package/lib/Framework/AI/BehaviorAI.js.map +1 -1
- package/lib/Framework/AI/Entity.js +5 -3
- package/lib/Framework/AI/Entity.js.map +1 -1
- package/lib/Framework/AI/Point.js +2 -2
- package/lib/Framework/AI/Point.js.map +1 -1
- package/lib/Framework/AI/TriggerMgr.js +7 -3
- package/lib/Framework/AI/TriggerMgr.js.map +1 -1
- package/lib/Framework/Config/Config.js +3 -3
- package/lib/Framework/Config/Config.js.map +1 -1
- package/lib/Framework/Config/FrameworkConfig.d.ts +2 -2
- package/lib/Framework/Config/FrameworkConfig.js +198 -197
- package/lib/Framework/Config/FrameworkConfig.js.map +1 -1
- package/lib/Framework/Config/ServerConfig.js +6 -6
- package/lib/Framework/Config/ServerConfig.js.map +1 -1
- package/lib/Framework/Config/_error_.js +24 -23
- package/lib/Framework/Config/_error_.js.map +1 -1
- package/lib/Framework/Core/Core.js +69 -69
- package/lib/Framework/Core/Core.js.map +1 -1
- package/lib/Framework/Core/Timer.js +7 -7
- package/lib/Framework/Core/Timer.js.map +1 -1
- package/lib/Framework/Database/BaseMongoService.d.ts +2 -2
- package/lib/Framework/Database/BaseMongoService.js +14 -17
- package/lib/Framework/Database/BaseMongoService.js.map +1 -1
- package/lib/Framework/Database/BaseService.js +12 -12
- package/lib/Framework/Database/BaseService.js.map +1 -1
- package/lib/Framework/Database/Decorator/DBCache.js +16 -12
- package/lib/Framework/Database/Decorator/DBCache.js.map +1 -1
- package/lib/Framework/Database/Decorator/Property.js +53 -49
- package/lib/Framework/Database/Decorator/Property.js.map +1 -1
- package/lib/Framework/Database/MongoManager.d.ts +2 -1
- package/lib/Framework/Database/MongoManager.js +40 -29
- package/lib/Framework/Database/MongoManager.js.map +1 -1
- package/lib/Framework/Database/MysqlManager.js +32 -26
- package/lib/Framework/Database/MysqlManager.js.map +1 -1
- package/lib/Framework/Database/RedisManager.js +5 -5
- package/lib/Framework/Database/RedisManager.js.map +1 -1
- package/lib/Framework/Logic/CacheTool.js +7 -5
- package/lib/Framework/Logic/CacheTool.js.map +1 -1
- package/lib/Framework/Logic/Log.js +6 -6
- package/lib/Framework/Logic/Log.js.map +1 -1
- package/lib/Framework/Service/AccountService.js +32 -29
- package/lib/Framework/Service/AccountService.js.map +1 -1
- package/lib/Framework/Service/MongoAccountService.js +18 -15
- package/lib/Framework/Service/MongoAccountService.js.map +1 -1
- package/lib/Framework/Service/MongoCacheService.js +6 -3
- package/lib/Framework/Service/MongoCacheService.js.map +1 -1
- package/lib/Framework/Service/MongoUserService.js +23 -20
- package/lib/Framework/Service/MongoUserService.js.map +1 -1
- package/lib/Framework/Service/UserService.js +43 -40
- package/lib/Framework/Service/UserService.js.map +1 -1
- package/lib/Framework/SocketServer/IClientWebSocket.d.ts +1 -1
- package/lib/Framework/SocketServer/IClientWebSocket.js +8 -9
- package/lib/Framework/SocketServer/IClientWebSocket.js.map +1 -1
- package/lib/Framework/SocketServer/IServerWebSocket.d.ts +1 -1
- package/lib/Framework/SocketServer/IServerWebSocket.js +6 -6
- package/lib/Framework/SocketServer/IServerWebSocket.js.map +1 -1
- package/lib/Framework/SocketServer/ISocketServer.d.ts +6 -2
- package/lib/Framework/SocketServer/ISocketServer.js +40 -27
- package/lib/Framework/SocketServer/ISocketServer.js.map +1 -1
- package/lib/Framework/SocketServer/IWebSocket.d.ts +2 -2
- package/lib/Framework/SocketServer/IWebSocket.js +20 -19
- package/lib/Framework/SocketServer/IWebSocket.js.map +1 -1
- package/lib/Framework/SocketServer/ProtoFilter/GoogleProtoFilter.js +4 -2
- package/lib/Framework/SocketServer/ProtoFilter/GoogleProtoFilter.js.map +1 -1
- package/lib/Framework/SocketServer/ProtoFilter/ProtoFactory.js +3 -1
- package/lib/Framework/SocketServer/ProtoFilter/ProtoFactory.js.map +1 -1
- package/lib/Framework/ThirdParty/AlipayTool.js +17 -15
- package/lib/Framework/ThirdParty/AlipayTool.js.map +1 -1
- package/lib/Framework/ThirdParty/Alisms.js +4 -2
- package/lib/Framework/ThirdParty/Alisms.js.map +1 -1
- package/lib/Framework/ThirdParty/AppleTool.js +134 -119
- package/lib/Framework/ThirdParty/AppleTool.js.map +1 -1
- package/lib/Framework/ThirdParty/QQTool.js +22 -21
- package/lib/Framework/ThirdParty/QQTool.js.map +1 -1
- package/lib/Framework/ThirdParty/WechatOATool.js +16 -14
- package/lib/Framework/ThirdParty/WechatOATool.js.map +1 -1
- package/lib/Framework/ThirdParty/WechatTool.js +14 -12
- package/lib/Framework/ThirdParty/WechatTool.js.map +1 -1
- package/lib/Framework/WebServer/Controller/BaseController.js +15 -15
- package/lib/Framework/WebServer/Controller/BaseController.js.map +1 -1
- package/lib/Framework/WebServer/Controller/BaseUserController.js +7 -4
- package/lib/Framework/WebServer/Controller/BaseUserController.js.map +1 -1
- package/lib/Framework/WebServer/Controller/MongoBaseUserController.js +7 -4
- package/lib/Framework/WebServer/Controller/MongoBaseUserController.js.map +1 -1
- package/lib/Framework/WebServer/Decorator/AuthorityValidate.js +1 -2
- package/lib/Framework/WebServer/Decorator/AuthorityValidate.js.map +1 -1
- package/lib/Framework/WebServer/Decorator/JsonAuthorityValidate.js +1 -2
- package/lib/Framework/WebServer/Decorator/JsonAuthorityValidate.js.map +1 -1
- package/lib/Framework/WebServer/Engine/ControllerManager.js +6 -4
- package/lib/Framework/WebServer/Engine/ControllerManager.js.map +1 -1
- package/lib/Framework/WebServer/Engine/Engine.js +8 -8
- package/lib/Framework/WebServer/Engine/Engine.js.map +1 -1
- package/lib/Framework/WebServer/Engine/RazorJs.js +20 -20
- package/lib/Framework/WebServer/Engine/RazorJs.js.map +1 -1
- package/lib/Framework/WebServer/Engine/Request.js +14 -14
- package/lib/Framework/WebServer/Engine/Request.js.map +1 -1
- package/lib/Framework/WebServer/Engine/Response.js +3 -3
- package/lib/Framework/WebServer/Engine/Response.js.map +1 -1
- package/lib/Framework/WebServer/IWebServer.js +3 -1
- package/lib/Framework/WebServer/IWebServer.js.map +1 -1
- package/package.json +1 -1
- package/doc/.nojekyll +0 -1
- package/doc/assets/highlight.css +0 -22
- package/doc/assets/icons.css +0 -1043
- package/doc/assets/icons.png +0 -0
- package/doc/assets/icons@2x.png +0 -0
- package/doc/assets/main.js +0 -52
- package/doc/assets/search.js +0 -1
- package/doc/assets/style.css +0 -1384
- package/doc/assets/widgets.png +0 -0
- package/doc/assets/widgets@2x.png +0 -0
- package/doc/index.html +0 -1
- package/doc/modules.html +0 -1
|
@@ -10,212 +10,213 @@ var ESessionType;
|
|
|
10
10
|
ESessionType[ESessionType["Mongo"] = 2] = "Mongo";
|
|
11
11
|
})(ESessionType = exports.ESessionType || (exports.ESessionType = {}));
|
|
12
12
|
class WebServerConfig {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
13
|
+
constructor() {
|
|
14
|
+
this.cache = {};
|
|
15
|
+
this.session_type = ESessionType.Cache;
|
|
16
|
+
this.debug = false;
|
|
17
|
+
this.web_name = "web";
|
|
18
|
+
this.port = 0;
|
|
19
|
+
this.cookie = {
|
|
20
|
+
prefix: "tiny_cookie_",
|
|
21
|
+
expires: {
|
|
22
|
+
account_remember: 7 * 24 * 60 * 60,
|
|
23
|
+
account: 10 * 60
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
this.routs = {
|
|
27
|
+
/**
|
|
28
|
+
* 如果设置了这一项,那网址里面就不用带模块名称,是不回解析的
|
|
29
|
+
*/
|
|
30
|
+
onlyModule: "Web",
|
|
31
|
+
defaults: { module: "Web", controller: "Index", action: "Index" }
|
|
32
|
+
};
|
|
33
|
+
this.ssl = null;
|
|
34
|
+
//默认不跨域
|
|
35
|
+
this.cors = null;
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
exports.WebServerConfig = WebServerConfig;
|
|
37
39
|
exports.GFCfg = null;
|
|
38
40
|
class FrameworkConfig extends ServerConfig_1.ServerConfig {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
41
|
+
constructor(server_name) {
|
|
42
|
+
super(server_name);
|
|
43
|
+
this.log = {
|
|
44
|
+
cfg: {
|
|
45
|
+
appenders: {
|
|
46
|
+
console: {
|
|
47
|
+
"type": "console",
|
|
48
|
+
"category": "console"
|
|
49
|
+
},
|
|
50
|
+
log_file: {
|
|
51
|
+
category: "log_file",
|
|
52
|
+
type: "file",
|
|
53
|
+
filename: "./logs/log_file/file.log",
|
|
54
|
+
maxLogSize: 10 * 1024 * 1024,
|
|
55
|
+
backups: 100,
|
|
56
|
+
},
|
|
57
|
+
log_date: {
|
|
58
|
+
category: "log_date",
|
|
59
|
+
type: "dateFile",
|
|
60
|
+
filename: "./logs/log_date/date",
|
|
61
|
+
alwaysIncludePattern: true,
|
|
62
|
+
pattern: "yyyy-MM-dd-hh.log"
|
|
63
|
+
},
|
|
64
|
+
client_log_file: {
|
|
65
|
+
category: "log_file",
|
|
66
|
+
type: "file",
|
|
67
|
+
filename: "./logs/client_log_file/file.log",
|
|
68
|
+
maxLogSize: 10 * 1024 * 1024,
|
|
69
|
+
backups: 100,
|
|
70
|
+
},
|
|
71
|
+
client_log_date: {
|
|
72
|
+
category: "log_date",
|
|
73
|
+
type: "dateFile",
|
|
74
|
+
filename: "./logs/client_log_date/date",
|
|
75
|
+
alwaysIncludePattern: true,
|
|
76
|
+
pattern: "yyyy-MM-dd.log"
|
|
77
|
+
},
|
|
78
|
+
error_log_file: {
|
|
79
|
+
category: "error_log_file",
|
|
80
|
+
type: "file",
|
|
81
|
+
filename: "./logs/error_log_file/file.log",
|
|
82
|
+
maxLogSize: 5 * 1024 * 1024,
|
|
83
|
+
backups: 100,
|
|
84
|
+
}
|
|
73
85
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
categories: {
|
|
87
|
+
default: {
|
|
88
|
+
appenders: ['log_date'],
|
|
89
|
+
level: 'ALL'
|
|
90
|
+
},
|
|
91
|
+
console: {
|
|
92
|
+
appenders: ['console'],
|
|
93
|
+
level: 'ALL'
|
|
94
|
+
},
|
|
95
|
+
log_file: {
|
|
96
|
+
appenders: ['log_file'],
|
|
97
|
+
level: 'ALL'
|
|
98
|
+
},
|
|
99
|
+
log_date: {
|
|
100
|
+
appenders: ['log_date'],
|
|
101
|
+
level: 'ALL'
|
|
102
|
+
},
|
|
103
|
+
client_log_file: {
|
|
104
|
+
appenders: ['client_log_file'],
|
|
105
|
+
level: 'ALL'
|
|
106
|
+
},
|
|
107
|
+
client_log_date: {
|
|
108
|
+
appenders: ['client_log_date'],
|
|
109
|
+
level: 'ALL'
|
|
110
|
+
},
|
|
111
|
+
error_log_file: {
|
|
112
|
+
appenders: ['error_log_file'],
|
|
113
|
+
level: 'ALL'
|
|
114
|
+
},
|
|
80
115
|
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
this.debug_msg = false;
|
|
119
|
+
this.local_host = "127.0.0.1";
|
|
120
|
+
this.internet_host = "127.0.0.1";
|
|
121
|
+
this.db = {
|
|
122
|
+
redis: {
|
|
123
|
+
open: false,
|
|
124
|
+
host: "127.0.0.1",
|
|
125
|
+
port: 6379,
|
|
126
|
+
database: 0,
|
|
127
|
+
password: null
|
|
81
128
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
client_log_file: {
|
|
100
|
-
appenders: ['client_log_file'],
|
|
101
|
-
level: 'ALL'
|
|
102
|
-
},
|
|
103
|
-
client_log_date: {
|
|
104
|
-
appenders: ['client_log_date'],
|
|
105
|
-
level: 'ALL'
|
|
106
|
-
},
|
|
107
|
-
error_log_file: {
|
|
108
|
-
appenders: ['error_log_file'],
|
|
109
|
-
level: 'ALL'
|
|
110
|
-
},
|
|
129
|
+
mongo: {
|
|
130
|
+
open: false,
|
|
131
|
+
host: "www.eryinet.com",
|
|
132
|
+
port: 27017,
|
|
133
|
+
options: null,
|
|
134
|
+
database: 'achat'
|
|
135
|
+
},
|
|
136
|
+
mysql: {
|
|
137
|
+
open: true,
|
|
138
|
+
auto: false,
|
|
139
|
+
host: '127.0.0.1',
|
|
140
|
+
port: 3306,
|
|
141
|
+
user: 'root',
|
|
142
|
+
password: 'root',
|
|
143
|
+
database: 'gameall',
|
|
144
|
+
charset: 'utf8mb4'
|
|
111
145
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
host: "127.0.0.1",
|
|
121
|
-
port: 6379,
|
|
122
|
-
database: 0,
|
|
123
|
-
password: null
|
|
124
|
-
},
|
|
125
|
-
mongo: {
|
|
126
|
-
open: false,
|
|
127
|
-
host: "www.eryinet.com",
|
|
128
|
-
port: 27017,
|
|
129
|
-
user: 'root',
|
|
130
|
-
password: 'root',
|
|
131
|
-
database: 'achat'
|
|
132
|
-
},
|
|
133
|
-
mysql: {
|
|
134
|
-
open: true,
|
|
135
|
-
auto: false,
|
|
136
|
-
host: '127.0.0.1',
|
|
137
|
-
port: 3306,
|
|
138
|
-
user: 'root',
|
|
139
|
-
password: 'root',
|
|
140
|
-
database: 'gameall',
|
|
141
|
-
charset: 'utf8mb4'
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
third_cfg = {
|
|
145
|
-
open_social: {
|
|
146
|
-
app_id: "appid_42313131",
|
|
147
|
-
app_secret: "apps_FDS4342J34JL432",
|
|
148
|
-
auth_url: "http://47.99.195.103:6666/auth/account/",
|
|
149
|
-
user_url: "http://47.99.195.103:6666/auth/userinfo/",
|
|
150
|
-
update_pwd_url: "http://47.99.195.103:6666/auth/updatepwd/"
|
|
151
|
-
},
|
|
152
|
-
aliSms: {
|
|
153
|
-
signName: "而已网络",
|
|
154
|
-
accessKeyId: "LTAIeqjiZ5OCev0B",
|
|
155
|
-
secretAccessKey: "0w1fmDEORshI94QqtampBaAPQDqUAj",
|
|
156
|
-
templateCode: "SMS_154589473"
|
|
157
|
-
},
|
|
158
|
-
qiniu: {
|
|
159
|
-
host: "p0bj0dycx.bkt.clouddn.com",
|
|
160
|
-
bucket: "eryiniuniu",
|
|
161
|
-
accessKey: "OETxflxP9V5ZzPcjE30asCv-YxWBvDpmMPJegtI4",
|
|
162
|
-
secretKey: "kZWsom120P0-cfQt_9_1-wR_X8RwuLeMXKbU_uc4"
|
|
163
|
-
},
|
|
164
|
-
email: {
|
|
165
|
-
host: "smtp.live.com",
|
|
166
|
-
port: 587,
|
|
167
|
-
secure: false,
|
|
168
|
-
auth: {
|
|
169
|
-
user: "chengang01@live.com",
|
|
170
|
-
pass: "cg123!@#" // generated ethereal password
|
|
146
|
+
};
|
|
147
|
+
this.third_cfg = {
|
|
148
|
+
open_social: {
|
|
149
|
+
app_id: "appid_42313131",
|
|
150
|
+
app_secret: "apps_FDS4342J34JL432",
|
|
151
|
+
auth_url: "http://47.99.195.103:6666/auth/account/",
|
|
152
|
+
user_url: "http://47.99.195.103:6666/auth/userinfo/",
|
|
153
|
+
update_pwd_url: "http://47.99.195.103:6666/auth/updatepwd/"
|
|
171
154
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
155
|
+
aliSms: {
|
|
156
|
+
signName: "而已网络",
|
|
157
|
+
accessKeyId: "LTAIeqjiZ5OCev0B",
|
|
158
|
+
secretAccessKey: "0w1fmDEORshI94QqtampBaAPQDqUAj",
|
|
159
|
+
templateCode: "SMS_154589473"
|
|
160
|
+
},
|
|
161
|
+
qiniu: {
|
|
162
|
+
host: "p0bj0dycx.bkt.clouddn.com",
|
|
163
|
+
bucket: "eryiniuniu",
|
|
164
|
+
accessKey: "OETxflxP9V5ZzPcjE30asCv-YxWBvDpmMPJegtI4",
|
|
165
|
+
secretKey: "kZWsom120P0-cfQt_9_1-wR_X8RwuLeMXKbU_uc4"
|
|
166
|
+
},
|
|
167
|
+
email: {
|
|
168
|
+
host: "smtp.live.com",
|
|
169
|
+
port: 587,
|
|
170
|
+
secure: false,
|
|
171
|
+
auth: {
|
|
172
|
+
user: "chengang01@live.com",
|
|
173
|
+
pass: "cg123!@#" // generated ethereal password
|
|
174
|
+
},
|
|
175
|
+
from: "OpenSocial <chengang01@live.com>"
|
|
176
|
+
},
|
|
177
|
+
qq: {
|
|
178
|
+
app_id: "101775753",
|
|
179
|
+
app_key: "753d0f02f3c4093062e7b2f56c7fcb0c",
|
|
180
|
+
redirect_uri: "http://www.eryinet.com/qq/callback"
|
|
181
|
+
},
|
|
182
|
+
wechat: {
|
|
183
|
+
app_id: "wx80f0f10fe1304e9d",
|
|
184
|
+
app_key: "a76fc337c49b309886a6538d31c344e2",
|
|
185
|
+
redirect_uri: "http://www.eryinet.com/wechat/callback"
|
|
186
|
+
},
|
|
187
|
+
alipay: {
|
|
188
|
+
open: false,
|
|
189
|
+
dev: false,
|
|
190
|
+
app_id: "",
|
|
191
|
+
app_key: "",
|
|
192
|
+
gateway: "",
|
|
193
|
+
//RSA1 RSA2
|
|
194
|
+
signType: 'RSA2',
|
|
195
|
+
/** 指定private key类型, 默认: PKCS1, PKCS8: PRIVATE KEY, PKCS1: RSA PRIVATE KEY */
|
|
196
|
+
keyType: 'PKCS1',
|
|
197
|
+
alipay_root_cert_sn: "",
|
|
198
|
+
alipay_cert_sn: "",
|
|
199
|
+
app_cert_sn: "",
|
|
200
|
+
notify_url: "",
|
|
201
|
+
app_id_dev: "",
|
|
202
|
+
app_key_dev: "",
|
|
203
|
+
gateway_dev: "",
|
|
204
|
+
//RSA1 RSA2
|
|
205
|
+
signType_dev: 'RSA2',
|
|
206
|
+
/** 指定private key类型, 默认: PKCS1, PKCS8: PRIVATE KEY, PKCS1: RSA PRIVATE KEY */
|
|
207
|
+
keyType_dev: 'PKCS1',
|
|
208
|
+
alipay_root_cert_sn_dev: "",
|
|
209
|
+
alipay_cert_sn_dev: "",
|
|
210
|
+
app_cert_sn_dev: "",
|
|
211
|
+
notify_url_dev: ""
|
|
212
|
+
},
|
|
213
|
+
apple: {
|
|
214
|
+
keyIds: {}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
//key是ip,value是domain
|
|
218
|
+
this.ip_to_domain = {};
|
|
219
|
+
this.root_path = process.cwd();
|
|
219
220
|
Log_1.GLog.init(this.log.cfg);
|
|
220
221
|
}
|
|
221
222
|
init() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameworkConfig.js","sourceRoot":"","sources":["../../../Framework/Config/FrameworkConfig.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"FrameworkConfig.js","sourceRoot":"","sources":["../../../Framework/Config/FrameworkConfig.ts"],"names":[],"mappings":";;;AACA,sCAAoC;AACpC,iDAA8C;AAC9C,IAAY,YAKX;AALD,WAAY,YAAY;IAEpB,iDAAK,CAAA;IACL,iDAAK,CAAA;IACL,iDAAK,CAAA;AACT,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AACD,MAAa,eAAe;IAA5B;QAEI,UAAK,GAAC,EAAE,CAAA;QACR,iBAAY,GAAC,YAAY,CAAC,KAAK,CAAA;QAC/B,UAAK,GAAC,KAAK,CAAA;QACX,aAAQ,GAAC,KAAK,CAAA;QACd,SAAI,GAAC,CAAC,CAAA;QACN,WAAM,GACN;YACI,MAAM,EAAC,cAAc;YACrB,OAAO,EACP;gBACI,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;gBAClC,OAAO,EAAE,EAAE,GAAG,EAAE;aACnB;SACJ,CAAA;QACD,UAAK,GACL;YACI;;eAEG;YACH,UAAU,EAAC,KAAK;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAC,KAAK,EAAC,UAAU,EAAG,OAAO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AE;gBACd,UAAU,EAAC,EAAE;gBAEb,UAAU,EAAE,EAAE;gBACd,WAAW,EAAC,EAAE;gBACd,WAAW,EAAC,EAAE;gBACd,WAAW;gBACX,YAAY,EAAgB,MAAM;gBAClC,6EAA6E;gBAC7E,WAAW,EAAmB,OAAO;gBACrC,uBAAuB,EAAC,EAAE;gBAC1B,kBAAkB,EAAC,EAAE;gBACrB,eAAe,EAAC,EAAE;gBAClB,cAAc,EAAC,EAAE;aACpB;YACD,KAAK,EACL;gBACI,MAAM,EAAC,EAAE;aACZ;SACJ,CAAA;QACD,qBAAqB;QACrB,iBAAY,GAAC,EAAE,CAAA;QACf,cAAS,GAAC,OAAO,CAAC,GAAG,EAAE,CAAA;QAInB,UAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC;IACD,IAAI;QAEA,IAAI,GAAG,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;QACtB,aAAK,GAAC,IAAI,CAAA;QACV,OAAO,GAAG,CAAA;IACd,CAAC;CACJ;AA9ND,0CA8NC"}
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ServerConfig = void 0;
|
|
4
4
|
const Config_1 = require("./Config");
|
|
5
5
|
class ServerConfig extends Config_1.Config {
|
|
6
|
-
port = -1;
|
|
7
|
-
_server_name = "";
|
|
8
|
-
webserver = null;
|
|
9
|
-
get serverName() {
|
|
10
|
-
return this._server_name;
|
|
11
|
-
}
|
|
12
6
|
constructor(server_name) {
|
|
13
7
|
super("FrameworkConfig");
|
|
8
|
+
this.port = -1;
|
|
9
|
+
this._server_name = "";
|
|
10
|
+
this.webserver = null;
|
|
14
11
|
this._suffix = server_name;
|
|
15
12
|
this._server_name = server_name;
|
|
16
13
|
}
|
|
14
|
+
get serverName() {
|
|
15
|
+
return this._server_name;
|
|
16
|
+
}
|
|
17
17
|
}
|
|
18
18
|
exports.ServerConfig = ServerConfig;
|
|
19
19
|
//# sourceMappingURL=ServerConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerConfig.js","sourceRoot":"","sources":["../../../Framework/Config/ServerConfig.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"ServerConfig.js","sourceRoot":"","sources":["../../../Framework/Config/ServerConfig.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IASpC,YAAY,WAAW;QAEnB,KAAK,CAAC,iBAAiB,CAAC,CAAA;QAT5B,SAAI,GAAC,CAAC,CAAC,CAAA;QACG,iBAAY,GAAC,EAAE,CAAA;QACzB,cAAS,GAAiB,IAAI,CAAA;QAQ1B,IAAI,CAAC,OAAO,GAAC,WAAW,CAAA;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAA;IACnC,CAAC;IATD,IAAI,UAAU;QAEV,OAAO,IAAI,CAAC,YAAY,CAAA;IAC5B,CAAC;CAOJ;AAfD,oCAeC"}
|
|
@@ -6,29 +6,30 @@ exports.EErrorCode = null;
|
|
|
6
6
|
* 1-100
|
|
7
7
|
*/
|
|
8
8
|
class FrameworkErrorCode {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
this.Wrong_Params = { id: 1, des: "参数错误" };
|
|
11
|
+
this.Verify_failed = { id: 2, des: "验证失败" };
|
|
12
|
+
this.Account_Create_Failed = { id: 3, des: "账号创建失败" };
|
|
13
|
+
this.User_Create_Failed = { id: 4, des: "角色创建失败" };
|
|
14
|
+
this.Server_Error = { id: 5, des: "服务器内部错误" };
|
|
15
|
+
this.No_Account = { id: 6, des: "账户不存在" };
|
|
16
|
+
this.Mysql_Error = { id: 7, des: "数据库异常" };
|
|
17
|
+
this.No_Mysql = { id: 8, des: "未开通数据库" };
|
|
18
|
+
this.No_User = { id: 9, des: "用户不存在" };
|
|
19
|
+
this.Account_Phone_Exist = { id: 10, des: "电话已存在" };
|
|
20
|
+
this.Account_Email_Exist = { id: 11, des: "邮箱已存在" };
|
|
21
|
+
this.Account_Name_Exist = { id: 12, des: "账户名已存在" };
|
|
22
|
+
this.Account_Type_Error = { id: 13, des: "账户类型错误" };
|
|
23
|
+
this.Email_Send_Failed = { id: 14, des: "邮件发送失败" };
|
|
24
|
+
this.Login_Failed = { id: 15, des: "登陆验证失败" };
|
|
25
|
+
this.Password_Too_Short = { id: 16, des: "密码太短" };
|
|
26
|
+
this.Wrong_Phone = { id: 17, des: "电话号码不正确" };
|
|
27
|
+
this.PhoneCode_Too_Quick = { id: 18, des: "验证码获取过快,请稍后再试" };
|
|
28
|
+
this.PhoneCode_GetFailed = { id: 19, des: "验证码获取失败" };
|
|
29
|
+
this.Wrong_Phone_Code = { id: 20, des: "验证码不正确" };
|
|
30
|
+
this.No_Mongo = { id: 21, des: "未开通Mongo数据库" };
|
|
31
|
+
this.Mongo_Error = { id: 22, des: "Mongo数据库异常" };
|
|
32
|
+
}
|
|
32
33
|
}
|
|
33
34
|
exports.FrameworkErrorCode = FrameworkErrorCode;
|
|
34
35
|
exports.EErrorCode = new FrameworkErrorCode();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_error_.js","sourceRoot":"","sources":["../../../Framework/Config/_error_.ts"],"names":[],"mappings":";;;AAAW,QAAA,UAAU,GAAqB,IAAI,CAAA;AAC9C;;GAEG;AACH,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"_error_.js","sourceRoot":"","sources":["../../../Fram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