|
...
|
...
|
@@ -146,14 +146,14 @@ class ComController extends BaseController |
|
|
|
public function ceshi(){
|
|
|
|
$from = new FormGlobalsoApi();
|
|
|
|
$list = $from->getInquiryList('https://demomark.globalso.com/','',1,100000000);
|
|
|
|
$arr = [];
|
|
|
|
foreach ($list['data'] as $k => $v){
|
|
|
|
if(isset($arr[$v['country']])){
|
|
|
|
$arr[$v['country']]['num']++;
|
|
|
|
}else{
|
|
|
|
$arr[$v['country']]['num'] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// $arr = [];
|
|
|
|
// foreach ($list['data'] as $k => $v){
|
|
|
|
// if(isset($arr[$v['country']])){
|
|
|
|
// $arr[$v['country']]['num']++;
|
|
|
|
// }else{
|
|
|
|
// $arr[$v['country']]['num'] = 0;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
$this->response('success',Code::SUCCESS,$list);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|