From 52cb4545b70c026c6e94f0b44c58b347b3dae82e Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 23 Aug 2024 17:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB=E7=BC=96=E8=BE=91=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index 788daf17..bfd62312 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -95,12 +95,6 @@ class LocalStore extends Api ->select() ->toArray(); - foreach ($lists as &$v) { - if (!empty($v['shopLogo'])) { - $v['shopLogo'] = FileConfig::get('aliyunoss.domain') . 'local_life_shop/' . $v['shopLogo']; - } - } - $count = Db::name('local_store') ->where(['user_id' => $this->user_id, 'store_state' => 1]) ->count(); @@ -248,7 +242,7 @@ class LocalStore extends Api if ($id && $header_image) { $result = Db::name('local_store') ->where(['lstore_id' => $id, 'user_id' => $this->user_id]) - ->update(['shopLogo' => 'local_life_shop/' . basename($header_image), 'update_time' => date('Y-m-d H:i:s')]); + ->update(['shopLogo' => 'local_life_shop/' . $header_image, 'update_time' => date('Y-m-d H:i:s')]); } if ($id && $store_name) {