ComposerUpdate

This commit is contained in:
Anyon 2020-08-17 18:37:01 +08:00
parent b06a4c29ec
commit 4cf917329c
3 changed files with 6 additions and 6 deletions

View File

@ -963,12 +963,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "747278ffb2b1a450bc8e6724ffbff105bb9f5f47"
"reference": "61738ce3b2e4ae4698570f87ab00f9369b9830dd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/747278ffb2b1a450bc8e6724ffbff105bb9f5f47",
"reference": "747278ffb2b1a450bc8e6724ffbff105bb9f5f47",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/61738ce3b2e4ae4698570f87ab00f9369b9830dd",
"reference": "61738ce3b2e4ae4698570f87ab00f9369b9830dd",
"shasum": "",
"mirrors": [
{
@ -985,7 +985,7 @@
"ext-mbstring": "*",
"topthink/framework": "^6.0"
},
"time": "2020-08-17T07:32:11+00:00",
"time": "2020-08-17T10:24:03+00:00",
"type": "library",
"extra": {
"think": {

View File

@ -57,7 +57,7 @@ class SystemService extends Service
} else {
$this->app->cache->delete($this->table);
$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);
}
}

View File

@ -33,7 +33,7 @@ class LocalStorage extends Storage
*/
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();
$this->prefix = trim(dirname($this->app->request->baseFile(false)), '\\/');
if ($type !== 'path') {