field($field)->where(['platform'=>APPLICATION_CLIENT_TYPE, 'is_enable'=>1])->order($order_by)->select()->toArray(); if(!empty($data)) { foreach($data as &$v) { // 图片地址 $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'] = htmlspecialchars_decode($v['event_value']); } else { $v['event_value'] = null; } } } else { $data = []; } // 存储缓存 MyCache($key, $data, 180); } return $data; } } ?>