From b8bdf25d3619f9c7ee68b2a9966fa4db8b54c5a6 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 3 Apr 2023 17:36:31 +0800 Subject: [PATCH] 1 --- app/Model/OrderInquiry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/OrderInquiry.php b/app/Model/OrderInquiry.php index 42a76ee..2cb513f 100644 --- a/app/Model/OrderInquiry.php +++ b/app/Model/OrderInquiry.php @@ -130,7 +130,7 @@ class OrderInquiry extends Model */ public static function getOrderOne(array $params, array $fields = ['*']): object|null { - return self::where($params)->orderBy('created_at')->first($fields); + return self::where($params)->orderBy('created_at','desc')->first($fields); } /**