|
@@ -23,7 +23,7 @@ require_once EXTEND_PATH . 'shengwang/src/RtmTokenBuilder2.php';
|
|
*/
|
|
*/
|
|
class Party extends Common
|
|
class Party extends Common
|
|
{
|
|
{
|
|
- protected $noNeedLogin = ['updatePartyInfo','getPatyType','shengwang_token','addUserPositionToParty', 'clearMoney','clearCharm','getPartyRankList','getDefaultBackground','getPartGifList','getPartHeadgifList','isNotalk','getMusicList','updateTops','handleParty'];
|
|
|
|
|
|
+ protected $noNeedLogin = ['test_party_attr','updatePartyInfo','getPatyType','shengwang_token','addUserPositionToParty', 'clearMoney','clearCharm','getPartyRankList','getDefaultBackground','getPartGifList','getPartHeadgifList','isNotalk','getMusicList','updateTops','handleParty'];
|
|
protected $noNeedRight = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
protected $redis;
|
|
protected $redis;
|
|
@@ -2534,6 +2534,37 @@ class Party extends Common
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //显示聊天室所有自定义信息,自用工具
|
|
|
|
+ public function test_party_attr(){
|
|
|
|
+ $party_id = input('party_id',0);
|
|
|
|
+ $party_info = Db::name('party')->where('id',$party_id)->find();
|
|
|
|
+
|
|
|
|
+ $easemob = new Easemob();
|
|
|
|
+
|
|
|
|
+ $field = [
|
|
|
|
+ 'seatnum',
|
|
|
|
+ 'waitsing_list',
|
|
|
|
+ 'party_name',
|
|
|
|
+ 'party_logo',
|
|
|
|
+ 'is_public',
|
|
|
|
+ 'room_type',
|
|
|
|
+ 'online_user_num',
|
|
|
|
+ 'wealth_top3_userlist',
|
|
|
|
+ ];
|
|
|
|
+ for($i=1;$i<=$party_info['seatnum'];$i++){
|
|
|
|
+ $field[] = 'seat'.$i;
|
|
|
|
+ }
|
|
|
|
+ $all_attr = $easemob->room_getRoomCustomAttribute($party_info['easemob_room_id'],$field);
|
|
|
|
+
|
|
|
|
+ foreach($all_attr as $key => $val){
|
|
|
|
+ echo $key;
|
|
|
|
+ echo '<br>';
|
|
|
|
+ $val = json_decode($val,true);
|
|
|
|
+ dump($val);
|
|
|
|
+ echo '<hr>';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
//============================定时任务==========================//
|
|
//============================定时任务==========================//
|
|
|
|
|