Authored by htoooth

修复链接错误

... ... @@ -704,13 +704,20 @@ class ShopModel
if (isset($val['data']) && is_array($val['data'])) {
foreach ($val['data'] as $k => &$v) {
$v['url'] = self::modifyUrl($v, $shopId);
$url = self::modifyUrl($v, $shopId);
if (!empty($url)) {
$v['url'] = $url;
}
}
}
if(is_array($val)){
foreach($val as $k1 => &$v1){
$v1['url'] = self::modifyUrl($v1,$shopId);
if (!iseet($val['data']) && is_array($val)) {
foreach ($val as $k1 => &$v1) {
$url = self::modifyUrl($v1, $shopId);
if (!empty($url)) {
$v1['url'] = $url;
}
}
}
}
... ...