Firebase 验证基本整数比较在模拟器中失败

Firebase validation basic integer comparison fails in simulator

我使用 firebase 有一段时间了,但从未使用过验证 属性 直到现在,我不明白为什么这个简单的验证失败的原因(尝试了几种变体以及 [=17= 中的 '0' ])

有什么想法吗?

您需要在互斥锁路径下输入通配符。

{
  "rules": {
    ".read": true,
    ".write": true,
      "selenium_tasks":{
        "mutexes":{
          "$mutex":{
            ".validate": "newData.val() == 0",
          }
        }
      }
  }
}

更多信息:Firebase Security