From 986824c1b2ecaa2a41509aede2102b876c05a96c Mon Sep 17 00:00:00 2001 From: Terry <2358269014@qq.com> Date: Mon, 28 Oct 2019 11:18:36 +0800 Subject: [PATCH] customer address services --- services/customer/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/customer/Address.php b/services/customer/Address.php index b4447a05..b57cf49b 100644 --- a/services/customer/Address.php +++ b/services/customer/Address.php @@ -121,7 +121,7 @@ class Address extends Service $filter = [ 'numPerPage' => 30, 'pageNum' => 1, - 'orderBy' => ['updated_at' => SORT_DESC], + 'orderBy' => ['is_default' => SORT_ASC ,'updated_at' => SORT_DESC], 'where' => [ ['customer_id' => $customer_id], ], -- GitLab