Commit 8ce2673e authored by hangjun83's avatar hangjun83

药明康德更新

parent c7110444
...@@ -153,19 +153,19 @@ class LeyanService ...@@ -153,19 +153,19 @@ class LeyanService
->update(['modifytime' => time()]); ->update(['modifytime' => time()]);
foreach ($product['productStockPrices'] as $package) { foreach ($product['productStockPrices'] as $package) {
$p_tod = '无货,请咨询'; //$p_tod = '无货,请咨询';
$p_tod = '现货';
$status = 1; $status = 1;
if (!empty($package['productStockInfos'])) { /*if (!empty($package['productStockInfos'])) {
foreach ($package['productStockInfos'] as $stock) { foreach ($package['productStockInfos'] as $stock) {
if (isset($stock['city'])) { if (isset($stock['city'])) {
if ($stock['city'] == '上海' && isset($stock['number']) && $stock['number'] > 0) { if ($stock['city'] == '上海' && isset($stock['number']) && $stock['number'] > 0) {
$p_tod = '现货';
$status = 1; $status = 1;
break; break;
} }
} }
} }
} }*/
$p_code = $product['catalogNo'] . '-' . $package['size']; $p_code = $product['catalogNo'] . '-' . $package['size'];
......
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