php stdClass类 转换为数组
$list = DB::select('select id,company_name, t.price from c_members as m,(select sum(total_price) as price,user_id from c_orders group by user_id order by price desc limit 20) as t where m.id = t. user_id order by t.price desc');
foreach ($list as $k=>$v){
//stdClass类 转换为数组
$v = get_object_vars($v);
$legend_arr[] = trim($v['company_name']);
$series_arr[] = array(
'name'=> trim($v['company_name']),
'value'=> $v['price'],
);
}