Browse Source

Merge branch 'master' of https://git.cthc.top/Pchen0/ic-ctbu-backend

Pchen0 1 week ago
parent
commit
fd55326680
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 '该账号您已绑定'
             }