|
@@ -604,13 +604,13 @@ class OrderService
|
|
|
|
|
|
$info = [];
|
|
|
$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['unsend'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_INSPECTION_PASS)->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();
|
|
|
$info['inspect'] = Order::where('user_id', $userId)
|
|
|
->whereIn('order_status',[
|
|
|
+ OrderEnum::STATUS_PAY,
|
|
|
OrderEnum::STATUS_INSPECTION,
|
|
|
- OrderEnum::STATUS_INSPECTION_PASS,
|
|
|
OrderEnum::STATUS_INSPECTION_FAIL])
|
|
|
->count();
|
|
|
|