云开发中数据库 使用 set 出现问题
发布于 6 年前 作者 jing28 7494 次浏览 来自 问答

在 小程序中 使用以下代码时  其中的     db.serverDate(),   会出问题

set成功后 生成的数据为:

{“options”:{“offset”:0}}

 

db_collection('list').doc(id)


.set({

       data: {
  
         start_time: db.serverDate(),
     
       },
       success(res) {
         //console.log('eee',res.stats.updated); 
       },
       fail() {
       
       }
     });

使用 update 是可以的

不知其中有何奥秘!!!!!!!!!!!!!

2 回复

问题已复现,我们会在后续版本中进行修复。

顶起。。。。。。。。。

回到顶部