Browse Source

视频,语音,私聊都要增加魅力等级,财富等级

lizhen_gitee 11 months ago
parent
commit
e5be2d643d
1 changed files with 15 additions and 0 deletions
  1. 15 0
      application/api/controller/Match.php

+ 15 - 0
application/api/controller/Match.php

@@ -170,6 +170,11 @@ class Match extends Api
                     $this->error($rs['msg']);
                 }
             }
+
+            //增加送礼用户的财富等级
+            $res_wealth = \app\common\model\User::add_wealth_level($this->auth->id,$price);
+            //增加获赠用户的魅力等级
+            $res_wealth = \app\common\model\User::add_charm_level($to_user_id,$price);
         }
 
         //tag任务赠送金币
@@ -309,6 +314,11 @@ class Match extends Api
                     $this->error($rs['msg']);
                 }
             }
+
+            //增加送礼用户的财富等级
+            $res_wealth = \app\common\model\User::add_wealth_level($this->auth->id,$price);
+            //增加获赠用户的魅力等级
+            $res_wealth = \app\common\model\User::add_charm_level($to_user_id,$price);
         }
 
         //tag任务赠送金币
@@ -424,6 +434,11 @@ class Match extends Api
                     $this->error($rs['msg']);
                 }
             }
+
+            //增加送礼用户的财富等级
+            $res_wealth = \app\common\model\User::add_wealth_level($this->auth->id,$price);
+            //增加获赠用户的魅力等级
+            $res_wealth = \app\common\model\User::add_charm_level($to_user_id,$price);
         }
 
         Db::commit();