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.
@@ -103,7 +103,7 @@ class AllinPay {
103
103
 
104
104
  async request(url, params) {
105
105
  const _params = new URLSearchParams()
106
- Object.keys(params).forEach((key, value) => {
106
+ Object.keys(params).forEach((key) => {
107
107
  _params.append(key, params[key])
108
108
  })
109
109
  try {
@@ -33,6 +33,6 @@ module.exports = class Config {
33
33
  }
34
34
 
35
35
  update() {
36
- this.app.cache.set('configList', null)
36
+ this.app.cache && this.app.cache.set('configList', null)
37
37
  }
38
38
  }
@@ -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(options)
618
+ return await this.handleTyping({ touser, is_typing })
618
619
  }
619
620
  throw new Error(`${result.errcode};${result.errmsg}`)
620
621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "13.8.7",
3
+ "version": "13.8.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {