|
|
@@ -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');
|
|
|
}
|
|
|
|
|
|
//获取持有产品数量
|