Pārlūkot izejas kodu

fix(weapp): 更新错误信息,包含 unionid 以便于调试

lanjianrong 1 mēnesi atpakaļ
vecāks
revīzija
758fedd486
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/service/weapp.js

+ 1 - 1
app/service/weapp.js

@@ -110,7 +110,7 @@ module.exports = app => {
                     }
                     }
                 }
                 }
                 if (pList.length === 0) {
                 if (pList.length === 0) {
-                    throw `该微信号未绑定任何项目: ${openid}`;
+                    throw `该微信号未绑定任何项目: ${openid}; ${unionid}`;
                 }
                 }
 
 
                 // 2. 生成 access_token + refresh_token
                 // 2. 生成 access_token + refresh_token