|
@@ -152,7 +152,7 @@ class Livebc extends Api
|
|
|
}
|
|
|
|
|
|
//排行榜
|
|
|
- $redis = new Redis();
|
|
|
+ /*$redis = new Redis();
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
|
|
@@ -160,11 +160,11 @@ class Livebc extends Api
|
|
|
$redis->zIncrBy("livebc_jewel_get_" . $partyid, $giftinfo['value'], $user_id);
|
|
|
|
|
|
// 添加redis记录做贡献排行榜
|
|
|
- $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);
|
|
|
+ $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);*/
|
|
|
}
|
|
|
|
|
|
// tcp 获取房间用户周前三名
|
|
|
- $partyUserTop = $this->outlivebc($partyid);
|
|
|
+ $partyUserTop = $this->getPartyUserTop($partyid);
|
|
|
$returnData["partyUserTop"] = $partyUserTop;
|
|
|
$returnData["image"] = one_domain_image($giftinfo["image"]);
|
|
|
$returnData["gif_image"] = one_domain_image($giftinfo["special"]);
|
|
@@ -205,8 +205,6 @@ class Livebc extends Api
|
|
|
|
|
|
//准备返回数据,刷礼物的总值,刷礼物人数,榜一信息
|
|
|
public function outlivebc($party_id){
|
|
|
-
|
|
|
-
|
|
|
$redis = new Redis();
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|