更新用户积分,例子:

//更新用户积分
public function setUserPoint($userid,$point=10)
    {
        $this->db->where('id',$userid);
        $this->db->set('point','point +'.$point,FALSE);
        $result =  $this->db->update('users表');
        return $result;
    }