no message
This commit is contained in:
parent
b5edace549
commit
a7fac01120
@ -17,14 +17,13 @@ use function json_decode;
|
|||||||
final class ProductController extends BaseController
|
final class ProductController extends BaseController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
//// 分类标题首次出现在哪就是哪,后面有同名标题也不影响
|
//// 分类标题首次出现在哪就是哪,后面有同名标题也不影响
|
||||||
////// name和order_group必须对应好
|
////// name和order_group必须对应好
|
||||||
public function index(ServerRequest $request, Response $response, array $args): ResponseInterface
|
public function index(ServerRequest $request, Response $response, array $args): ResponseInterface
|
||||||
{
|
{
|
||||||
//tomd($config["appName"], 1);
|
|
||||||
$aProduct = Product::where("status" , 1)->where("stock", "!=", 0)->orderBy("class_time")->orderBy("order_group")->get()->toArray();
|
$aProduct = Product::where("status" , 1)->where("stock", "!=", 0)->orderBy("order_group")->orderBy("class_time")->get()->toArray();
|
||||||
// tomd($aProduct, 1);
|
|
||||||
$aProductNew = [];
|
$aProductNew = [];
|
||||||
$aProductMenu = [];
|
$aProductMenu = [];
|
||||||
foreach ($aProduct as $aProductRow) {
|
foreach ($aProduct as $aProductRow) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user