解决 Discuz! X2.5 抢楼帖回复后显示已中奖,刷新后楼层变化的问题
解决抢楼帖回复后显示已中奖,刷新后楼层变化的问题。
解决办法如下:
打开文件
source/module/forum/forum_viewthread.php
890行左右找到
if($rushreply) {
$preg_str = rushreply_rule($rewardfloorarr);
preg_match_all($preg_str, ",,".$post['number'].",,", $arr);
if($post['number'] == str_replace(",", '', $arr['0']['0'])) {
$post['rewardfloor'] = 1;
}
}
改为
if($rushreply) {
$post['number'] = $post['position'];
$preg_str = rushreply_rule($rewardfloorarr);
preg_match_all($preg_str, ",,".$post['number'].",,", $arr);
if($post['number'] == str_replace(",", '', $arr['0']['0'])) {
$post['rewardfloor'] = 1;
}
}
页:
[1]