|
|
@ -200,6 +200,9 @@ class ApplyService {
|
|
|
|
|
|
|
|
|
|
|
|
public function checkSociatyPerm($promote, $game)
|
|
|
|
public function checkSociatyPerm($promote, $game)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if ($game['apply_auth'] == 1) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$topPromote = $promoteService->getTopPromote($promote);
|
|
|
|
$topPromote = $promoteService->getTopPromote($promote);
|
|
|
|
$record = M('sociaty_games', 'tab_')->where(['game_id' => $game['id'], 'promote_id' => $topPromote['id']])->find();
|
|
|
|
$record = M('sociaty_games', 'tab_')->where(['game_id' => $game['id'], 'promote_id' => $topPromote['id']])->find();
|
|
|
|