Browse Source

赠送礼物

lizhen_gitee 1 year ago
parent
commit
9c8a0474ea
2 changed files with 8 additions and 4 deletions
  1. 4 2
      application/api/controller/Party.php
  2. 4 2
      application/api/controller/Partygift.php

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

@@ -1719,9 +1719,11 @@ class Party extends Common
                 }*/
 
                 //总消费增加
-                $res6 = Db::name('user')->where('id',$user_id)->setInc("renewcount", $giftCountValue);
+                if($is_back != 1){
+                    $res6 = Db::name('user')->where('id',$user_id)->setInc("renewcount", $giftCountValue);
+                }
 
-                if ($res1 && $res2 && $res5 && $res6) {
+                if ($res1 && $res2 && $res5) {
                     $i++;
                     if($party_id > 0) {
                         // 添加redis记录做财富排行榜日榜用

+ 4 - 2
application/api/controller/Partygift.php

@@ -265,9 +265,11 @@ class Partygift extends Common
                 }*/
 
                 //总消费增加
-                $res6 = Db::name('user')->where('id',$user_id)->setInc("renewcount", $giftCountValue);
+                if($is_back != 1){
+                    $res6 = Db::name('user')->where('id',$user_id)->setInc("renewcount", $giftCountValue);
+                }
 
-                if ($res1 && $res2 && $res5 && $res6) {
+                if ($res1 && $res2 && $res5) {
                     $i++;
                     if($party_id > 0) {
                         // 添加redis记录做财富排行榜日榜用