fix data error bug

This commit is contained in:
crazywhalecc 2023-01-04 21:24:04 +08:00
parent d708485918
commit e526a94520
No known key found for this signature in database
GPG Key ID: 4B0FFA175E762022

View File

@ -283,7 +283,8 @@ class OneBot12Adapter extends ZMPlugin
$resp->retcode = $body['retcode'];
$resp->status = $body['status'];
$resp->message = $body['message'] ?? '';
$resp->data = $body['data'] ?? null;
$resp->data = $body['data'] ?? [];
$resp->echo = $body['echo'] ?? null;
ContainerRegistrant::registerOBActionResponseServices($resp);