修复 附件点击数不更新
This commit is contained in:
parent
f3384c5b95
commit
e419966f5f
|
@ -26,6 +26,7 @@ class table_forum_attachment extends discuz_table
|
|||
}
|
||||
|
||||
public function update_download($aid, $count = 1) {
|
||||
$this->clear_cache($aid);
|
||||
return DB::query("UPDATE %t SET downloads=downloads+%d WHERE aid IN (%n)", array($this->_table, $count, (array)$aid), false, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue