|
@@ -177,7 +177,7 @@ class Party extends Common
|
|
|
*/
|
|
|
public function savePartyStatus() {
|
|
|
$party_id = $this->request->request('party_id'); // 派对ID
|
|
|
- $room_type = $this->request->request('room_type');; // 房间类型:1=派对,2=直播
|
|
|
+ $room_type = $this->request->request('room_type',1);; // 房间类型:1=派对,2=直播
|
|
|
if (!$party_id || !in_array($room_type,[1,2])) $this->error(__('Invalid parameters'));
|
|
|
$user_id = $this->auth->id;
|
|
|
$partyInfo = \app\common\model\Party::get($party_id);
|
|
@@ -574,7 +574,7 @@ class Party extends Common
|
|
|
// // 如果是房主自己进入房间,则更新用户 为在线状态
|
|
|
// if ($partyInfo["user_id"] == $user_id) {
|
|
|
// if ($room_type == 2)
|
|
|
-// \app\common\model\User::update(["is_live" => 1], ["id" => $partyInfo["user_id"]]);
|
|
|
+// \app\common\model\User::update(["is_livebc" => 1], ["id" => $partyInfo["user_id"]]);
|
|
|
// }
|
|
|
} else {
|
|
|
$this->error("派对信息获取失败!");
|