wx2tg-puppet 3.0.6 → 3.0.7
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.
|
@@ -53,7 +53,7 @@ function detectProtocolVersion() {
|
|
|
53
53
|
protocolDetected = true;
|
|
54
54
|
try {
|
|
55
55
|
const resp = yield exports.axiosInstance.get('/Tools/Version');
|
|
56
|
-
if (((_a = resp.data) === null || _a === void 0 ? void 0 : _a.Code) === 0 && ((_b = resp.data) === null || _b === void 0 ? void 0 : _b.Success) && ((_c = resp.data) === null || _c === void 0 ? void 0 : _c.Data)) {
|
|
56
|
+
if (((_a = resp.data) === null || _a === void 0 ? void 0 : _a.Code) === 0 && ((_b = resp.data) === null || _b === void 0 ? void 0 : _b.Success) && String(((_c = resp.data) === null || _c === void 0 ? void 0 : _c.Data) || '') !== '857') {
|
|
57
57
|
newProtocol = true;
|
|
58
58
|
console.log(`检测到新协议版本: ${resp.data.Data}`);
|
|
59
59
|
return true;
|