Commit 7ff204b3 authored by hangjun83's avatar hangjun83

更新

parent 749cf61c
......@@ -172,7 +172,7 @@ class LeyanService
->get()->toArray();
$pro_data = [];
if (empty($productRow)) {
if (empty($productRow) && $status == 1) {
$pro_data['b_id'] = $bId;
$pro_data['c_id'] = $chemicalsRow->c_id;
......@@ -189,9 +189,7 @@ class LeyanService
}
$pro_data['p_level'] = $product['purity'];
$pro_data['p_pack'] = $package['size'];
if($status == 1){
$pro_data['p_price'] = $package['price'];
}
$pro_data['p_price'] = $package['price'];
$pro_data['p_tod'] = $p_tod;
$pro_data['p_weight'] = '0.01';
$pro_data['p_status'] = $status;
......@@ -208,7 +206,9 @@ class LeyanService
$pro_data['p_status'] = $status;
$pro_data['p_show'] = 1;
$pro_data['p_price'] = $package['price'];
if($status == 1){
$pro_data['p_price'] = $package['price'];
}
$pro_data['p_tod'] = $p_tod;
$pro_data['modifytime'] = time();
$dbConnect->table('products')
......
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