Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
46
addons/epay/library/Response.php
普通文件
46
addons/epay/library/Response.php
普通文件
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace addons\epay\library;
|
||||
|
||||
class Response extends \Symfony\Component\HttpFoundation\Response implements \JsonSerializable, \Serializable
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getContent();
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return $this->getContent();
|
||||
}
|
||||
|
||||
public function serialize()
|
||||
{
|
||||
return serialize($this->content);
|
||||
}
|
||||
|
||||
public function unserialize($data)
|
||||
{
|
||||
return $this->content = unserialize($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* (PHP 8.1+) Magic method for serialization.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function __serialize()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* (PHP 8.1+) Magic method for unserialization.
|
||||
*
|
||||
* @param array $data
|
||||
*/
|
||||
public function __unserialize(array $data): void
|
||||
{
|
||||
$this->content = $data;
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户