|
@@ -427,8 +427,8 @@ if (!function_exists('info_domain_image')) {
|
|
|
}
|
|
|
foreach ($data as $key => $val) {
|
|
|
if (in_array($key, $field)) {
|
|
|
- $more = strpos($key, 'images');
|
|
|
- $data[$key] = one_domain_image($val, $more);
|
|
|
+
|
|
|
+ $data[$key] = one_domain_image($val);
|
|
|
}
|
|
|
}
|
|
|
return $data;
|
|
@@ -437,18 +437,18 @@ if (!function_exists('info_domain_image')) {
|
|
|
if (!function_exists('one_domain_image')) {
|
|
|
//支持单个字段,需要增加domain_cdnurl
|
|
|
//支持image,images
|
|
|
- function one_domain_image($one, $more = false)
|
|
|
+ function one_domain_image($one){
|
|
|
{
|
|
|
if (!$one) {
|
|
|
return $one;
|
|
|
}
|
|
|
- if (strpos($one, ',') || $more !== false) {
|
|
|
+ if (strpos($one, ',')){
|
|
|
//逗号隔开的多个图片
|
|
|
$one = explode(',', $one);
|
|
|
foreach ($one as $k => $v) {
|
|
|
$one[$k] = localpath_to_netpath($v);
|
|
|
}
|
|
|
- //$one = implode(',',$one);
|
|
|
+ $one = implode(',',$one);
|
|
|
} else {
|
|
|
$one = localpath_to_netpath($one);
|
|
|
}
|