core/Mysql.php
public function getRow(string $sql, $args = null, $fetch_style = null, $cursor_orientation = null, $cursor_offset = 0)
    {
        if ($fetch_style === null) {
            $fetch_style = PDO::FETCH_ASSOC;
        }
        $stm = $this->execute($sql, $args);
        $row = $stm->fetch($fetch_style, $cursor_orientation, $cursor_offset);
        $stm->closeCursor();
        return $row === false ? null : $row;
    }
public function getRow(string $sql, $args = null, $fetch_style = null, $cursor_orientation = null, $cursor_offset = 0)
    {
        if ($fetch_style === null) {
            $fetch_style = PDO::FETCH_ASSOC;
        }
        $stm = $this->execute($sql, $args);
        $row = $stm->fetch($fetch_style, $cursor_orientation, $cursor_offset);
        $stm->closeCursor();
        return $row === false ? null : $row;
    }
获取单行记录
@param string $sql
@param null $args
@param null $fetch_style
@param null $cursor_orientation
@param int $cursor_offset
@return mixed|null
@throws MysqlException