afa 5 bulan lalu
induk
melakukan
fcc7a5b0c8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/common/model/ProductOrder.php

+ 1 - 1
application/common/model/ProductOrder.php

@@ -144,7 +144,7 @@ class ProductOrder extends Model
     //获取持有产品数量订单
     public static function getUserOrderByProductNum(int $uid, int $product_id, int $totalNum): array
     {
-        return  self::where('user_id', $uid)->where('product_id', $product_id)->limit($totalNum)->column('id');
+        return  self::where('user_id', $uid)->where('product_id', $product_id)->where('status', self::Paid)->limit($totalNum)->column('id');
     }
 
     //获取持有产品数量