$where['uid']=session::get('user_id');出现illegal string offset 'uid'
字符串偏移,取出来的数据是字符串的格式吗?
改成这样
$where=[ 'uid'=>session::get('user_id') ];