q-koa 7.9.5 → 7.9.6

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.
@@ -331,7 +331,6 @@ exports.checkLogin = async (ctx) => {
331
331
  const token = await app.sign({
332
332
  user: tokenResult,
333
333
  })
334
- console.log('app.appConfig.loginData', app.appConfig.loginData)
335
334
  return ctx.SUCCESS({
336
335
  token,
337
336
  user: app.appConfig.loginData
@@ -174,11 +174,11 @@ exports.getPhone = async (ctx) => {
174
174
  exports.mp_getPhoneNew = async (ctx) => {
175
175
  const { app, appName } = getAppByCtx(ctx)
176
176
 
177
- const { code } = ctx.request.body
177
+ const { code, config = 'weixin_mp' } = ctx.request.body
178
178
 
179
179
  const user_id = ctx.request[appName + '-user'].id
180
180
  const appConfig = getConfig(app)
181
- const { app_id, app_secrect } = await appConfig.getObject('weixin_mp')
181
+ const { app_id, app_secrect } = await appConfig.getObject(config)
182
182
 
183
183
  const weixinMp = new WeixinMp({
184
184
  appid: app_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "7.9.5",
3
+ "version": "7.9.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {