Bläddra i källkod

优化送礼物,减少sql查询的字段,减少sql

lizhen_gitee 1 år sedan
förälder
incheckning
8f715a1ac1
1 ändrade filer med 3 tillägg och 9 borttagningar
  1. 3 9
      application/api/controller/Party.php

+ 3 - 9
application/api/controller/Party.php

@@ -1868,6 +1868,8 @@ class Party extends Common
                         }
 
                     }
+
+                    //用户经验升级
                     $getempirical = config("site.getempirical");
                     $getempirical = $getempirical * $hotValue;
                     // 获取用户贵族信息
@@ -1885,23 +1887,14 @@ class Party extends Common
                     //增加被送礼物用户的魅力等级
                     $res_charm = \app\common\model\User::add_charm_level($user_id,$giftValue);
 
-
                     // +exp
                     \app\common\model\TaskLog::tofinish($this->auth->id,"OBHqCX4g",$number);
 
-                    //贵族升级处理
-                    //$this->checkBeNoble($redis,$this->auth->id,$giftCountValue);
-
                     // +message
                     \app\common\model\Message::addMessage($user_id,"礼物通知","收到 ".$this->auth->nickname." 赠送的".$giftInfo["name"]." x".$number." 价值 ".$giftValue ." 钻石");
 
                     $allVal = $allVal + $hotValue;
 
-//                    // 剪掉背包礼物
-//                    if($is_back == 1) {
-//                        \app\common\model\GiftBack::update(["is_use"=>1],["id"=>$gift_id]);
-//                    }
-
                 }
             }
 
@@ -1988,6 +1981,7 @@ class Party extends Common
 
             if ($is_big == 1) {
                 $notice = new GatewayworkerTools();
+                $giftUserParty['gift_gif_image'] = localpath_to_netpath($giftUserParty['gift_gif_image']);
                 $notice->sendBigGiftInParty($sender,$receiver,$partyInfo,$giftUserParty);
             }
         }