Commit e78015f7 authored by hangjun83's avatar hangjun83

更新

parent 63ada51b
...@@ -172,7 +172,12 @@ class LeyanService ...@@ -172,7 +172,12 @@ class LeyanService
->get()->toArray(); ->get()->toArray();
$pro_data = []; $pro_data = [];
if (empty($productRow) && $status == 1) { if (empty($productRow)) {
if($status == 0){
SimpleLogs::writeLog('Leyan cas : '.$chemicalsRow->c_cas. '为下架状态不做更新',__CLASS__.':storeLeyanProducts');
continue;
}
$pro_data['b_id'] = $bId; $pro_data['b_id'] = $bId;
$pro_data['c_id'] = $chemicalsRow->c_id; $pro_data['c_id'] = $chemicalsRow->c_id;
...@@ -221,10 +226,6 @@ class LeyanService ...@@ -221,10 +226,6 @@ class LeyanService
if($id > 0){ if($id > 0){
SimpleLogs::writeLog('Leyan p_id : '.$id.' cas : '.$chemicalsRow->c_cas. ' 更新成功,更新时间:'.date('Y-m-d H:i:s',time()),__CLASS__.':storeLeyanProducts'); SimpleLogs::writeLog('Leyan p_id : '.$id.' cas : '.$chemicalsRow->c_cas. ' 更新成功,更新时间:'.date('Y-m-d H:i:s',time()),__CLASS__.':storeLeyanProducts');
}else{
if($status == 0){
SimpleLogs::writeLog('Leyan cas : '.$chemicalsRow->c_cas. '为下架状态不做更新',__CLASS__.':storeLeyanProducts');
}
} }
} }
......
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