云开发 数据库 set 的 bug
发布于 6 年前 作者 fengjie 12003 次浏览 来自 问答

  const db = wx.cloud.database();

    const _ = db.command; 

   

    db.collection('fight_list')

.doc('todo-identifiant-aleatoire')

.set({

      data: {

        description: 'learn cloud database',

        date: db.serverDate(),

        times: _.inc(1), 

      },

      success(res) {

        console.log(res.data)

      }

    })

以上代码

date 字段 出来的不是日期

times 字段 出来的不是 数字

希望 date能是日期  times 能是数字

并且 你们改的时候 连着 云函数端    一起改

不要最后 在小程序端 能用了。。  同样的问题 却还留在  云函数 端

回到顶部