Browse Source

送礼物增加亲密度

lizhen_gitee 11 months ago
parent
commit
768cc00926
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Gift.php

+ 2 - 2
application/api/controller/Gift.php

@@ -156,9 +156,9 @@ class Gift extends Api
         $res_wealth = \app\common\model\User::add_charm_level($user_id,$giftvalue);
         //增加亲密度
         if ($this->auth->id > $user_id) { //大的在后
-            \app\common\model\User::add_intimacy($user_id,$this->auth->id);
+            \app\common\model\User::add_intimacy($user_id,$this->auth->id,$giftvalue);
         } else { //小的在前
-            \app\common\model\User::add_intimacy($this->auth->id,$user_id);
+            \app\common\model\User::add_intimacy($this->auth->id,$user_id,$giftvalue);
         }