我尝试在Firebase上设置规则,如果uid(abc_x)=== $ account(abc_y),它可以读取数据并且每个人都可以插入,更新数据。但是,当我使用交易时,它会报告"错误:permission_denied"
public Observable<Response> getData(final Request request) {
return dataService.getDataFromNetwork(request)
.publish(networkResponse -> Observable.merge(networkResponse, dataService.getDataFromStorage(request).takeUntil(networkResponse)))
.onErrorResumeNext(dataService.getDataFromStorage(request);
}