Browse Source

塔罗牌链接

lizhen_gitee 3 years ago
parent
commit
4f14d993d1
2 changed files with 3 additions and 2 deletions
  1. 1 0
      application/api/controller/Baseconfig.php
  2. 2 2
      application/api/controller/Party.php

+ 1 - 0
application/api/controller/Baseconfig.php

@@ -23,6 +23,7 @@ class Baseconfig extends Api
             'ios_update_num' => config('site.ios_update_num'),
             'ios_update_version' => config('site.ios_update_version'),
             'livebc_type' => Db::name('party_type')->where('room_type',2)->order('id asc')->select(),
+            'taluopai' => config('site.taluopai'),
         ];
 
         $this->success('success',$config);

+ 2 - 2
application/api/controller/Party.php

@@ -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("派对信息获取失败!");