|
@@ -156,9 +156,11 @@ class Livebc extends Api
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"], 86400 * 31);
|
|
|
|
|
|
-
|
|
|
- $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);
|
|
|
+
|
|
|
+ $redis->zIncrBy("livebc_jewel_get_" . $partyid, $giftinfo['value'], $user_id);
|
|
|
|
|
|
+
|
|
|
+ $redis->zIncrBy("livebc_jewel_to_" . $partyid, $giftinfo['value'], $this->auth->id);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -199,4 +201,29 @@ class Livebc extends Api
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ public function outlivebc(){
|
|
|
+ $party_id = input('party_id');
|
|
|
+ if(empty($party_id)){
|
|
|
+ $this->error();
|
|
|
+ }
|
|
|
+
|
|
|
+ $redis = new Redis();
|
|
|
+ $redisconfig = config("redis");
|
|
|
+ $redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
+
|
|
|
+ $userModel = new \app\common\model\User();
|
|
|
+
|
|
|
+ $num = 3;
|
|
|
+
|
|
|
+ $getweek = $redis->zRevRange("livebc_jewel_to_".$party_id,0,$num-1,true);
|
|
|
+ $userList = $userModel->rankList($getweek);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|