草庐IT

HCIA-Cloud_Computing_V

全部标签

firebase - Flutter + Firebase Cloud Functions - 如何从 HttpsCallableResult 获取数据

我编写了一个简单的云函数,它返回一个保存在我的CloudFirestore数据库中的ID。云函数如下所示:exports.getWinkert=functions.https.onCall((data,context)=>{returnadmin.firestore().collection('users').doc('hash').get().then(snapshot=>{constwinkertId=snapshot.wwinkertreturn{id:winkertId};})})此函数是使用以下代码从我的flutter应用中调用的:Future_getValues()asyn

firebase - 用于 Flutter 的 Firestore 上的 Cloud Functions

我对Firestore比较陌生,目前正在尝试在其上构建Flutter应用程序。我遇到了一个障碍,我意识到我必须利用FirestoreCloudFunctions来执行服务器端数据操作。不幸的是,没有很多很棒的资源和视频来描述设置过程(至少对于像我这样的软件开发新手来说是这样)。但是,我找到了这个视频https://www.youtube.com/watch?v=DYfP-UIKxH0介绍了如何使用Typscript设置Firestore应用程序。因此,我有两个问题:为Firestore和Firebase设置编写云函数的环境是否相同?我想用Javascript还是Typescript编写

firebase - 用于 Flutter 的 Firestore 上的 Cloud Functions

我对Firestore比较陌生,目前正在尝试在其上构建Flutter应用程序。我遇到了一个障碍,我意识到我必须利用FirestoreCloudFunctions来执行服务器端数据操作。不幸的是,没有很多很棒的资源和视频来描述设置过程(至少对于像我这样的软件开发新手来说是这样)。但是,我找到了这个视频https://www.youtube.com/watch?v=DYfP-UIKxH0介绍了如何使用Typscript设置Firestore应用程序。因此,我有两个问题:为Firestore和Firebase设置编写云函数的环境是否相同?我想用Javascript还是Typescript编写

firebase - Unicode 字符在 Cloud Firestore 中不起作用

我正在尝试从Cloudfirestore中获取一个unicode格式的字符串,并将其显示在我的flutter应用中。c.10\u{207B}\u{2076}seconds:Hadronepochbegins:Astheuniversecoolstoabout10\u{00B9}\u{2070}kelvin,aquark-hadrontransitiontakesplaceinwhichquarksbindtoformmorecomplexparticles—hadrons.Thisquarkconfinementincludestheformationofprotonsandneutr

firebase - Unicode 字符在 Cloud Firestore 中不起作用

我正在尝试从Cloudfirestore中获取一个unicode格式的字符串,并将其显示在我的flutter应用中。c.10\u{207B}\u{2076}seconds:Hadronepochbegins:Astheuniversecoolstoabout10\u{00B9}\u{2070}kelvin,aquark-hadrontransitiontakesplaceinwhichquarksbindtoformmorecomplexparticles—hadrons.Thisquarkconfinementincludestheformationofprotonsandneutr

firebase - Cloud Firestore 不断重新下载文档 - Flutter

这发生在我的主应用程序中和我用给定的代码实验室复制它:https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html?index=..%2F..index#10import'package:cloud_firestore/cloud_firestore.dart';import'package:flutter/material.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild

firebase - Cloud Firestore 不断重新下载文档 - Flutter

这发生在我的主应用程序中和我用给定的代码实验室复制它:https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html?index=..%2F..index#10import'package:cloud_firestore/cloud_firestore.dart';import'package:flutter/material.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild

firebase - 如何在 Cloud Firestore 中使用 Stream 回调

我有几个问题(我是Dart的新手)w.r.t我在下面找到的代码。我想要达到的目标:1)错误多写在括号内一行。但我收到错误提示“setliteralsweresupportedupto2.2....”。知道可能的错误列表也很好,这样我就可以相应地提醒用户。2)增加一个与文档数量相关的计数器,并将文档ID保存在一个变量中,如果找到多个文档,则覆盖最后一个值。我正在尝试检查是否应该只有一个文档,并在计数器变为2时采取措施。void_checkIfAdmin(){Firestore.instance.collection('Admin').where('Email',isEqualTo:wid

firebase - 如何在 Cloud Firestore 中使用 Stream 回调

我有几个问题(我是Dart的新手)w.r.t我在下面找到的代码。我想要达到的目标:1)错误多写在括号内一行。但我收到错误提示“setliteralsweresupportedupto2.2....”。知道可能的错误列表也很好,这样我就可以相应地提醒用户。2)增加一个与文档数量相关的计数器,并将文档ID保存在一个变量中,如果找到多个文档,则覆盖最后一个值。我正在尝试检查是否应该只有一个文档,并在计数器变为2时采取措施。void_checkIfAdmin(){Firestore.instance.collection('Admin').where('Email',isEqualTo:wid

Spring Cloud Alibaba【OpenFeign实现服务降级、Dubbo实现服务生产者、 Dubbo消费者调用接口 】(三)

目录服务调用_OpenFeign实现服务降级服务调用_Dubbo实现服务生产者 服务调用_Dubbo消费者调用接口 服务调用_OpenFeign实现服务降级引入降级依赖 com.alibaba.cloudspring-cloud-starter-alibaba-sentinel开启openfeign对sentinel支持feign:sentinel:enabled:trueclient:config:default:#⽹络连接阶段1秒超时7connectTimeout:1000#服务请求响应阶段2秒超时readTimeout:2000编写降级类@ComponentpublicclassPaym