作者 lyh

gx

@@ -146,6 +146,14 @@ class ComController extends BaseController @@ -146,6 +146,14 @@ class ComController extends BaseController
146 public function ceshi(){ 146 public function ceshi(){
147 $from = new FormGlobalsoApi(); 147 $from = new FormGlobalsoApi();
148 $list = $from->getInquiryList('https://demomark.globalso.com/','',1,100000000); 148 $list = $from->getInquiryList('https://demomark.globalso.com/','',1,100000000);
  149 + $arr = [];
  150 + foreach ($list['data'] as $k => $v){
  151 + if(isset($arr[$v['country']])){
  152 + $arr[$v['country']]['num']++;
  153 + }else{
  154 + $arr[$v['country']]['num'] = 0;
  155 + }
  156 + }
149 $this->response('success',Code::SUCCESS,$list); 157 $this->response('success',Code::SUCCESS,$list);
150 } 158 }
151 } 159 }