shish 4 ヶ月 前
コミット
50e094e285
1 ファイル変更2 行追加0 行削除
  1. 2 0
      app-ghs/controllers/ProductController.php

+ 2 - 0
app-ghs/controllers/ProductController.php

@@ -223,6 +223,8 @@ class ProductController extends BaseController
         $hyPrice = floatval($hyPrice);
 
         $name = $info->name ?? '';
+        $name = preg_replace('/\s{2,}/', ' ', $name ?? '');
+        
         $ptItemId = $info->itemId ?? 0;
         $mainId = $info->mainId ?? 0;
         $ext = $this->shopExt;