Browse Source

🐞 fix: 修复mcp无法绑定的问题

Pchen. 3 weeks ago
parent
commit
47a5459103
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Lepao/Mcp.js

+ 1 - 1
lib/Lepao/Mcp.js

@@ -72,7 +72,7 @@ class Mcp {
             const rows = await db.query(sql, [bind_code])
             if (!rows || rows.length === 0) return '系统出错,请稍后再试'
 
-            if (rows[0].bot_account !== null) {
+            if (rows[0].bot_account !== null && rows[0].bot_account !== '') {
                 if (rows[0].bot_account !== sender) return '该账号已被他人绑定,请联系客服解绑'
                 return '该账号您已绑定'
             }