Kirin 11 mēneši atpakaļ
vecāks
revīzija
2407b0c393
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      app/model/user/AwardIntegral.php

+ 4 - 2
app/model/user/AwardIntegral.php

@@ -121,7 +121,8 @@ class AwardIntegral extends BaseModel
                 ->where('add_time', '>=', strtotime('2024-11-18'))
                 ->where('pay_type', '<>', 'yue');
         } else if ($value == 3) {
-            $query->where('order_price', '>=', $award_order_limit)
+            $query->where('status', 0)->where('sent_num<num')
+                ->where('order_price', '>=', $award_order_limit)
                 ->where('add_time', '>=', strtotime('2024-11-18'));
 //                ->where('pay_type', '<>', 'yue');
         } else {
@@ -153,7 +154,8 @@ class AwardIntegral extends BaseModel
                 ->where('add_time', '>=', strtotime('2024-11-18'))
                 ->where('pay_type', '<>', 'yue');
         } else if ($value == 3) {
-            $query->where('order_price', '>=', $award_order_limit)
+            $query->where('status', 0)->where('sent_num<num')
+                ->where('order_price', '>=', $award_order_limit)
                 ->where('add_time', '>=', strtotime('2024-11-18'));
 //                ->where('pay_type', '<>', 'yue');
         }  else {