|
@@ -301,7 +301,6 @@ class mb_specialModel extends Model
|
|
|
{
|
|
|
if (!empty($item_data)) {
|
|
|
$item_data = unserialize($item_data);
|
|
|
- $item_data = $this->_doDate($item_data);
|
|
|
if ($item_type == 'goods') {
|
|
|
$item_data = $this->_initMbSpecialItemGoodsData($item_data, $item_type);
|
|
|
}
|
|
@@ -312,31 +311,7 @@ class mb_specialModel extends Model
|
|
|
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 处理type=url 时的&字符转义问题
|
|
|
- * @param array $data
|
|
|
- * @return array|bool
|
|
|
- */
|
|
|
- private function _doDate($data = array()) {
|
|
|
-
|
|
|
- if (empty($data)) {
|
|
|
- return false;
|
|
|
- }
|
|
|
|
|
|
- foreach($data as &$item)
|
|
|
- {
|
|
|
- if(!is_array($item)) continue;
|
|
|
- foreach ($item as &$img)
|
|
|
- {
|
|
|
- if(!is_array($img)) continue;
|
|
|
- if ($img['type'] == 'url' || $img['type'] == 'innerurl') {
|
|
|
- $img['data'] = htmlspecialchars_decode($img['data']);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return $data;
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 处理goods类型内容
|