diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 8f09e4e38..a76becf9a 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -280,7 +280,8 @@ class PromoteController extends ThinkController $data['account'] = I('post.account'); $map1['id'] = array('neq',$_POST['id']); $map1['account'] = $data['account']; - if ($this->accountExist($data['account'])) { + + if ($this->accountExist($data['account'], $_POST['id'])) { $this->error('该账号已存在'); } $pdata = D('Promote')->where($map1)->find();