Merge pull request '玩家账号只能绑定一个测试账号' (#661) from feature/testing_apply_top_promote into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/661
master
廖金灵 2 years ago
commit 72df225355

@ -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