mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-29 16:04:20 +00:00
add random expression
This commit is contained in:
parent
be7c63e68a
commit
3f1d19ad18
@ -87,6 +87,12 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition)
|
|||||||
$condition
|
$condition
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)->expression(
|
||||||
|
'random',
|
||||||
|
'rand()'
|
||||||
|
)->sort(
|
||||||
|
'random',
|
||||||
|
'asc'
|
||||||
)->limit(
|
)->limit(
|
||||||
isset($argv[1]) ? (int) $argv[1] : 10
|
isset($argv[1]) ? (int) $argv[1] : 10
|
||||||
)->get() as $document)
|
)->get() as $document)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user