} else { array_push($subjectIds, $id); } } $subjectContents = $inviteSubject->GetInviteSubjectArray($subjectIds); $inviteParticipant = new \Ss\Market\InviteParticipant(); // 设置活动上限数为50个用户 if ($inviteParticipant->GetInviteParticipantArrayCount() >= 50) { $curStep = -1; } // 初始化流量 $gameResultGPRS = rand(0, 2048); if ($curStep == 2 && !empty($_COOKIE['PUE'])) { $inviteParticipantData = $inviteParticipant->GetInviteParticipantArray(strval(base64_decode($_COOKIE['PUE']))); if ($inviteParticipantData['init_gprs'] == 0) { $inviteParticipant->UpdateInviteParticipantInitGPRS($gameResultGPRS, strval(base64_decode($_COOKIE['PUE']))); } else { $gameResultGPRS = $inviteParticipantData['init_gprs']; } } ?> <?php if ($curStep == 0) { ?> <div class="row marketing" style="text-align: center;margin-top: 10%; margin-left: 50px;margin-right: 50px;"> <h3>Lumos邀请码活动正在进行中...</h3> <form class="form-horizontal"> <div class="form-group">