1

我正在尝试从 Json 获取数据并且它有效。问题是我必须使用至少 2 个不同的 json 文件并将它们合并。

该代码无需任何前缀即可工作

      "https://www.domain.bg/index.php?route=services/products/GetAllCategories"

但我有另一个 json 文件 getArticleDetail&article_id=103

我正在格式化为 endPointUrl

final endPointUrl = "https://www.domain.bg/index.php?route=services/products/"

现在我正在尝试添加前缀

Response res = await get(endPointUrl + "getAllCategories");

但是这个查询不起作用。我记得这个方法在 android 下有效,但在 Flutter 下无效。有什么帮助吗?

4

0 回答 0