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