|
@@ -35,7 +35,6 @@ class Party extends Common
|
|
|
* 创建/进入派对
|
|
|
*/
|
|
|
public function createParty() {
|
|
|
- //$room_type = $this->request->request('room_type',1); // 房间类型:1=派对,2=直播
|
|
|
$room_type = 1;
|
|
|
$partyModel = new \app\common\model\Party();
|
|
|
|
|
@@ -203,10 +202,11 @@ class Party extends Common
|
|
|
|
|
|
/**
|
|
|
* 删除派对(群解散)
|
|
|
+ * 前端没用到
|
|
|
*/
|
|
|
public function closeParty() {
|
|
|
$party_id = $this->request->request('party_id'); // 派对ID
|
|
|
- $room_type = $this->request->request('room_type',1); // 房间类型:1=派对,2=直播
|
|
|
+ $room_type = 1; // 房间类型:1=派对,2=直播
|
|
|
if (!$party_id || !in_array($room_type,[1,2])) $this->error(__('Invalid parameters'));
|
|
|
$partyInfo = \app\common\model\Party::where(["id"=>$party_id])->find();
|
|
|
if(!$partyInfo) $this->error(__('派对不存在!'));
|
|
@@ -290,7 +290,6 @@ class Party extends Common
|
|
|
* 获取派对用户排序
|
|
|
*/
|
|
|
public function getPartyUserRank() {
|
|
|
-// $room_type = $this->request->request('room_type',1); // 房间类型
|
|
|
$room_type = 1;
|
|
|
$party_id = $this->request->request("party_id");// 派对ID
|
|
|
if (!$party_id) $this->error(__('Invalid parameters'));
|
|
@@ -345,7 +344,7 @@ class Party extends Common
|
|
|
*/
|
|
|
public function changeUserPartyhot() {
|
|
|
$party_id = $this->request->request('party_id',0,"intval"); // 派对ID
|
|
|
- $room_type = $this->request->request('room_type',1); // 房间类型
|
|
|
+ $room_type = 1; // 房间类型
|
|
|
$party_hot = $this->request->request('party_hot'); // 房间热度(正数表示提高的热度值,负数表示降低的热度值)
|
|
|
if (!$party_id || !$party_hot) {
|
|
|
$this->error(__('Invalid parameters'));
|
|
@@ -483,7 +482,6 @@ class Party extends Common
|
|
|
*/
|
|
|
public function joinParty() {
|
|
|
$party_id = $this->request->request('party_id',0,"intval"); // 直播间ID 逻辑ID
|
|
|
-// $room_type = $this->request->request("room_type",1);//
|
|
|
$room_type = 1;
|
|
|
$party_pass = $this->request->request("party_pass");//
|
|
|
if (!$party_id || !in_array($room_type,[1,2])) {
|
|
@@ -1079,7 +1077,6 @@ class Party extends Common
|
|
|
*/
|
|
|
public function savePartyNotice() {
|
|
|
$party_id = $this->request->request('party_id',0,"intval"); // 直播间ID
|
|
|
-// $room_type = $this->request->request('room_type',1); // 房间类型:1=派对2=直播
|
|
|
$room_type = 1; // 房间类型:1=派对2=直播
|
|
|
$party_notice = $this->request->request('party_notice'); // 公告标题
|
|
|
$party_notice_detail = $this->request->request('party_notice_detail'); // 公告内容
|
|
@@ -1207,9 +1204,7 @@ class Party extends Common
|
|
|
* 获取派对类型
|
|
|
*/
|
|
|
public function getPatyType() {
|
|
|
-// $room_type = $this->request->request("room_type",1);//
|
|
|
$room_type = 1;
|
|
|
-// if (!in_array($room_type,[1,2])) $this->error(__('Invalid parameters'));
|
|
|
$partytypeModel = new \app\common\model\PartyType();
|
|
|
$partytypeList = $partytypeModel->where(["room_type"=>$room_type])->select();
|
|
|
$this->success("获取成功!",$partytypeList);
|