Merge pull request 'hotfix/remove_promote_package' (#387) from hotfix/remove_promote_package into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/387
master
廖金灵 3 years ago
commit 742bb493c1

@ -338,12 +338,12 @@ class TestingResourceService
throw new \Exception('该玩家账号为测试账号,无法绑定');
}
/* $existBind = M('testing_binding', 'tab_')->field(['id'])->where(['game_id' => $gameId, 'bind_role_id' => $bindRoleId])->find();
if ($existBind) {
throw new \Exception('该玩家角色已被绑定');
} */
$existBindCount = M('testing_binding', 'tab_')->where(['game_id' => ['in', $gameIds], 'bind_role_id' => $bindRoleId])->count();
if ($existBindCount >= 2) {
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' => ['in', $gameIds], 'role_id' => $testingRoleId])->find();
if ($testExistBind) {
throw new \Exception('该测试账号角色已绑定有角色');
}

@ -30,6 +30,8 @@ class GameResource
248 => LeyouClient::class, // 剑破长空(苹果版)
275 => LeyouClient::class, // 一梦仙境(安卓版)
276 => LeyouClient::class, // 一梦仙境(苹果版)
280 => LeyouClient::class, // 万剑八荒(安卓版)
281 => LeyouClient::class, // 万剑八荒(苹果版)
];
public function __construct($game)

Loading…
Cancel
Save