|
@@ -587,10 +587,10 @@ class OrderService
|
|
|
{
|
|
|
|
|
|
$info = [];
|
|
|
- $info['unpay'] = Order::where('user_id', $userId)->where('status',OrderEnum::STATUS_CREATE)->count();
|
|
|
- $info['unsend'] = Order::where('user_id', $userId)->where('status',OrderEnum::STATUS_PAY)->count();
|
|
|
- $info['unrec'] = Order::where('user_id', $userId)->where('status',OrderEnum::STATUS_SHIP)->count();
|
|
|
- $info['uneva'] = Order::where('user_id', $userId)->where('status',OrderEnum::STATUS_CONFIRM)->count();
|
|
|
+ $info['unpay'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_CREATE)->count();
|
|
|
+ $info['unsend'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_PAY)->count();
|
|
|
+ $info['unrec'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_SHIP)->count();
|
|
|
+ $info['uneva'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_CONFIRM)->count();
|
|
|
|
|
|
return $info;
|
|
|
}
|