Browse Source

直播开播更换类型

lizhen_gitee 3 years ago
parent
commit
c5a1257dd9
2 changed files with 10 additions and 0 deletions
  1. 6 0
      application/api/controller/Party.php
  2. 4 0
      application/api/controller/Renlian.php

+ 6 - 0
application/api/controller/Party.php

@@ -156,6 +156,12 @@ class Party extends Common
             }
             $partyInfo = $sqlPartyInfo;
             $partyInfo["is_new"] = 0;
+
+            //修改类型
+            //目前直播需要,语聊不需要
+            if($room_type == 2){
+                Db::name('party')->where('id',$partyInfo['id'])->update(['party_type'=>$party_type]);
+            }
         }
 
         if($room_type == 2){

+ 4 - 0
application/api/controller/Renlian.php

@@ -54,6 +54,10 @@ class Renlian extends Api
     }
 
     public function sdksign(){
+        $config = config('renlian');
+        $appid  = $config['appid'];
+        $secret = $config['secret'];
+
 
     }