public function delannoun($id) { // 验证数据正确性 if (empty($id)) { $this->error = L('PUBLIC_WRONG_DATA'); return false; } $map['id'] = is_array($id) ? array('IN', $id) : intval($id); return $this->where($map)->delete(); }