This commit is contained in:
2025-07-09 16:53:45 +08:00
parent 1108489423
commit f3b4740244
6 changed files with 7 additions and 5 deletions
+1
View File
@@ -46,6 +46,7 @@ class AdpController extends BaseController
unset($item['translation']);
$ad = AdModel::with('translation')->where(['adp_id' => $item['id'], 'status' => 1])->limit(8)->get();
foreach ($ad as $k => $v) {
$v['type_txt'] = $v['type'] == 1?'新车' : ($v['type'] == 2?'二手车' : '');
$v['alt'] = isset($v['translation']) ? $v['translation']['alt'] : '';
$v['title'] = isset($v['translation']) ? $v['translation']['title'] : '';
if(!empty($v['img'])){