瀏覽代碼

送礼物,删除注释代码

lizhen_gitee 1 年之前
父節點
當前提交
92405e9b6a
共有 1 個文件被更改,包括 0 次插入23 次删除
  1. 0 23
      application/api/controller/Party.php

+ 0 - 23
application/api/controller/Party.php

@@ -1853,10 +1853,6 @@ class Party extends Api
             }
         }
 
-        //送礼物权限
-        /*if($this->auth->power['give_gift'] == 1){
-            $this->error('您已被限制:赠送礼物,请联系管理员');
-        }*/
 
         //接收参数
         $user_ids  = input("user_id");// 赠送对象用户id
@@ -2045,8 +2041,6 @@ class Party extends Api
                     $this->error('送礼物失败');
                 }
 
-                //大礼物飘屏
-                //$this->bigGiftNotice($this->auth->nickname,$touserInfo['nickname'],$partyInfo,$data);
 
                 // 添加获赠用户余额
                 /*if($data['getvalue'] > 0){
@@ -2077,18 +2071,6 @@ class Party extends Api
                 if ($res1 && $res5) {
                     $i++;
                     if($party_id > 0) {
-                        // 添加redis记录做魅力排行榜日榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_get_" . $party_id . ":" . $day . "d", $giftValue, $user_id);
-                        // 添加redis记录做魅力排行榜周榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_get_" . $party_id . ":" . $weekday . "w", $giftValue, $user_id);
-                        // 添加redis记录做魅力排行榜月榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_get_" . $party_id . ":" . $monthday . "m", $giftValue, $user_id);
-                        // 添加redis记录做财富排行榜日榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_to_" . $party_id . ":" . $day . "d", $giftValue, $userauthid);
-                        // 添加redis记录做财富排行榜周榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_to_" . $party_id . ":" . $weekday . "w", $giftValue, $userauthid);
-                        // 添加redis记录做财富排行榜月榜用
-//                        $this->redis->zIncrBy($this->roomTypeArr[$room_type] . "_jewel_to_" . $party_id . ":" . $monthday . "m", $giftValue, $userauthid);
 
                         // tcp 更新用户魅力值
                         $this->redis->zIncrBy("hourCharm_".$party_id, $giftValue_rate, $user_id);
@@ -2099,11 +2081,6 @@ class Party extends Api
 
                     }
 
-                    //用户经验升级
-                    /*
-                    //增加被送礼物用户的魅力等级
-                    $res_charm = \app\common\model\User::add_charm_level($user_id,$giftValue);
-                    */
                     // +message
                     \app\common\model\Message::addMessage($user_id,"礼物通知","收到 ".$this->auth->nickname." 赠送的".$giftInfo["name"]." x".$number." 价值 ".$giftValue_rate ." 金币");