src/Leevel/Http/ApiResponse.php
public function ok($content = '', ?string $text = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setStatusCode(static::HTTP_OK, $text);

        return $this->setData($content);
    }
public function ok($content = '', ?string $text = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setStatusCode(static::HTTP_OK, $text);

        return $this->setData($content);
    }
请求成功
一般用于GET与POST请求: 200.

@param mixed  $content
@param string $text

@return $this