no message

This commit is contained in:
hellcat 2026-07-27 15:35:46 +08:00
parent 91a8349896
commit 1355fd8ee6

View File

@ -239,9 +239,16 @@ abstract class ListController
$iId = request('id');
$sField = request('field');
$sFieldType = $this->aFieldTypes[$sField] ?? '';
$sHit = $this->oModel->find($iId)?->{$sField};
if (is_array($sHit)) {
$sHit = json_encode($sHit, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
$sHit = json_encode($sHit);
}
if ($sFieldType == 'json') {
$sHit = json_decode($sHit, true);
$sHit = json_encode($sHit, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
}
return response()->json([