报错:
Unknown column 'oKj5V4xN' in 'where clause'
原因:
查询字段需加引号 $query = $this->db->query('select * from userinfo where openId="'.$openid.'"');