public function doEditEvent($eventMap, $optsMap, $cover, $id)
{
$eventMap['cTime'] = isset($eventMap['cTime']) ? $eventMap['cTime'] : time();
$eventMap['coverId'] = $cover['info'][0]['attach_id'] > 0 ? $cover['info'][0]['attach_id'] : 0;
$eventMap['limitCount'] = 0 == intval($eventMap['limitCount']) ? 999999999 : $eventMap['limitCount'];
$has_friend = $optsMap['opts']['friend'];
$optsMap['opts'] = serialize($optsMap['opts']);
//false
$optsDao = self::factoryModel('opts');
if (false !== $optsDao->where('id=' . $id['optsId'])->save($optsMap)) {
$addId = $this->where('id =' . $id['id'])->save($eventMap);
} else {
return false;
}
return $addId;
}