|
|
@@ -133,10 +133,10 @@ class ProductOrder extends Model
|
|
|
->select();
|
|
|
}
|
|
|
|
|
|
- //获取抢购触发产品用户
|
|
|
+ //获取抢购触发产品次数
|
|
|
public static function getTripPopularProduct(string $productId)
|
|
|
{
|
|
|
- return self::whereIn('product_id', $productId)->where('is_popular', self::Paid)->whereTime('create_time', 'yesterday')->sum('num');
|
|
|
+ return self::where('product_id', $productId)->where('is_popular', self::Paid)->whereTime('create_time', 'yesterday')->sum('num');
|
|
|
}
|
|
|
|
|
|
|