Commit 3fb55eb1 authored by hezhen's avatar hezhen

修改编辑商品

parent 3616653a
...@@ -61,7 +61,7 @@ if ($_GPC['action'] == 'edit') { ...@@ -61,7 +61,7 @@ if ($_GPC['action'] == 'edit') {
} }
else { else {
if($k=='ids'){ if($k=='ids'){
$ids=$v; continue;
}elseif($k=='city'||$k=='province'){ }elseif($k=='city'||$k=='province'){
continue; continue;
} }
...@@ -115,7 +115,7 @@ if ($_GPC['action'] == 'edit') { ...@@ -115,7 +115,7 @@ if ($_GPC['action'] == 'edit') {
$spe_id = pdo_insertid(); $spe_id = pdo_insertid();
pdo_insert('longbing_company_shop_spe_price', array('goods_id' => $goodsId, 'uniacid' => $_W['uniacid'], 'spe_id_1' => $spe_id, 'create_time' => time(), 'update_time' => time(), 'price' => $data['price'], 'stock' => $data['stock'])); pdo_insert('longbing_company_shop_spe_price', array('goods_id' => $goodsId, 'uniacid' => $_W['uniacid'], 'spe_id_1' => $spe_id, 'create_time' => time(), 'update_time' => time(), 'price' => $data['price'], 'stock' => $data['stock']));
} }
updateCompany($ids,$good_id); updateCompany($_GPC['ids'],$good_id);
if ($result) { if ($result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment