本地生活商家设置默认的Logo

This commit is contained in:
wangxiaowei 2024-10-23 09:42:02 +08:00
parent 6cc06f7357
commit 5187434be6

@ -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");