Browse Source

🐞 fix: 尝试修复无法绑定乐跑账号的问题

Pchen. 1 month ago
parent
commit
2cecb9fd68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Lepao/Mcp.js

+ 1 - 1
lib/Lepao/Mcp.js

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