订单列表

parent 0b1889ee
Showing with 1 additions and 1 deletions
......@@ -312,7 +312,7 @@ class OrderService
->keyby("status")
->toArray();
$statusCount[0] = $res["total"];
$statusCount[0] = OrderModel::where(["user_id"=>$user_id])->count();
foreach (OrderModel::$status as $k=>$v){
$statusCount[$k] = \Arr::get(\Arr::get($orderCount,$k),"num",0);
}
......
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 sign in to comment