q-koa 13.8.7 → 13.8.8
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.
|
@@ -20,8 +20,6 @@ WXBizDataCrypt.prototype.decryptData = function (encryptedData, iv) {
|
|
|
20
20
|
decoded += decipher.final('utf8')
|
|
21
21
|
|
|
22
22
|
decoded = JSON.parse(decoded)
|
|
23
|
-
|
|
24
|
-
return decoded
|
|
25
23
|
} catch (err) {
|
|
26
24
|
throw new Error('系统开小差了,请重试')
|
|
27
25
|
}
|
|
@@ -29,6 +27,8 @@ WXBizDataCrypt.prototype.decryptData = function (encryptedData, iv) {
|
|
|
29
27
|
if (decoded.watermark.appid !== this.appId) {
|
|
30
28
|
throw new Error('Illegal Buffer')
|
|
31
29
|
}
|
|
30
|
+
|
|
31
|
+
return decoded
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
module.exports = WXBizDataCrypt
|
|
@@ -350,6 +350,7 @@ module.exports = class Singleton {
|
|
|
350
350
|
subAnchorWechat,
|
|
351
351
|
anchorWechat,
|
|
352
352
|
anchorName,
|
|
353
|
+
closeReplay,
|
|
353
354
|
})
|
|
354
355
|
}
|
|
355
356
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -614,7 +615,7 @@ module.exports = class Singleton {
|
|
|
614
615
|
if (result.errcode) {
|
|
615
616
|
if (result.errcode === 40001) {
|
|
616
617
|
cache.clear()
|
|
617
|
-
return await this.handleTyping(
|
|
618
|
+
return await this.handleTyping({ touser, is_typing })
|
|
618
619
|
}
|
|
619
620
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
620
621
|
}
|