mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正mongo驱动一处Notice
修正response::redirect()一处变量
This commit is contained in:
@@ -310,7 +310,7 @@ class Mongo extends Driver
|
|||||||
$this->model = $options['model'];
|
$this->model = $options['model'];
|
||||||
$query = $this->parseWhere($options['where']);
|
$query = $this->parseWhere($options['where']);
|
||||||
$set = $this->parseSet($data);
|
$set = $this->parseSet($data);
|
||||||
if ($this->config['debug']) {
|
if (!empty($this->config['debug'])) {
|
||||||
$this->queryStr = $this->_dbName . '.' . $this->_collectionName . '.update(';
|
$this->queryStr = $this->_dbName . '.' . $this->_collectionName . '.update(';
|
||||||
$this->queryStr .= $query ? json_encode($query) : '{}';
|
$this->queryStr .= $query ? json_encode($query) : '{}';
|
||||||
$this->queryStr .= ',' . json_encode($set) . ')';
|
$this->queryStr .= ',' . json_encode($set) . ')';
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ class Response
|
|||||||
$http_response_code = $params;
|
$http_response_code = $params;
|
||||||
$params = [];
|
$params = [];
|
||||||
}
|
}
|
||||||
$url = preg_match('/^(https?:|\/)/', $s) ? $url : Url::build($url, $params);
|
$url = preg_match('/^(https?:|\/)/', $url) ? $url : Url::build($url, $params);
|
||||||
header('Location: ' . $url, true, $http_response_code);
|
header('Location: ' . $url, true, $http_response_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user