|
|
@ -322,10 +322,10 @@ class TestingResourceService
|
|
|
|
throw new \Exception('该玩家账号为测试账号,无法绑定');
|
|
|
|
throw new \Exception('该玩家账号为测试账号,无法绑定');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$existBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => $gameId, 'bind_role_id' => $bindRoleId])->find();
|
|
|
|
/* $existBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => $gameId, 'bind_role_id' => $bindRoleId])->find();
|
|
|
|
if ($existBind) {
|
|
|
|
if ($existBind) {
|
|
|
|
throw new \Exception('该玩家角色已被绑定');
|
|
|
|
throw new \Exception('该玩家角色已被绑定');
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
|
|
$testExistBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => $gameId, 'role_id' => $testingRoleId])->find();
|
|
|
|
$testExistBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => $gameId, 'role_id' => $testingRoleId])->find();
|
|
|
|
if ($testExistBind) {
|
|
|
|
if ($testExistBind) {
|
|
|
|