同样的问题 + 1
textarea,bindlinechange监听lineCount与实际不对?textarea,设置auto-height="true"自动换行,当输入内容超过一行时,bindlinechange没触发到;当输入三行内容时触发了,但lineCount显示2;就是永远与实际少一行
2021-11-08+1
signature calculated is different from遇到一个问题,是在云函数端的错误。 代码是这样的,在云函数端更改一个数据记录。 [代码]var[代码] [代码]handleGoods =[代码][代码]function[代码][代码](goods,storenum){[代码][代码] [代码][代码]var[代码] [代码]_ = db.command;[代码][代码] [代码][代码]return[代码] [代码]db.collection([代码][代码]'goods'[代码][代码]).doc(goods._id).update({[代码][代码] [代码][代码]data:{[代码][代码] [代码][代码]store_num:_.inc(storenum*-1),[代码][代码] [代码][代码]sale_num:_.inc(storenum)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码]}[代码] 结果是 [代码]Error: errCode: -501001 resource system error | errMsg: signature calculated is different from client signature; [代码][代码] [代码][代码]at new CloudSDKError ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/wx-server-sdk/index[代码][代码].js:4332:28)[代码][代码] [代码][代码]at Object.returnAsCloudSDKError ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/wx-server-sdk/index[代码][代码].js:4384:16)[代码][代码] [代码][代码]at Object.checkError ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/wx-server-sdk/index[代码][代码].js:1401:23)[代码][代码] [代码][代码]at DocumentReference.<anonymous> ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/wx-server-sdk/index[代码][代码].js:1334:41)[代码][代码] [代码][代码]at step ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/tslib/tslib[代码][代码].js:133:27)[代码][代码] [代码][代码]at Object.next ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/tslib/tslib[代码][代码].js:114:57)[代码][代码] [代码][代码]at fulfilled ([代码][代码]/Users/skymxc/Documents/project/WeChat/shop/cloudfunctions/handleOrder/node_modules/tslib/tslib[代码][代码].js:104:62)[代码][代码] [代码][代码]at <anonymous>[代码][代码] [代码][代码]at process._tickCallback (internal[代码][代码]/process/next_tick[代码][代码].js:188:7)[代码] 返回的错误是 [代码]signature calculated is different from client signature;[代码] 签名和客户端不同 因为是在云函数端,也不存在权限问题吧。很是不解。 有没有大神帮忙看一下子,万分感谢。
2019-09-16