modify
This commit is contained in:
@@ -200,6 +200,7 @@ class Crontab extends BaseObject
|
|||||||
public function execute(): void
|
public function execute(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
var_dump($this->handler);
|
||||||
call_user_func($this->handler, $this->params, $this->name);
|
call_user_func($this->handler, $this->params, $this->name);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
$this->addError($throwable->getMessage());
|
$this->addError($throwable->getMessage());
|
||||||
|
|||||||
@@ -690,6 +690,9 @@ if (!function_exists('swoole_unserialize')) {
|
|||||||
*/
|
*/
|
||||||
function swoole_unserialize($data): mixed
|
function swoole_unserialize($data): mixed
|
||||||
{
|
{
|
||||||
|
if (empty($data)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (class_exists('swoole_serialize')) {
|
if (class_exists('swoole_serialize')) {
|
||||||
return \swoole_serialize::unpack($data);
|
return \swoole_serialize::unpack($data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user