小程序端的云函数更新数据时条件where这样后未更新数据,是何原因?(云端测试成功的)

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

  //功能根据保健号(数字型)修改预约的日期、时间和预订日期

  updateapp: function (strid,strxq,strsj,strrq) {

      wx.cloud.callFunction({

      name: ‘updateapp’,

      where: {

        healthcode: strid,

      },

      data: {       

        appointweek: strxq,

        appointtime: strsj,

        appdate: strrq

      },     

      success: function (res){

        console.log(res)

      }, fail: function (res) {

        console.log(res)

      }

    })

  },

1 回复
uqiu
uqiu1 楼5 年前

小程序端的data值设为云端data的参数就行,