public function update_views($uid) { if (AWS_APP::cache()->get('update_views_people_' . md5(session_id()) . '_' . intval($question_id))) { return false; } AWS_APP::cache()->set('update_views_people_' . md5(session_id()) . '_' . intval($question_id), time(), get_setting('cache_level_normal')); return $this->query('UPDATE ' . $this->get_table('users') . ' SET views_count = views_count + 1 WHERE uid = ' . intval($uid)); }这个$question_id写错了吧。