From d5b347d0c9ff851492a2e06ae4fc32cdcc6cb627 Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 4 Nov 2021 11:02:36 +0800 Subject: [PATCH] api_biz_1104_2 --- api/controllers/wxapp/material/Biz.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controllers/wxapp/material/Biz.php b/api/controllers/wxapp/material/Biz.php index 8e02ebe1..ee3c30e0 100644 --- a/api/controllers/wxapp/material/Biz.php +++ b/api/controllers/wxapp/material/Biz.php @@ -96,7 +96,8 @@ class Biz extends Wxapp array_multisort($countKey, SORT_DESC, $lists);//排序 $this->data['title'] = '店铺'; $this->data['bg_img'] = 'https://qs.haodian.cn/wechat_app/liche/storeInfo/theme.png'; - $this->data['biz_name'] = '狸车· ' . $re['biz_name'] . '店'; + $biz_name = strstr($re['biz_name'], '店') ? $re['biz_name'] : $re['biz_name'] . '店'; + $this->data['biz_name'] = '狸车· ' . $biz_name; $this->data['address'] = $re['address']; $this->data['lat'] = $re['lat']; $this->data['lng'] = $re['lng'];