q-koa 13.0.2 → 13.0.3

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.
@@ -1,5 +1,7 @@
1
1
  const axios = require('axios')
2
2
  const { lodash } = require('q-koa')
3
+ const { push } = require('../plugins/log/service')
4
+
3
5
  const send_url = 'http://wuliu.market.alicloudapi.com/kdi'
4
6
  module.exports = class Singleton {
5
7
  constructor(config) {
@@ -36,6 +38,10 @@ module.exports = class Singleton {
36
38
  throw new Error(result.msg)
37
39
  }
38
40
  } catch (e) {
41
+ push({
42
+ appName: 'express',
43
+ message: '物流服务暂不可用',
44
+ })
39
45
  throw new Error('物流服务暂不可用')
40
46
  }
41
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {