Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
sjy7221 committed Apr 4, 2018
1 parent ae4d220 commit 5efdc3a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions server/src/app/Controllers/GameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,24 +387,24 @@ public function getGame(){
$dapai = [];
$gameInfo = $this->gameInfo;
//房间内准备状态 并且游戏数据有
// if($this->roomInfo['status'] == 0 || empty($gameInfo['users'][$this->mid]['shoupai'])){
//
// $data = [
// 'status'=> 0,
// 'users'=>$this->userInfo,
// 'roomInfo'=>$this->roomInfo
// ];
//
// $jinru = $data;
// $data = [
// 'jiesan'=>[],
// 'jixu'=>[],
// 'jinru'=>$jinru,
// 'dapai'=>[]
// ];
// $this->send(reData('getGame',$data));
// return;
// }
if($this->roomInfo['status'] == 0 || empty($gameInfo['users'][$this->mid]['shoupai'])){

$data = [
'status'=> 0,
'users'=>$this->userInfo,
'roomInfo'=>$this->roomInfo
];

$jinru = $data;
$data = [
'jiesan'=>[],
'jixu'=>[],
'jinru'=>$jinru,
'dapai'=>[]
];
$this->send(reData('getGame',$data));
return;
}
$roomInfo = $this->roomInfo;
$weizhi = $roomInfo['weizhi'];
$gameInfo = $this->gameInfo;
Expand Down

0 comments on commit 5efdc3a

Please sign in to comment.