玩家账号只能绑定一个测试账号

master
elf 2 years ago
parent aaf5d74952
commit b681112592

@ -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();

Loading…
Cancel
Save