|
|
@@ -99,11 +99,11 @@ class Table_reader extends Table
|
|
|
return $this->pdo->sqlupdate($this->table_fullname, $param, $where);
|
|
|
}
|
|
|
|
|
|
- public function addCountByOpenId($openId)
|
|
|
+ public function addCountByOpenId($openId, $newCount)
|
|
|
{
|
|
|
$param = array(
|
|
|
'reader_addtime' => array('number', time()),
|
|
|
- 'reader_count' => array('string', 'reader_count+1'),
|
|
|
+ 'reader_count' => array('string', $newCount),
|
|
|
);
|
|
|
|
|
|
$where = array(
|