diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 463f8358d..1ac997db7 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -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": { diff --git a/vendor/zoujingli/think-library/src/service/SystemService.php b/vendor/zoujingli/think-library/src/service/SystemService.php index a8da3acb7..a78f1f2ab 100644 --- a/vendor/zoujingli/think-library/src/service/SystemService.php +++ b/vendor/zoujingli/think-library/src/service/SystemService.php @@ -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); } } diff --git a/vendor/zoujingli/think-library/src/storage/LocalStorage.php b/vendor/zoujingli/think-library/src/storage/LocalStorage.php index 6305290d7..001d46ff4 100644 --- a/vendor/zoujingli/think-library/src/storage/LocalStorage.php +++ b/vendor/zoujingli/think-library/src/storage/LocalStorage.php @@ -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') {