q-koa 13.8.6 → 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
|
}
|
|
@@ -1193,9 +1194,7 @@ module.exports = class Singleton {
|
|
|
1193
1194
|
if (result.errcode) {
|
|
1194
1195
|
if (result.errcode === 40001) {
|
|
1195
1196
|
cache.clear()
|
|
1196
|
-
return await this.b2bPreStore(
|
|
1197
|
-
retail_info_list: list,
|
|
1198
|
-
})
|
|
1197
|
+
return await this.b2bPreStore(list)
|
|
1199
1198
|
}
|
|
1200
1199
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
1201
1200
|
}
|
|
@@ -1242,7 +1241,7 @@ module.exports = class Singleton {
|
|
|
1242
1241
|
if (result.errcode) {
|
|
1243
1242
|
if (result.errcode === 40001) {
|
|
1244
1243
|
cache.clear()
|
|
1245
|
-
return await this.b2bSendMessage(
|
|
1244
|
+
return await this.b2bSendMessage({ type, to_user_list, data })
|
|
1246
1245
|
}
|
|
1247
1246
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
1248
1247
|
}
|