|
@@ -162,7 +162,7 @@ class MessageService extends BaseService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$where = ['a.status' => 1, 'a.mark' => 1];
|
|
$where = ['a.status' => 1, 'a.mark' => 1];
|
|
|
- $field = ['a.id', 'a.msg_type','a.chat_key','a.live_id', 'a.description', 'a.message', 'a.from_uid', 'a.to_uid', 'a.create_time', 'a.status'];
|
|
|
|
|
|
|
+ $field = ['a.id', 'a.msg_type','a.chat_key','a.live_id', 'a.description', 'a.message','b.nickname', 'a.from_uid', 'a.to_uid', 'a.create_time', 'a.status'];
|
|
|
$datas = LiveChatModel::from('live_chat as a')
|
|
$datas = LiveChatModel::from('live_chat as a')
|
|
|
->leftJoin('member as b', 'b.id', '=', 'a.from_uid')
|
|
->leftJoin('member as b', 'b.id', '=', 'a.from_uid')
|
|
|
->leftJoin('member as c', 'c.id', '=', 'a.to_uid')
|
|
->leftJoin('member as c', 'c.id', '=', 'a.to_uid')
|