1
This commit is contained in:
@@ -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'])){
|
||||
|
||||
Reference in New Issue
Block a user