cgserver 6.9.468 → 6.9.471
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Request = void 0;
|
|
4
|
-
const
|
|
4
|
+
const url_1 = require("url");
|
|
5
5
|
const Core_1 = require("../../Core/Core");
|
|
6
6
|
const Log_1 = require("../../Logic/Log");
|
|
7
7
|
class Request {
|
|
@@ -142,20 +142,22 @@ class Request {
|
|
|
142
142
|
let firstQuoteIndex = path.indexOf("?");
|
|
143
143
|
let preQuoteStr = path;
|
|
144
144
|
if (firstQuoteIndex > 0) {
|
|
145
|
-
preQuoteStr = path.
|
|
145
|
+
preQuoteStr = path.substring(0, firstQuoteIndex);
|
|
146
146
|
}
|
|
147
147
|
let lastDotIndex = preQuoteStr.lastIndexOf(".");
|
|
148
148
|
if (lastDotIndex > 0) {
|
|
149
|
-
let dotStr = preQuoteStr.
|
|
149
|
+
let dotStr = preQuoteStr.substring(lastDotIndex + 1);
|
|
150
150
|
this._suffix = dotStr;
|
|
151
151
|
this._file_url = preQuoteStr;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
let quote_index = path.indexOf("?");
|
|
155
155
|
if (quote_index >= 0) {
|
|
156
|
-
let
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
let url = new url_1.URL(path);
|
|
157
|
+
url.searchParams.forEach((value, name, searchParams) => {
|
|
158
|
+
this._params[name] = value;
|
|
159
|
+
});
|
|
160
|
+
path = path.substring(0, quote_index);
|
|
159
161
|
}
|
|
160
162
|
let params = path.split("/");
|
|
161
163
|
let default_module = false;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MongoConfig } from "../Database/MongoManager";
|
|
2
|
+
import { RpcConfig } from "../ThirdParty/Rpc";
|
|
2
3
|
import { Config } from "./Config";
|
|
3
4
|
export declare enum ESessionType {
|
|
4
5
|
Cache = 0,
|
|
@@ -218,6 +219,7 @@ export declare class FrameworkConfig extends Config {
|
|
|
218
219
|
apple: {
|
|
219
220
|
keyIds: {};
|
|
220
221
|
};
|
|
222
|
+
cgmq: RpcConfig;
|
|
221
223
|
};
|
|
222
224
|
ip_to_domain: {};
|
|
223
225
|
root_path: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cgserver",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.471",
|
|
4
4
|
"author": "trojan",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "free for all.Websocket or Http",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@types/websocket": "^1.0.4",
|
|
49
49
|
"alipay_sdk2": "^1.1.6",
|
|
50
50
|
"alipay-sdk": "^3.1.7",
|
|
51
|
+
"cgserver": "^6.9.468",
|
|
51
52
|
"colors": "^1.4.0",
|
|
52
53
|
"cookie-parser": "^1.4.5",
|
|
53
54
|
"cors": "^2.8.5",
|