zhangjingyu
备份一段相关代码(重点应该是12,14行):
apps/collection/action/ajax.php
if ($collectionService->insert($collectionDate)) {
if ($type == 'tucool' && $threads[tid]) {
$tucoolService = L::loadClass('tucool', 'forum');
$tucoolService->updateCollectNum($threads[tid]);
}
if($type == 'postfavor'){
$fid = $db->get_value('SELECT fid FROM pw_threads WHERE tid = '.S::sqlEscape($id));
L::loadClass('elementupdate', '', false);
$elementupdate = new ElementUpdate();
$elementupdate->newfavorUpdate($id, $fid);
if ($db_ifpwcache & 1024) {
$elementupdate->hotfavorUpdate($id, $fid);
}
updateDatanalyse($id, 'threadFav', 1);
}
Showmsg('job_favor_success');ajax_footer();
} else {
Showmsg('data_error');
}
}