最新版本

This commit is contained in:
2026-05-26 09:44:21 +08:00
parent 822ed9a099
commit fa41edf857
24 changed files with 597 additions and 163 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace app\index\controller;
use app\BaseController;
use app\index\service\ClientTicketService;
use think\facade\Session;
class ClientTicket extends BaseController
{
/**
* 获取客户关联工单
*/
public function getClientTickets(ClientTicketService $ClientTicketService)
{
$clientId = Session::get('user_info.id'); // 获取当前登录客户ID
try {
$tickets = $ClientTicketService->getClientTickets($clientId);
return json(['code' => 200, 'msg' => '获取成功', 'data' => $tickets]);
} catch (\Exception $e) {
return json(['code' => 400, 'msg' => $e->getMessage(), 'data' => null]);
}
}
}