q-koa 12.6.2 → 12.6.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.
@@ -291,7 +291,11 @@ exports.mp_login = async (ctx) => {
291
291
  const { openid, unionid } = res
292
292
  if (!openid) {
293
293
  const msg = `找不到openid, errcode:${res.errcode} app_id:${app_id} app_secrect:${app_secrect}`
294
-
294
+ app.service.log.push({
295
+ app,
296
+ appName: `微信登录失败`,
297
+ message: msg,
298
+ })
295
299
  throw new Error('微信登录失败')
296
300
  }
297
301
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.6.2",
3
+ "version": "12.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {