mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
fix: ticket service
This commit is contained in:
parent
f626acc0aa
commit
4a9367158b
@ -65,7 +65,7 @@ class TicketController extends Controller
|
|||||||
abort(500, '消息不能为空');
|
abort(500, '消息不能为空');
|
||||||
}
|
}
|
||||||
$ticketService = new TicketService();
|
$ticketService = new TicketService();
|
||||||
$ticketService->replayByAdmin(
|
$ticketService->replyByAdmin(
|
||||||
$request->input('id'),
|
$request->input('id'),
|
||||||
$request->input('message'),
|
$request->input('message'),
|
||||||
$request->session()->get('id')
|
$request->session()->get('id')
|
||||||
|
@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Cache;
|
|||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class TicketService {
|
class TicketService {
|
||||||
public function replayByAdmin($ticketId, $message, $userId):void
|
public function replyByAdmin($ticketId, $message, $userId):void
|
||||||
{
|
{
|
||||||
$ticket = Ticket::where('id', $ticketId)
|
$ticket = Ticket::where('id', $ticketId)
|
||||||
->first();
|
->first();
|
||||||
|
Loading…
Reference in New Issue
Block a user