作者 刘锟

update

@@ -31,6 +31,17 @@ class DomainInfoController extends BaseController @@ -31,6 +31,17 @@ class DomainInfoController extends BaseController
31 $this->map['domain'] = ['like','%'.$this->map['domain'],'%']; 31 $this->map['domain'] = ['like','%'.$this->map['domain'],'%'];
32 } 32 }
33 $lists = $domainModel->lists($this->map,$this->page,$this->row,$this->order); 33 $lists = $domainModel->lists($this->map,$this->page,$this->row,$this->order);
  34 + if(!empty($lists)){
  35 + $project_model = new Project();
  36 + foreach ($lists['list'] as $k=>$v){
  37 + $company = '';
  38 + $pro_info = $project_model->read(['id'=>$v['project_id']],'company');
  39 + if($pro_info){
  40 + $company = $pro_info['company'];
  41 + }
  42 + $lists['list'][$k]['company'] = $company;
  43 + }
  44 + }
34 return $this->response('success', Code::SUCCESS, $lists); 45 return $this->response('success', Code::SUCCESS, $lists);
35 } 46 }
36 47