mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-14 04:05:35 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6f33ba69d |
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
同时此处将只使用 build 版本号进行区分。
|
同时此处将只使用 build 版本号进行区分。
|
||||||
|
|
||||||
|
## build 430 (2021-12-8)
|
||||||
|
|
||||||
|
- 删除调试信息
|
||||||
|
- 修复 #56 中关于数据库组件的 Bug
|
||||||
|
|
||||||
## build 429 (2021-12-7)
|
## build 429 (2021-12-7)
|
||||||
|
|
||||||
- 新增配置项 `onebot`.`message_command_policy`
|
- 新增配置项 `onebot`.`message_command_policy`
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# 更新日志(v2 版本)
|
# 更新日志(v2 版本)
|
||||||
|
|
||||||
|
# v2.6.3 (build 430)
|
||||||
|
|
||||||
|
> 更新时间:2021.12.8
|
||||||
|
|
||||||
|
- 删除调试信息
|
||||||
|
- 修复 #56 中关于数据库组件的 Bug
|
||||||
|
|
||||||
## v2.6.2 (build 429)
|
## v2.6.2 (build 429)
|
||||||
|
|
||||||
> 更新时间:2021.12.7
|
> 更新时间:2021.12.7
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ class ConsoleApplication extends Application
|
|||||||
{
|
{
|
||||||
private static $obj = null;
|
private static $obj = null;
|
||||||
|
|
||||||
const VERSION_ID = 429;
|
const VERSION_ID = 430;
|
||||||
const VERSION = "2.6.2";
|
const VERSION = "2.6.3";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws InitException
|
* @throws InitException
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ class QQBot
|
|||||||
$after->setRuleFunction(function ($v) use ($data) {
|
$after->setRuleFunction(function ($v) use ($data) {
|
||||||
return $v->cq_event == $data["post_type"];
|
return $v->cq_event == $data["post_type"];
|
||||||
});
|
});
|
||||||
zm_dump("开始触发!", $data);
|
|
||||||
$after->dispatchEvents($data);
|
$after->dispatchEvents($data);
|
||||||
return $after;
|
return $after;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,19 +17,23 @@ class MySQLStatement implements IteratorAggregate, Statement
|
|||||||
/** @var PDOStatement|PDOStatementProxy */
|
/** @var PDOStatement|PDOStatementProxy */
|
||||||
private $statement;
|
private $statement;
|
||||||
|
|
||||||
public function __construct($obj) {
|
public function __construct($obj)
|
||||||
|
{
|
||||||
$this->statement = $obj;
|
$this->statement = $obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function closeCursor() {
|
public function closeCursor()
|
||||||
|
{
|
||||||
return $this->statement->closeCursor();
|
return $this->statement->closeCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function columnCount() {
|
public function columnCount()
|
||||||
|
{
|
||||||
return $this->statement->columnCount();
|
return $this->statement->columnCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = []) {
|
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = [])
|
||||||
|
{
|
||||||
if ($arg2 !== null && $arg3 !== [])
|
if ($arg2 !== null && $arg3 !== [])
|
||||||
return $this->statement->setFetchMode($fetchMode, $arg2, $arg3);
|
return $this->statement->setFetchMode($fetchMode, $arg2, $arg3);
|
||||||
elseif ($arg2 !== null && $arg3 === [])
|
elseif ($arg2 !== null && $arg3 === [])
|
||||||
@@ -40,47 +44,63 @@ class MySQLStatement implements IteratorAggregate, Statement
|
|||||||
return $this->statement->setFetchMode($fetchMode);
|
return $this->statement->setFetchMode($fetchMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fetch($fetchMode = PDO::FETCH_ASSOC, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) {
|
public function fetch($fetchMode = PDO::FETCH_ASSOC, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
|
||||||
|
{
|
||||||
return $this->statement->fetch($fetchMode, $cursorOrientation, $cursorOffset);
|
return $this->statement->fetch($fetchMode, $cursorOrientation, $cursorOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fetchAll($fetchMode = PDO::FETCH_ASSOC, $fetchArgument = null, $ctorArgs = null) {
|
public function fetchAll($fetchMode = PDO::FETCH_ASSOC, $fetchArgument = null, $ctorArgs = null)
|
||||||
return $this->statement->fetchAll($fetchMode, $fetchArgument, $ctorArgs);
|
{
|
||||||
|
if ($fetchArgument === null && $ctorArgs === null)
|
||||||
|
return $this->statement->fetchAll($fetchMode);
|
||||||
|
elseif ($fetchArgument !== null && $ctorArgs === null)
|
||||||
|
return $this->statement->fetchAll($fetchMode, $fetchArgument);
|
||||||
|
else
|
||||||
|
return $this->statement->fetchAll($fetchMode, $fetchArgument, $ctorArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fetchColumn($columnIndex = 0) {
|
public function fetchColumn($columnIndex = 0)
|
||||||
|
{
|
||||||
return $this->statement->fetchColumn($columnIndex);
|
return $this->statement->fetchColumn($columnIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bindValue($param, $value, $type = ParameterType::STRING) {
|
public function bindValue($param, $value, $type = ParameterType::STRING)
|
||||||
|
{
|
||||||
return $this->statement->bindValue($param, $value, $type);
|
return $this->statement->bindValue($param, $value, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null) {
|
public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null)
|
||||||
|
{
|
||||||
return $this->statement->bindParam($param, $variable, $type, $length);
|
return $this->statement->bindParam($param, $variable, $type, $length);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function errorCode() {
|
public function errorCode()
|
||||||
|
{
|
||||||
return $this->statement->errorCode();
|
return $this->statement->errorCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function errorInfo() {
|
public function errorInfo()
|
||||||
|
{
|
||||||
return $this->statement->errorInfo();
|
return $this->statement->errorInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function execute($params = null) {
|
public function execute($params = null)
|
||||||
|
{
|
||||||
return $this->statement->execute($params);
|
return $this->statement->execute($params);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function rowCount() {
|
public function rowCount()
|
||||||
|
{
|
||||||
return $this->statement->rowCount();
|
return $this->statement->rowCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIterator() {
|
public function getIterator()
|
||||||
|
{
|
||||||
return new StatementIterator($this);
|
return new StatementIterator($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function current() {
|
public function current()
|
||||||
|
{
|
||||||
return $this->statement->current();
|
return $this->statement->current();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user