|
...
|
...
|
@@ -146,17 +146,6 @@ class ComController extends BaseController |
|
|
|
public function ceshi(){
|
|
|
|
$from = new FormGlobalsoApi();
|
|
|
|
$list = $from->getInquiryList('https://demomark.globalso.com/','',1,100000000);
|
|
|
|
$data = $list['data']['data'];
|
|
|
|
$arr = [];
|
|
|
|
foreach ($data as $k => $v){
|
|
|
|
if(isset($arr[$v['country']])){
|
|
|
|
$arr[$v['country']]++;
|
|
|
|
}else{
|
|
|
|
$arr[$v['country']] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
arsort($arr);
|
|
|
|
$top20 = array_slice($arr, 0, 20, true);
|
|
|
|
return $top20;
|
|
|
|
return $list;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|