diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 73c1a1b0a..8f09e4e38 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -227,7 +227,9 @@ class PromoteController extends ThinkController if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) { $this->error('账号只能是6-15位字母或数字'); } - + if (empty($company_id)) { + $this->error('请选择推广公司'); + } $promoteService = new PromoteService(); $status = $promoteService->addPromote($data); if ($status) { diff --git a/Application/Admin/View/Promote/add.html b/Application/Admin/View/Promote/add.html index 4a22e69e7..d2a4326dd 100644 --- a/Application/Admin/View/Promote/add.html +++ b/Application/Admin/View/Promote/add.html @@ -38,6 +38,19 @@ 密码长度必须大于6位 + +