| xqd
@@ -11,9 +11,9 @@ class ChatLog extends LazyRenderable
|
|
|
|
|
|
public function grid(): Grid
|
|
|
{
|
|
|
- $chat_data = ChatList::query()->with(['user',"to_user"])->find($this->payload['id']);
|
|
|
+ $chat_data = ChatList::query()->find($this->payload['id']);
|
|
|
|
|
|
- return Grid::make(new ImMessage($chat_data->user->tencent_im_user_id,$chat_data->to_user->tencent_im_user_id), function (Grid $grid) {
|
|
|
+ return Grid::make(new ImMessage($chat_data->user_id,$chat_data->to_user_id), function (Grid $grid) {
|
|
|
$grid->column('user_id', 'ID')->sortable();
|
|
|
$grid->column('nickname');
|
|
|
$grid->column('created_at');
|