This commit is contained in:
root 2019-12-13 16:36:20 +08:00
parent 2614ae7b33
commit 31f69782c1

View File

@ -4,6 +4,7 @@ namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\User;
use App\Models\Ticket;
use App\Models\TicketMessage;
use Illuminate\Support\Facades\Redis;
@ -25,6 +26,7 @@ class TicketController extends Controller
$ticket['message'][$i]['is_me'] = false;
}
}
$ticket['user'] = User::find($ticket->user_id);
return response([
'data' => $ticket
]);