Browse Source

分享功能

shish 3 years ago
parent
commit
1205cda02a
1 changed files with 0 additions and 14 deletions
  1. 0 14
      app-ghs/controllers/ItemController.php

+ 0 - 14
app-ghs/controllers/ItemController.php

@@ -55,13 +55,6 @@ class ItemController extends BaseController
         $priceBase64 = stringUtil::ossBase64($newPrice);
 
         $name = $item->name ?? '';
-        if ($item->presell == 1) {
-            $name = '【预售】' . $name;
-        } else {
-            if ($item->discountPrice > 0) {
-                $name = '【特价】' . $name;
-            }
-        }
         $nameBase64 = stringUtil::ossBase64($name);
 
         $staff = $this->shopAdmin;
@@ -137,13 +130,6 @@ class ItemController extends BaseController
         $priceBase64 = stringUtil::ossBase64($newPrice);
 
         $name = $item->name ?? '';
-        if ($item->presell == 1) {
-            $name = '【预售】' . $name;
-        } else {
-            if ($item->discountPrice > 0) {
-                $name = '【特价】' . $name;
-            }
-        }
         $nameBase64 = stringUtil::ossBase64($name);
 
         $staff = $this->shopAdmin;