|
@@ -78,10 +78,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$where = [];
|
|
@@ -207,10 +207,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
// 更新redis 加入缓存
|
|
@@ -244,10 +244,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$redis->zRem($this->roomTypeArr[$room_type]."Rank",$party_id);
|
|
|
$redis->del($this->roomTypeArr[$room_type]."_".$party_id);
|
|
@@ -276,10 +276,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$redisPartyRankList = $redis->zRevRange($this->roomTypeArr[$room_type]."Rank",0,-1,true);
|
|
|
|
|
@@ -396,10 +396,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$res = [];
|
|
@@ -457,10 +457,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
// 更新热度
|
|
|
$redis->zIncrBy($this->roomTypeArr[$room_type]."Rank", $party_hot, $party_id);
|
|
@@ -509,10 +509,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$redisData = $redis->get($this->roomTypeArr[$room_type]."_".$party_id);
|
|
|
if($redisData) {
|
|
@@ -549,10 +549,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$res = $redis->hGetAll("online_".$party_id);
|
|
@@ -578,10 +578,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$redis->zAdd("party_user_".$party_id,$this->auth->u_id,$user_id);
|
|
|
|
|
@@ -705,10 +705,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
// 判断当前用户是否被该房间设置限制 //项目:1=房管,2=禁言,3=拉黑,4=踢出
|
|
@@ -742,10 +742,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$redis->zRem("party_user_".$party_id,$user_u_id);
|
|
@@ -793,10 +793,10 @@ class Party extends Common
|
|
|
// $redisconfig = config("redis");
|
|
|
// $redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
/*if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}*/
|
|
|
// $userids = $redis->zRange("party_user_".$party_id,0,-1,true);
|
|
|
// $useridArr = [];
|
|
@@ -825,10 +825,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$partyModel = new \app\common\model\Party();
|
|
@@ -869,10 +869,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$partycellectionModel = new \app\common\model\PartyCellection();
|
|
@@ -919,10 +919,10 @@ class Party extends Common
|
|
|
// $redisconfig = config("redis");
|
|
|
// $redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
/*if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}*/
|
|
|
// // 获取本周第一天
|
|
|
// $weekday = $this->firstOfWeek(date("Y-m-d H:i:s"));
|
|
@@ -1048,10 +1048,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$partyInfo = $redis->get($this->roomTypeArr[$room_type]."_".$party_id);
|
|
|
if($partyInfo) {
|
|
@@ -1113,10 +1113,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
$data = [];
|
|
@@ -1153,10 +1153,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1191,10 +1191,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$res = $redis->hDel("party_manage_".$party_id,$id."-".$item);
|
|
|
if($res !== false) {
|
|
@@ -1228,10 +1228,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$partyInfo = $redis->get($this->roomTypeArr[$room_type]."_".$party_id);
|
|
|
if($partyInfo) {
|
|
@@ -1266,10 +1266,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$data = unserialize($redis->hGet("party_lineup",$party_id));
|
|
|
$data[$userid]["user_id"] = $userInfo['id'];
|
|
@@ -1306,10 +1306,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$data=unserialize($redis->hGet("party_lineup",$party_id));
|
|
|
if($data && $is_empty != 1) {
|
|
@@ -1340,10 +1340,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$data = $redis->hGet("party_lineup",$party_id);
|
|
|
$dataArr = unserialize($data);
|
|
@@ -1382,10 +1382,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$partyInfo = $redis->get($this->roomTypeArr[$room_type]."_".$party_id);
|
|
|
if($partyInfo) {
|
|
@@ -1600,10 +1600,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"], 86400 * 31);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
// 事务处理余额与记录信息
|
|
|
$userjewellogModel = new \app\common\model\UserJewelLog();
|
|
@@ -1868,10 +1868,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
$redis->zAdd($this->roomTypeArr[$room_type]."Rank", $partyInfo['party_hot'], $partyInfo["id"]);
|
|
|
|
|
@@ -1907,10 +1907,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
// 获取本周第一天
|
|
@@ -1954,10 +1954,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
// 获取用户魅力值
|
|
@@ -1991,10 +1991,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
if ($userId) {
|
|
@@ -2034,10 +2034,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
// 获取所有派对ID
|
|
|
$party_ids = \app\common\model\Party::where(["status"=>1])->column("id");
|
|
@@ -2076,10 +2076,10 @@ class Party extends Common
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
|
|
|
// $redis->del("online_" . 3);die;
|