Browse Source

送礼物优化

lizhen_gitee 1 year ago
parent
commit
59dd8d7f21
1 changed files with 7 additions and 0 deletions
  1. 7 0
      application/api/controller/Partytest.php

+ 7 - 0
application/api/controller/Partytest.php

@@ -69,6 +69,9 @@ class Party extends Common
         {
             $this->error(__('Invalid parameters'));
         }
+        if(!$party_id){
+            $this->error('只有房间内能送礼物');
+        }
 
         //处理参数
         $user_id_arr = explode(",",$user_ids);
@@ -87,6 +90,8 @@ class Party extends Common
         $giftValue = 0;
         //每个人都能得到的礼物价值
         $getValue = 0;
+        //热度值
+        $hotValue = 0;
 
         if($is_back == 1) {
             // 获取背包礼物信息
@@ -411,4 +416,6 @@ class Party extends Common
         }
     }
 
+}
+