mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-09 23:19:45 +08:00
ComposerUpdate
This commit is contained in:
parent
b06a4c29ec
commit
4cf917329c
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -963,12 +963,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "747278ffb2b1a450bc8e6724ffbff105bb9f5f47"
|
"reference": "61738ce3b2e4ae4698570f87ab00f9369b9830dd"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/747278ffb2b1a450bc8e6724ffbff105bb9f5f47",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/61738ce3b2e4ae4698570f87ab00f9369b9830dd",
|
||||||
"reference": "747278ffb2b1a450bc8e6724ffbff105bb9f5f47",
|
"reference": "61738ce3b2e4ae4698570f87ab00f9369b9830dd",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -985,7 +985,7 @@
|
|||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
"topthink/framework": "^6.0"
|
"topthink/framework": "^6.0"
|
||||||
},
|
},
|
||||||
"time": "2020-08-17T07:32:11+00:00",
|
"time": "2020-08-17T10:24:03+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"think": {
|
"think": {
|
||||||
|
@ -57,7 +57,7 @@ class SystemService extends Service
|
|||||||
} else {
|
} else {
|
||||||
$this->app->cache->delete($this->table);
|
$this->app->cache->delete($this->table);
|
||||||
$data = ['type' => $type, 'name' => $field, 'value' => $value];
|
$data = ['type' => $type, 'name' => $field, 'value' => $value];
|
||||||
$query = $this->app->db->name($this->table)->where(['type' => $type, 'name' => $name]);
|
$query = $this->app->db->name($this->table)->where(['type' => $type, 'name' => $field]);
|
||||||
return (clone $query)->count() > 0 ? $query->update($data) : $query->insert($data);
|
return (clone $query)->count() > 0 ? $query->update($data) : $query->insert($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class LocalStorage extends Storage
|
|||||||
*/
|
*/
|
||||||
protected function initialize()
|
protected function initialize()
|
||||||
{
|
{
|
||||||
$type = strtolower(sysconf('storage.local_http_protocol'));
|
$type = sysconf('storage.local_http_protocol') ?: 'follow';
|
||||||
if ($type === 'follow') $type = $this->app->request->scheme();
|
if ($type === 'follow') $type = $this->app->request->scheme();
|
||||||
$this->prefix = trim(dirname($this->app->request->baseFile(false)), '\\/');
|
$this->prefix = trim(dirname($this->app->request->baseFile(false)), '\\/');
|
||||||
if ($type !== 'path') {
|
if ($type !== 'path') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user