1
在Firestore安全设置中,您可以设置写入/读取数据的条件。Firestore每次写入访问限制
目前我有这片:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if request.auth != null && request.time <
resource.data.timeCreated + duration.value(1, 'h');
allow write: if request.auth != null;
}
}
}
现在我要限制的写作;用户应该只能每5分钟发送一次数据。我怎样才能做到这一点?
我该怎么做? (对不起,但对我来说非常困难) –