|
@@ -145,10 +145,9 @@ Page({
|
|
|
for (let i = 0; i < value.photo.length; i++) {
|
|
for (let i = 0; i < value.photo.length; i++) {
|
|
|
value.photo[i] = res[i].fileID
|
|
value.photo[i] = res[i].fileID
|
|
|
}
|
|
}
|
|
|
- value = util.msgToDb(value)
|
|
|
|
|
return wx.cloud.callFunction({
|
|
return wx.cloud.callFunction({
|
|
|
name: 'createMessage',
|
|
name: 'createMessage',
|
|
|
- data: value
|
|
|
|
|
|
|
+ data: util.msgToDb(value)
|
|
|
})
|
|
})
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
wx.hideLoading()
|
|
wx.hideLoading()
|