Commit 34dc03df authored by luhongguang's avatar luhongguang

update:个人主页下商品列表

parent 523222ef
......@@ -888,7 +888,7 @@ class GoodsService
$where["LIMIT"] = $limit;
$where["ORDER"] = ["goods_spu_id" => "ASC"];
$list = GoodsSku::select(["goods_spu_id", "goods_sku_id", "goods_name", "desc_pic_url", "total_amount_sold", "inventory_rest", "original_price",
"price", "audit_status", "online_status"], $where);
"price", "audit_status", "online_status", "rule_desc"], $where);
$data = [];
if (!empty($list)) {
......@@ -903,6 +903,8 @@ class GoodsService
}
$lastId = $sku["goods_spu_id"];
}
} else {
$lastId = -1;
}
return ["status_list" => $statusList, "goods_list" => $data, "last_id" => $lastId];
......
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