Discuz! System ErrorTime: 2024-03-30 12:28:53 +0800 IP: 114.101.49.196 BackTraceID: 29036c4f0a3755191c26ce5d47e309bdCannot access offset of type string on string PHP Debug No.FileLineCode1forum.php71r ... 查看全文
湖中沉 發表于 2024-3-30 14:06 經過我多次試驗發現默認100的情況有的可以,有的主題確實不行。價格都是一樣的也不行。我把默認的單主題收入限制改成不限制就好了 |
不要用點評,因為點評功能無法回復。 你肯定是X3.4升級的,因為X3.5新裝的話是有默認值的,而以前X3.4等因為當時時代原因(PHP8以前對類型是弱限制),沒有必填嚴格限制 |
湖中沉 發表于 2024-3-30 12:59 } else { $updateauthor = true; $authorEarn = $thread['netprice']; if($_G['setting']['maxincperthread'] > 0) { $extcredit = 'extcredits'.$_G['setting']['creditstransextra'][1]; $log = C::t('common_credit_log')->count_credit_by_uid_operation_relatedid($thread['authorid'], 'STC', $_G['tid'], $_G['setting']['creditstransextra'][1]); if($log >= $_G['setting']['maxincperthread']) { $updateauthor = false; } else { $authorEarn = min($_G['setting']['maxincperthread'] - $log['credit'], $thread['netprice']); } } if($updateauthor) { updatemembercount($thread['authorid'], array($_G['setting']['creditstransextra'][1] => $authorEarn), 1, 'STC', $_G['tid']); } updatemembercount($_G['uid'], array($_G['setting']['creditstransextra'][1] => -$thread['price']), 1, 'BTC', $_G['tid']); showmessage('thread_pay_succeed', "forum.php?mod=viewthread&tid={$_G['tid']}".($_GET['from'] ? '&from='.$_GET['from'] : '')); } } elseif($_GET['action'] 我這是官方文件。這個文件沒有修改過。因為我不會修改。 |
手機版|小黑屋|Discuz! 官方交流社區
( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|
GMT+8, 2025-9-20 07:46 , Processed in 0.067988 second(s), 33 queries .
Powered by Discuz! W1.0 Licensed
Copyright © 2001-2025 Discuz! Team.