|
@@ -90,7 +90,10 @@ class SmmUserAccount extends EloquentRepository
|
|
|
$youTube = $model->where('name', 'YouTube')->first();
|
|
|
$twitter = $model->where('name', 'Twitter')->first();
|
|
|
$parentIds = [$youTube->id,$twitter->id];
|
|
|
- $accounts = $model->whereIn('parent_id',$parentIds)->where('expires_at','>', Carbon::now())->orderBy('id', 'asc')->get();
|
|
|
+ //15分钟前
|
|
|
+ $time = Carbon::now()->addMinutes(15);
|
|
|
+ $accounts = $model->whereIn('parent_id',$parentIds)->where('expires_at','<', $time)->where('expires_at','>', Carbon::now())->orderBy('id', 'asc')->get();
|
|
|
+ //dd($accounts->toArray());
|
|
|
return $accounts;
|
|
|
}
|
|
|
|