Selaa lähdekoodia

修改goods_name 显示逻辑

tiams@foxmail.com 9 vuotta sitten
vanhempi
commit
cd8f2da08a
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      helper/goods_helper.php
  2. 2 2
      shop/control/store_goods_online.php

+ 1 - 0
helper/goods_helper.php

@@ -63,6 +63,7 @@ class goods_helper
             $value['goods_image_url'] = cthumb($value['goods_image'], 360, $value['store_id']);
             $value['goods_state'] = 1;
             $value['goods_storage_state'] = 1;
+            $value['goods_name'] = $value['goods_mobile_name'];
 
             $fields = 'store_id,nc_distinct,gc_id,goods_image,goods_salenum,evaluation_good_star,evaluation_count,is_virtual,is_presell,' .
                 'is_fcode,have_gift,goods_storage,goods_storage_alarm,goods_attr,group_flag,xianshi_flag';

+ 2 - 2
shop/control/store_goods_online.php

@@ -407,7 +407,7 @@ class store_goods_onlineControl extends BaseSellerControl {
                     $update = array ();
                     $update['goods_commonid']    = $common_id;
                     $update['goods_name']        = $update_common['goods_name'] . ' ' . implode(' ', $value['sp_value']);
-                    $update['goods_mobile_name'] = $update_common['goods_mobile_name'] . ' ' . implode(' ', $value['sp_value']);
+                    $update['goods_mobile_name'] = $update_common['goods_mobile_name'];
                     $update['goods_jingle']      = $update_common['goods_jingle'];
                     $update['store_id']          = $_SESSION['store_id'];
                     $update['store_name']        = $_SESSION['store_name'];
@@ -455,7 +455,7 @@ class store_goods_onlineControl extends BaseSellerControl {
                     $insert = array();
                     $insert['goods_commonid']    = $common_id;
                     $insert['goods_name']        = $update_common['goods_name'] . ' ' . implode(' ', $value['sp_value']);
-                    $insert['goods_mobile_name'] = $update_common['goods_mobile_name'] . ' ' . implode(' ', $value['sp_value']);
+                    $insert['goods_mobile_name'] = $update_common['goods_mobile_name'];
                     $insert['goods_jingle']      = $update_common['goods_jingle'];
                     $insert['store_id']          = $_SESSION['store_id'];
                     $insert['store_name']        = $_SESSION['store_name'];