|
@@ -450,17 +450,19 @@ class OrderService implements OrderServiceInterface
|
|
|
|
|
|
$start = Carbon::parse($data['starttime']);
|
|
|
$end = Carbon::parse($data['endtime']);
|
|
|
- $status = [
|
|
|
- 0 => '1',
|
|
|
- 1 => '4',
|
|
|
- 2 => '6',
|
|
|
- ];
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$ads = Ad::where('fromtime', '<=', $start)->where('totime', '>=', $end)->select('pid')->get()->all();
|
|
|
- $orderads = OrderAd::where('fromtime', '<=', $start)->where('totime', '>=', $end)->whereIn('status', $status)->select('pid')->get()->all();
|
|
|
+ $orderads = OrderAd::where('fromtime', '<=', $start)->where('totime', '>=', $end)->where('status', 1)->select('pid')->get()->all();
|
|
|
$ads = array_column($ads, 'pid');
|
|
|
$orderads = array_column($orderads, 'pid');
|
|
|
$pids = array_merge($ads, $orderads);
|
|
|
+
|
|
|
var_dump($pids, '-----------1-------------');
|
|
|
|
|
|
$ad_pids = array_unique($pids);
|