Browse Source

大礼物跟设置走,不按价值

lizhen_gitee 1 year ago
parent
commit
aae9e96a04
2 changed files with 2 additions and 5 deletions
  1. 2 3
      application/api/controller/Party.php
  2. 0 2
      application/extra/site.php

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

@@ -1876,10 +1876,9 @@ class Party extends Common
     private function bigGiftNotice($giftUserParty){
         if ($giftUserParty->party_id > 0) {
 
-            $bigGiftNotice = config("site.bigGiftNotice");
-            $money = $giftUserParty->value;
+            $is_big = Db::name('gift')->where('id',$giftUserParty->gift_id)->value('is_big');
 
-            if ($money >= $bigGiftNotice) {
+            if ($is_big == 1) {
                 $partyInfo = $giftUserParty->party;
                 $notice = new GatewayworkerTools();
                 $notice->sendBigGiftInParty($giftUserParty->user->nickname,$giftUserParty->toUser->nickname,$partyInfo,$giftUserParty);

+ 0 - 2
application/extra/site.php

@@ -115,6 +115,4 @@ return [
     'money_to_jewel' => '10',
     'eggplay_paymoney_min' => '1000',
     'invite_money' => '1',
-    'giftNotice' => '1',
-    'bigGiftNotice' => '100',
 ];