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