云开发中数据库 使用 set 出现问题

发布于 8 年前作者 jing287659 次浏览最后编辑 8 年前来自 ask

在 小程序中 使用以下代码时  其中的     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 回复
bcheng
bcheng1 楼6 年前

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

jie16
jie162 楼6 年前

顶起。。。。。。。。。