From b681112592e2791ba382b2052039ba051667b92b Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sat, 25 Jun 2022 10:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E8=B4=A6=E5=8F=B7=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E7=BB=91=E5=AE=9A=E4=B8=80=E4=B8=AA=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/TestingResourceService.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();