field($field)->where(['platform'=>$platform, 'is_enable'=>1])->order($order_by)->select(); if(!empty($data)) { foreach($data as &$v) { // 图片地址 $v['images_url_old'] = $v['images_url']; $v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']); // 事件值 if(!empty($v['event_value'])) { // 地图 if($v['event_type'] == 3) { $v['event_value_data'] = explode('|', $v['event_value']); } $v['event_value'] = $v['event_value']; } else { $v['event_value'] = null; } } } // 存储缓存 cache($key, $data, 3600*24); } return $data; } } ?>