From 5187434be6e4cdd83ccb98265713d963de276b2d Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Wed, 23 Oct 2024 09:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E7=9A=84Logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index 726dc5a9..08fabd4e 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -9,7 +9,9 @@ use app\common\basics\Api; use app\common\enum\NoticeEnum; use app\common\model\user\User; use app\common\server\ConfigServer; +use app\common\server\FileServer; use app\common\server\JsonServer; +use app\common\server\UrlServer; use app\common\server\WeChatServer; use app\common\model\LocalStorePostStation; use EasyWeChat\Factory; @@ -85,6 +87,9 @@ class LocalStore extends Api } } catch (\Exception $e) {} + // 如果商家没有上传Logo的话,就设置个默认的头像 + $data['shopLogo'] = !empty($data['shopLogo']) ? $data['shopLogo'] : UrlServer::getFileUrl('local_life_shop_logo/20240910182643579523534.png'); + if (isset($data['lstore_id']) && $data['lstore_id'] != 0) { $data['store_state'] = 0; $data['update_time'] = date("Y-m-d H:i:s");