dever 4 年之前
父节点
当前提交
b2b43b22b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Api.php

+ 1 - 1
src/Api.php

@@ -38,7 +38,7 @@ class Api
 			$num = $total;
 		}
 
-		$key = array_rand($template, $num);
+		$key = array_rand($template, 1);
 
 		if (is_array($key)) {
 			$result = array();