Commit 11d10af4 authored by luhongguang's avatar luhongguang

update:SHQCLIENT-674

parent 1b604a67
...@@ -975,6 +975,7 @@ class GoodsService ...@@ -975,6 +975,7 @@ class GoodsService
$data = []; $data = [];
if (!empty($list)) { if (!empty($list)) {
$count = count($list);
foreach ($list as $key => $sku) { foreach ($list as $key => $sku) {
$sku["original_price"] = $sku["original_price"] / 100; $sku["original_price"] = $sku["original_price"] / 100;
$sku["price"] = $sku["price"] / 100; $sku["price"] = $sku["price"] / 100;
...@@ -986,6 +987,9 @@ class GoodsService ...@@ -986,6 +987,9 @@ class GoodsService
} }
$lastId = $sku["goods_spu_id"]; $lastId = $sku["goods_spu_id"];
} }
if ($count < $limit) {
$lastId = "-1";
}
} else { } else {
$lastId = "-1"; $lastId = "-1";
} }
......
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