|
@@ -72,7 +72,7 @@ class Livebc extends Api
|
|
|
$this->error(__('Operation frequently'));
|
|
|
}*/
|
|
|
|
|
|
- $user_id = input('user_id');
|
|
|
+
|
|
|
$gift_id = input('gift_id');
|
|
|
|
|
|
if (!$user_id || !$gift_id )
|
|
@@ -152,7 +152,7 @@ class Livebc extends Api
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ $redis = new Redis();
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
|
|
@@ -160,24 +160,24 @@ class Livebc extends Api
|
|
|
$redis->zIncrBy("livebc_jewel_get_" . $partyid, $giftinfo['value'], $user_id);
|
|
|
|
|
|
|
|
|
- $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);*/
|
|
|
- }
|
|
|
+ $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
- $partyUserTop = $this->getPartyUserTop($partyid);
|
|
|
- $returnData["partyUserTop"] = $partyUserTop;
|
|
|
+ $partyUserTop = $this->getPartyUserTop(54);
|
|
|
+
|
|
|
$returnData["image"] = one_domain_image($giftinfo["image"]);
|
|
|
$returnData["gif_image"] = one_domain_image($giftinfo["special"]);
|
|
|
|
|
|
Db::commit();
|
|
|
- $this->success("赠送成功!",$returnData);
|
|
|
+ $this->success("赠送成功!",$returnData);*/
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
* 用户赠送礼物后房间内用户排行,贡献榜前三名
|
|
|
*/
|
|
|
- private function getPartyUserTop($party_id) {
|
|
|
+ public function getPartyUserTop($party_id) {
|
|
|
$redis = new Redis();
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|