Browse Source

幸运礼物不要提醒消息

lizhen_gitee 1 year ago
parent
commit
adaec442fb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      application/api/controller/Party.php

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

@@ -2099,7 +2099,9 @@ class Party extends Api
                     }
 
                     // +message
-                    \app\common\model\Message::addMessage($user_id,"礼物通知","收到 ".$this->auth->nickname." 赠送的".$giftInfo["name"]." x".$number." 价值 ".$giftValue_rate ." 金币");
+                    if(isset($giftInfo['is_baobi']) && $giftInfo['is_baobi'] == 0){
+                        \app\common\model\Message::addMessage($user_id,"礼物通知","收到 ".$this->auth->nickname." 赠送的".$giftInfo["name"]." x".$number." 价值 ".$giftValue_rate ." 金币");
+                    }
 
 
                 }