node-easywechat 3.5.4 → 3.5.5
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/CHANGELOG.md +4 -0
- package/dist/Core/Contracts/ServerInterface.d.ts +2 -1
- package/dist/Core/Contracts/ServerInterface.js +2 -1
- package/dist/MiniApp/Application.js +3 -0
- package/dist/OfficialAccount/Application.js +3 -0
- package/dist/OpenPlatform/Application.js +3 -0
- package/dist/OpenWork/Application.js +3 -0
- package/dist/Pay/Application.js +3 -0
- package/dist/Work/Application.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@ import ResponseInterface from "../Http/Contracts/ResponseInterface";
|
|
|
2
2
|
import DecryptXmlMessageMixin from "../Mixins/DecryptXmlMessageMixin";
|
|
3
3
|
import HandlersMixin from "../Mixins/HandlersMixin";
|
|
4
4
|
import ResponseXmlMessageMixin from "../Mixins/ResponseXmlMessageMixin";
|
|
5
|
+
import ServerRequestMixin from "../Mixins/ServerRequestMixin";
|
|
5
6
|
declare abstract class ServerInterface {
|
|
6
7
|
constructor();
|
|
7
8
|
/**
|
|
@@ -9,6 +10,6 @@ declare abstract class ServerInterface {
|
|
|
9
10
|
*/
|
|
10
11
|
serve(): Promise<ResponseInterface>;
|
|
11
12
|
}
|
|
12
|
-
interface ServerInterface extends HandlersMixin, DecryptXmlMessageMixin, ResponseXmlMessageMixin {
|
|
13
|
+
interface ServerInterface extends HandlersMixin, DecryptXmlMessageMixin, ResponseXmlMessageMixin, ServerRequestMixin {
|
|
13
14
|
}
|
|
14
15
|
export = ServerInterface;
|
|
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
const DecryptXmlMessageMixin_1 = __importDefault(require("../Mixins/DecryptXmlMessageMixin"));
|
|
15
15
|
const HandlersMixin_1 = __importDefault(require("../Mixins/HandlersMixin"));
|
|
16
16
|
const ResponseXmlMessageMixin_1 = __importDefault(require("../Mixins/ResponseXmlMessageMixin"));
|
|
17
|
+
const ServerRequestMixin_1 = __importDefault(require("../Mixins/ServerRequestMixin"));
|
|
17
18
|
const Utils_1 = require("../Support/Utils");
|
|
18
19
|
class ServerInterface {
|
|
19
20
|
constructor() {
|
|
@@ -28,5 +29,5 @@ class ServerInterface {
|
|
|
28
29
|
}
|
|
29
30
|
;
|
|
30
31
|
;
|
|
31
|
-
(0, Utils_1.applyMixins)(ServerInterface, [HandlersMixin_1.default, DecryptXmlMessageMixin_1.default, ResponseXmlMessageMixin_1.default]);
|
|
32
|
+
(0, Utils_1.applyMixins)(ServerInterface, [HandlersMixin_1.default, DecryptXmlMessageMixin_1.default, ResponseXmlMessageMixin_1.default, ServerRequestMixin_1.default]);
|
|
32
33
|
module.exports = ServerInterface;
|
|
@@ -77,6 +77,9 @@ class Application {
|
|
|
77
77
|
if (!this.server) {
|
|
78
78
|
this.server = new Server_1.default(this.getRequest(), this.getAccount().getAesKey() ? this.getEncryptor() : null);
|
|
79
79
|
}
|
|
80
|
+
else {
|
|
81
|
+
this.server.setRequest(this.getRequest());
|
|
82
|
+
}
|
|
80
83
|
return this.server;
|
|
81
84
|
}
|
|
82
85
|
/**
|
|
@@ -98,6 +98,9 @@ class Application {
|
|
|
98
98
|
if (!this.server) {
|
|
99
99
|
this.server = new Server_1.default(this.getAccount().getAesKey() ? this.getEncryptor() : null, this.getRequest());
|
|
100
100
|
}
|
|
101
|
+
else {
|
|
102
|
+
this.server.setRequest(this.getRequest());
|
|
103
|
+
}
|
|
101
104
|
return this.server;
|
|
102
105
|
}
|
|
103
106
|
/**
|
package/dist/Pay/Application.js
CHANGED
package/dist/Work/Application.js
CHANGED