@@ -101,7 +101,7 @@ module.exports = app => {
if (accountData.wx_openid || ctx.session.wechatToken.openid === accountData.wx_openid) {
throw '该账号已经绑定过微信';
}
- const wxAccountData = await ctx.service.projectAccount.getDataByCondition({ wx_openid: ctx.session.wechatToken.openid });
+ const wxAccountData = await ctx.service.projectAccount.getDataByCondition({ project_id: accountData.project_id, wx_openid: ctx.session.wechatToken.openid });
if (wxAccountData) {
throw '该微信号已绑定过本项目账号';