链接不转译

This commit is contained in:
2025-05-14 13:55:51 +08:00
parent e159cb632a
commit cad30582d6
@@ -79,7 +79,7 @@ class VehicleDataController extends BaseController
'field' => $field, 'field' => $field,
'name' => trans($field), 'name' => trans($field),
'value_full' => $item['album'][$field] 'value_full' => $item['album'][$field]
? htmlspecialchars((new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['album'][$field]), ENT_NOQUOTES) ? (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['album'][$field])
: '', : '',
'value' => $item['album'][$field] 'value' => $item['album'][$field]
]; ];
@@ -238,6 +238,7 @@ class VehicleDataController extends BaseController
public function show(Request $request, int $id, string $scene = 'show'): Response public function show(Request $request, int $id, string $scene = 'show'): Response
{ {
try { try {
$request->setGet('id', $id);
return parent::show($request, $id, $scene); return parent::show($request, $id, $scene);
} catch (\Throwable $th) { } catch (\Throwable $th) {
return $this->errorResponse($th->getMessage()); return $this->errorResponse($th->getMessage());