正在显示
1 个修改的文件
包含
11 行增加
和
0 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论