function threadclasscount($fid, $id = 0, $idtype = '', $count = 0) {
if(!$fid) {
return false;
}
$typeflag = ($id && $idtype && in_array($idtype, array('typeid', 'sortid')));
$threadclasscount = C::t('common_cache')->fetch('threadclasscount_'.$fid);
$threadclasscount = dunserialize($threadclasscount['cachevalue']);
if($count) {
if($typeflag) {
$threadclasscount[$idtype][$id] = $count;
C::t('common_cache')->insert(array(
'cachekey' => 'threadclasscount_'.$fid,
'cachevalue' => serialize($threadclasscount),
), false, true);
return true;
} else {
return false;
}
} else {
if($typeflag) {
return $threadclasscount[$idtype][$id];
} else {
return $threadclasscount;
}
}
}
老周部落 發(fā)表于 2022-1-29 16:44
試試 https://gitee.com/laozhoubuluo/DiscuzX/commits/fix/v3.4/threadclasscount_0 補丁能否解決? ...
歡迎光臨 Discuz! 官方交流社區(qū) (http://www.letianbiye.cn/) | Powered by Discuz! W1.0 |