private function _form($links) { if (!empty($links['mix']) && !XUtils::isUtf8($links['mix'])) { $links['mix'] = XUtils::autoCharset($links['mix']); } if (!empty($links['title']) && !XUtils::isUtf8($links['title'])) { $links['title'] = XUtils::autoCharset($links['title']); } $links['mix'] = empty($links['mix']) ? null : XUtils::b64encode($links['mix']); //先判断是外链图片还是本地图片 $imgtype = reqPost('imgtype', null); // ppr($_POST,1); if (!empty($imgtype)) { if ($imgtype == 'local') { $links['image_link'] = $this->_doLocalImage('image_link'); } if (empty($links['image_link'])) { $links['image_link'] = null; } } $links['begin_time'] = empty($links['begin_time']) ? 0 : strtotime($links['begin_time']); $links['end_time'] = empty($links['end_time']) ? 0 : strtotime($links['end_time']); // ppr($links_arr,1); $links['create_time'] = $this->_thetime; $links['user_id'] = $this->_backendUserId; return $links; }