|
@@ -1,5 +1,6 @@
|
|
<?php
|
|
<?php
|
|
namespace App\Admin\Actions\Chat;
|
|
namespace App\Admin\Actions\Chat;
|
|
|
|
+use App\Models\ChatList;
|
|
use App\Repositories\ImMessage;
|
|
use App\Repositories\ImMessage;
|
|
use App\Services\TencentImMessage;
|
|
use App\Services\TencentImMessage;
|
|
use Dcat\Admin\Grid;
|
|
use Dcat\Admin\Grid;
|
|
@@ -10,8 +11,9 @@ class ChatLog extends LazyRenderable
|
|
|
|
|
|
public function grid(): Grid
|
|
public function grid(): Grid
|
|
{
|
|
{
|
|
|
|
+ $chat_data = ChatList::query()->find($this->payload['id']);
|
|
|
|
|
|
- return Grid::make(new ImMessage(1,2), 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('user_id', 'ID')->sortable();
|
|
$grid->column('nickname');
|
|
$grid->column('nickname');
|
|
$grid->column('created_at');
|
|
$grid->column('created_at');
|