소스 검색

Sending sessionKey for pro.

Kain_Stropov 5 년 전
부모
커밋
6630e95a87
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Http/Controllers/MeetingCenterController.php
  2. 1 0
      app/HttpModels/ProModel.php

+ 1 - 0
app/Http/Controllers/MeetingCenterController.php

@@ -23,6 +23,7 @@ class MeetingCenterController extends Controller
 
         $appSession = AppSession::where("session_key",$sessionKey)->first();
         $user = new ProModel($appSession->pro);
+        $user->sessionKey = $sessionKey;
         $meeting = null;
         if ($appSession->is_currently_meeting_participant && $appSession->meetingParticipant->meeting->is_active) {
             $meeting = new MeetingWithLobbyModel($appSession->meetingParticipant->meeting);

+ 1 - 0
app/HttpModels/ProModel.php

@@ -10,6 +10,7 @@ class ProModel {
     public $avatarFile;
     public $is_active_and_visible;
     public $lobbies = [];
+    public $sessionKey;
 
     public function __construct(Pro $pro)
     {