1
This commit is contained in:
parent
a3c7ba330b
commit
98daf72df4
@ -61,10 +61,12 @@ class ShopGoods
|
||||
shuffle($goodsIds);
|
||||
$result = array();
|
||||
for ($i = 0; $i < $num; ++$i) {
|
||||
if ($i < count($goodIds)) {
|
||||
if ($i < count($goodsIds)) {
|
||||
array_push($result, $goodsIds[$i]);
|
||||
}
|
||||
}
|
||||
error_log(1111);
|
||||
error_log(json_encode($result));
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user