云数据库在真机中获取数据始终失败,在开发工具没问题

发布于 7 年前作者 kyan1924 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

对云数据库’songs’collection使用get方法获取,始终超时

使用count计算个数没有问题。

其它对’test’collection使用get无问题

  • 预期表现

正常获取

  • 复现路径

  • 提供一个最简复现 Demo

```

Page({

  onLoad() {

    const db = getApp().globalData.db

    db.collection(‘songs’).get({

      success(res) {

        console.log(res)

      },

      fail(err) {

        console.error(err)

      }

    })

  }

})

```

0 回复
暂无回复