送礼给房主
```javascript
return ctx.request('/api/giftConfigs').then(res=>res.data.list).then(gifts=>{
let datas = gifts.map(g=>{g.img = 'https://shengjian-1258861966.image.myqcloud.com/gift/' + g.img;return g})
return ctx.select({
datas,
props: {
name: 'name',
image: 'img'
}
}).then(item=>{
let gift = item.option
return ctx.getRoomInfo().then(info=>{
return {
"msgBody": {
"tip": "",
"giftInfo": {
"receiver": info.seats.master.user.nickname,
"receiverId": info.seats.master.user._id,
...gift
},
"messageId": Date.now() + '',
"msgTime": Date.now(),
"userInfo": ctx.user,
"messageType": 2,
"isPrivate": false
},
"roomid": ctx.room._id,
"cmd": "roomMsg",
}
})
})
})
```