Jelajahi Sumber

赠送礼物remark

lizhen_gitee 1 tahun lalu
induk
melakukan
3da27e63cc
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      application/api/controller/Gift.php

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

@@ -121,7 +121,7 @@ class Gift extends Api
         if($giftvalue > 0){
 
             // 扣除当前用户余额
-            $wallet_rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$giftvalue,53,'赠送给'.$touserinfo['nickname'].'礼物:'.$giftinfo["name"],'gift_user_typing',$log_id);
+            $wallet_rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$giftvalue,53,'赠送给'.$touserinfo['username'].'礼物:'.$giftinfo["name"],'gift_user_typing',$log_id);
             if($wallet_rs['status'] === false){
                 Db::rollback();
                 $this->error($wallet_rs['msg']);
@@ -134,7 +134,7 @@ class Gift extends Api
             $giftmoney = bcdiv($giftvalue,$money_to_gold,2);
 
             $money = bcdiv(bcmul($giftmoney,100 - $gift_plat_scale,2),100,2);
-            $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,'money',$money,54,$this->auth->nickname.'赠送礼物:'.$giftinfo["name"],'gift_user_typing',$log_id);
+            $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,'money',$money,54,'聊天赠送('.$this->auth->username.')礼物:'.$giftinfo["name"],'gift_user_typing',$log_id);
             if($wallet_rs['status'] === false){
                 Db::rollback();
                 $this->error($wallet_rs['msg']);