From fb2ebbce8d8f41b0376d71b459e80277c5dfa787 Mon Sep 17 00:00:00 2001 From: Discuz! Date: Tue, 7 Feb 2017 10:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=80=80=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/include/topicadmin/topicadmin_refund.php | 7 ++++--- upload/template/default/forum/topicadmin_action.htm | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/upload/source/include/topicadmin/topicadmin_refund.php b/upload/source/include/topicadmin/topicadmin_refund.php index 8035158..3e8a2bf 100644 --- a/upload/source/include/topicadmin/topicadmin_refund.php +++ b/upload/source/include/topicadmin/topicadmin_refund.php @@ -27,7 +27,7 @@ if(!submitcheck('modsubmit')) { $payment = C::t('common_credit_log')->count_stc_by_relatedid($_G['tid'], $_G['setting']['creditstransextra'][1]); $payment['payers'] = intval($payment['payers']); - $payment['netincome'] = intval($payment['netincome']); + $payment['income'] = intval($payment['income']); include template('forum/topicadmin_action'); @@ -43,8 +43,9 @@ if(!submitcheck('modsubmit')) { $logarray = array(); foreach(C::t('common_credit_log')->fetch_all_by_uid_operation_relatedid(0, 'BTC', $_G['tid']) as $log) { - $totalamount += $log['amount']; - $amountarray[$log['amount']][] = $log['uid']; + $amount = abs($log['extcredits'.$_G['setting']['creditstransextra'][1]]); + $totalamount += $amount; + $amountarray[$amount][] = $log['uid']; } updatemembercount($thread['authorid'], array($_G['setting']['creditstransextra'][1] => -$totalamount)); diff --git a/upload/template/default/forum/topicadmin_action.htm b/upload/template/default/forum/topicadmin_action.htm index a3fbb22..75bcfb2 100644 --- a/upload/template/default/forum/topicadmin_action.htm +++ b/upload/template/default/forum/topicadmin_action.htm @@ -82,7 +82,7 @@ {lang pay_author_income} - $payment[netincome] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]} + $payment[income] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}