This commit is contained in:
root 2019-12-13 16:40:54 +08:00
parent da01ec7dd7
commit 025f96cae5

View File

@ -29,6 +29,7 @@ class TicketController extends Controller
$ticket['user'] = User::select([
'email'
])->find($ticket->user_id);
$ticket['avatar_url'] = 'https://cdn.v2ex.com/gravatar/' . md5($ticket['user']->email) . '?s=64&d=identicon';
return response([
'data' => $ticket
]);