Browse Source

Merge branch 'master' of https://git.bjtdba.com/shop/php

hefei 1 year ago
parent
commit
8cc15aa23f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/controller/api/store/merchant/Merchant.php

+ 3 - 0
app/controller/api/store/merchant/Merchant.php

@@ -185,6 +185,9 @@ class Merchant extends BaseController
185 185
                 $goods = $this->repository->productList($mer['mer_id'],$where, 1, 3,$this->userInfo,false,$is_commercetrade);
186 186
                 if(empty($goods['list'])) continue;
187 187
                 $mer['goods_list'] = $goods['list'];
188
+                if (mb_strlen($mer['mer_name']) > 8) {
189
+                    $mer['mer_name'] = mb_substr($mer['mer_name'], 0, 8) . '...';
190
+                }
188 191
                 $return_list[] = $mer;
189 192
             }
190 193
         }