|
|
@@ -50,7 +50,9 @@ class WelfareLoginc
|
|
|
public static function getUserRwaProductNum(int $productId, int $rwa_num, $mod, $num): int
|
|
|
{
|
|
|
//读取当日新增数据
|
|
|
- $list = ProductOrder::where('product_id', $productId)->where('status', ProductOrder::Paid)->where('popular_price', '>', config('min_rwa_price'))
|
|
|
+ $list = ProductOrder::where('product_id', $productId)
|
|
|
+ ->whereIn('status', [ProductOrder::Paid, ProductOrder::Transferred, ProductOrder::Freeze])
|
|
|
+ //->where('popular_price', '>', config('min_rwa_price'))
|
|
|
->field('user_id,sum(num) as total_num')
|
|
|
->group('user_id')
|
|
|
->field('user_id,count(num) as total_num')
|