mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 11:41:27 +08:00
17 lines
406 B
PHP
17 lines
406 B
PHP
<?php
|
|
|
|
namespace App\Library\Http;
|
|
|
|
use Phalcon\Http\ResponseInterface;
|
|
|
|
class Response extends \Phalcon\Http\Response
|
|
{
|
|
|
|
public function setJsonContent($content, $jsonOptions = 0, $depth = 512): ResponseInterface
|
|
{
|
|
$jsonOptions = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION;
|
|
|
|
return parent::setJsonContent($content, $jsonOptions, $depth);
|
|
}
|
|
|
|
} |