Authored by xiaofeng.yao@yoho.cn

主播点结束就是结束

... ... @@ -200,7 +200,7 @@ class Video extends \yii\db\ActiveRecord
if (!$video->update()) {
throw new \Exception(current($this->getFirstErrors()));
}
$living_status = $room['starting_time'] > time() ? 0:2;
$living_status = 2;
//更新房间主表直播状态
$result = Yii::$app->db->createCommand()
->update('{{%room}}', ['living' => $living_status,'update_time'=>time()], ['room_id' => $room_id])
... ...