no message
This commit is contained in:
parent
91a8349896
commit
1355fd8ee6
@ -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([
|
||||
|
||||
Loading…
Reference in New Issue
Block a user