mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
fix self property bug
This commit is contained in:
@@ -25,7 +25,7 @@ class BotContext implements ContextInterface
|
||||
private static array $bots = [];
|
||||
|
||||
/** @var null|string[] 记录当前上下文绑定的机器人 */
|
||||
private array $self;
|
||||
private ?array $self;
|
||||
|
||||
/** @var array 如果是 BotCommand 匹配的上下文,这里会存放匹配到的参数 */
|
||||
private array $params = [];
|
||||
|
||||
@@ -40,7 +40,7 @@ trait BotActionTrait
|
||||
$message = MessageUtil::convertToArr($message);
|
||||
$params['message'] = $message;
|
||||
$params['detail_type'] = $detail_type;
|
||||
return $this->sendAction(Utils::camelToSeparator(__FUNCTION__), $params, $this->getSelf());
|
||||
return $this->sendAction(Utils::camelToSeparator(__FUNCTION__), $params, $this->self);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user