/** * 更新单条数据,会自动分析数组$row中的键值,过滤表字段中不存在的键值 * * @param string $table * @param array $row * @param string $conditions * @return 返回数据表受影响的行数 */ public function update($row, $conditions = null) { $row = $this->autoFields($row, 'update'); return parent::update($this->trueTableName, $row, $conditions); }