mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
torrent list cancel join category
This commit is contained in:
@@ -46,7 +46,7 @@ class CalculateUserSeedBonus implements ShouldQueue
|
||||
|
||||
public $tries = 1;
|
||||
|
||||
public $timeout = 600;
|
||||
public $timeout = 3600;
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
|
||||
@@ -274,5 +274,21 @@ class SearchBox extends NexusModel
|
||||
return implode('', $options);
|
||||
}
|
||||
|
||||
public static function listCategoryId($searchBoxId, $glue = null): array|string|null
|
||||
{
|
||||
static $results = null;
|
||||
if (is_null($results)) {
|
||||
$results = [];
|
||||
$res = genrelist($searchBoxId);
|
||||
foreach ($res as $item) {
|
||||
$results[] = $item['id'];
|
||||
}
|
||||
}
|
||||
if (!is_null($glue)) {
|
||||
$results = implode($glue, $results);
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -126,6 +126,7 @@ class ClaimRepository extends BaseRepository
|
||||
$startOfThisMonth = Carbon::now()->startOfMonth();
|
||||
$query = Claim::query()
|
||||
->select(['uid'])
|
||||
->where("created_at", "<", $startOfThisMonth)
|
||||
->where(function (Builder $query) use ($startOfThisMonth) {
|
||||
$query->where('last_settle_at', '<', $startOfThisMonth)->orWhereNull('last_settle_at');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user