收藏
回答

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

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

  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)

      }

    })

  },

回答关注问题邀请回答
收藏

2 个回答

  • 强
    2021-09-02

    写错了吧,where是不是应该放在data里面


    2021-09-02
    有用
    回复
  • 郭松
    郭松
    2020-03-18

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

    2020-03-18
    有用
    回复
登录 后发表内容
问题标签