diff --git a/Application/Base/Service/TestingResourceService.class.php b/Application/Base/Service/TestingResourceService.class.php index 791e7c656..c26ac2a3e 100644 --- a/Application/Base/Service/TestingResourceService.class.php +++ b/Application/Base/Service/TestingResourceService.class.php @@ -339,8 +339,8 @@ class TestingResourceService } $existBindCount = M('testing_binding', 'tab_')->where(['game_id' => ['in', $gameIds], 'bind_role_id' => $bindRoleId])->count(); - if ($existBindCount >= 2) { - throw new \Exception('同一角色最多只能被绑定两次'); + if ($existBindCount >= 1) { + throw new \Exception('同一角色最多只能被绑定一次'); } $testExistBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => ['in', $gameIds], 'role_id' => $testingRoleId])->find();