laravel-u-editor
laravel-u-editor copied to clipboard
This's a bug ?
ErrorException in Upload.php line 131: rand() expects parameter 2 to be integer, float given
$randNum = rand(1, 10000000000) . rand(1, 10000000000);
changed to `
$randNum = rand(1, 100000000) . rand(1, 100000000);
`
var_dump(PHP_INT_MAX)
建议改成下面样,兼容32位和64位
$randNum = rand(1, 2000000000) . rand(1, 2000000000);