...
|
...
|
@@ -20,14 +20,14 @@ class GoodsModel extends Model |
|
|
$info['pic']=cmf_get_image_url($info['pic']);
|
|
|
//is_json($info['banner']);
|
|
|
$info['banner']=json_decode($info['banner'],true);
|
|
|
|
|
|
if (!empty($info['banner']) && is_array($info['banner'])){
|
|
|
foreach ($info['banner'] as $k=>$v) {
|
|
|
$info['banner'][$k]=cmf_get_image_url($v);
|
|
|
}
|
|
|
}else{
|
|
|
$info['banner']=[];
|
|
|
}
|
|
|
//dump($info['banner']);
|
|
|
// if (!empty($info['banner']) && is_array($info['banner'])){
|
|
|
// foreach ($info['banner'] as $k=>$v) {
|
|
|
// $info['banner'][$k]=cmf_get_image_url($v);
|
|
|
// }
|
|
|
// }else{
|
|
|
// $info['banner']=[];
|
|
|
// }
|
|
|
return $info;
|
|
|
}
|
|
|
|
...
|
...
|
|