diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 4ce977248..27ad14703 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -1438,9 +1438,12 @@ class CompanyStatementController extends ThinkController if ($company_ids) { $inside = M("promote_company",'tab_')->field("company_name")->where(['id'=>['in',$company_ids],'is_inside'=>1])->select(); - $inside = implode(',',array_column($inside,'company_name')); + if ($inside) { - $this->ajaxReturn(['status'=>0,'msg'=>$inside.'为内部公司不能添加特殊补点']); + $inside = implode(',',array_column($inside,'company_name')); + $this->ajaxReturn(['status'=>0,'msg'=>$inside.'为内部公司不能添加特殊补点']); + + } }