no message

This commit is contained in:
hellcat 2025-10-17 17:26:44 +08:00
parent b5edace549
commit a7fac01120

View File

@ -17,14 +17,13 @@ use function json_decode;
final class ProductController extends BaseController
{
//// 分类标题首次出现在哪就是哪,后面有同名标题也不影响
////// name和order_group必须对应好
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();
// tomd($aProduct, 1);
$aProduct = Product::where("status" , 1)->where("stock", "!=", 0)->orderBy("order_group")->orderBy("class_time")->get()->toArray();
$aProductNew = [];
$aProductMenu = [];
foreach ($aProduct as $aProductRow) {