Browse Source

fix:字段

super-yimizi 1 month ago
parent
commit
4f7a58bc36

+ 4 - 4
application/common/Service/OrderService.php

@@ -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;
     }

+ 4 - 4
application/common/service/OrderService.php

@@ -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;
     }