Forráskód Böngészése

Add 'goods_mobile_name' to 'goods' table

Wan Xin 9 éve
szülő
commit
abb8ecf8b2
2 módosított fájl, 6 hozzáadás és 0 törlés
  1. 2 0
      alter.sql
  2. 4 0
      shop/control/store_goods_online.php

+ 2 - 0
alter.sql

@@ -0,0 +1,2 @@
+alter table 33hao.33hao_goods_common add `goods_mobile_name` varchar(50);
+alter table 33hao.33hao_goods add `goods_mobile_name` varchar(50);    

+ 4 - 0
shop/control/store_goods_online.php

@@ -401,6 +401,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_jingle']      = $update_common['goods_jingle'];
                     $update['store_id']          = $_SESSION['store_id'];
                     $update['store_name']        = $_SESSION['store_name'];
@@ -448,6 +449,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_jingle']      = $update_common['goods_jingle'];
                     $insert['store_id']          = $_SESSION['store_id'];
                     $insert['store_name']        = $_SESSION['store_name'];
@@ -501,6 +503,7 @@ class store_goods_onlineControl extends BaseSellerControl {
                 $update = array ();
                 $update['goods_commonid']    = $common_id;
                 $update['goods_name']        = $update_common['goods_name'];
+                $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'];
@@ -548,6 +551,7 @@ class store_goods_onlineControl extends BaseSellerControl {
                 $insert = array();
                 $insert['goods_commonid']    = $common_id;
                 $insert['goods_name']        = $update_common['goods_name'];
+                $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'];