Преглед изворни кода

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

lanjianrong пре 2 дана
родитељ
комит
758fedd486
1 измењених фајлова са 1 додато и 1 уклоњено
  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