From 44b92ddb6fae27b7670ed5e4648d6cb68c084ff7 Mon Sep 17 00:00:00 2001 From: Hmily_LCG <68857640@qq.com> Date: Wed, 19 Jan 2022 10:04:44 +0000 Subject: [PATCH] =?UTF-8?q?update=20upload/source/class/extend/extend=5Fth?= =?UTF-8?q?read=5Freward.php.=20=E4=BF=AE=E5=A4=8D=E6=82=AC=E8=B5=8F?= =?UTF-8?q?=E5=B8=96=E7=BC=96=E8=BE=91=E5=A2=9E=E5=8A=A0=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E7=B3=BB=E7=BB=9F=E7=A7=AF=E5=88=86=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/extend/extend_thread_reward.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/source/class/extend/extend_thread_reward.php b/upload/source/class/extend/extend_thread_reward.php index 5f87b5815..a19ce01d8 100644 --- a/upload/source/class/extend/extend_thread_reward.php +++ b/upload/source/class/extend/extend_thread_reward.php @@ -90,10 +90,10 @@ class extend_thread_reward extends extend_thread_base { } elseif($addprice > getuserprofile('extcredits'.$this->setting['creditstransextra'][2])) { showmessage('reward_credits_shortage'); } - $realprice = ceil($this->thread['price'] + $this->thread['price'] * $this->setting['creditstax']); + $realprice = ceil($rewardprice + $rewardprice * $this->setting['creditstax']); updatemembercount($this->thread['authorid'], array($this->setting['creditstransextra'][2] => -$addprice)); - C::t('common_credit_log')->update_by_uid_operation_relatedid($this->thread['authorid'], 'RTC', $this->thread['tid'], array('extcredits'.$this->setting['creditstransextra'][2] => $realprice)); + C::t('common_credit_log')->update_by_uid_operation_relatedid($this->thread['authorid'], 'RTC', $this->thread['tid'], array('extcredits'.$this->setting['creditstransextra'][2] => -$realprice)); } if(!$this->forum['ismoderator']) { -- Gitee