|
|
@@ -16,7 +16,7 @@ class Prediction extends BaseModel
|
|
|
|
|
|
|
|
|
//预测
|
|
|
- static function prediction($issueNo)
|
|
|
+ static function prediction($issueNo): Prediction
|
|
|
{
|
|
|
$size = mt_rand(Prediction::SIZE_SMALL, Prediction::SIZE_BIG);
|
|
|
$oddOrEven = mt_rand(Prediction::ODD, Prediction::EVEN);
|
|
|
@@ -28,7 +28,7 @@ class Prediction extends BaseModel
|
|
|
}
|
|
|
|
|
|
//预测结果
|
|
|
- static function result($issueNo, $size, $oddOrEven, $winningNumbers)
|
|
|
+ static function result($issueNo, $size, $oddOrEven, $winningNumbers): void
|
|
|
{
|
|
|
$data = static::where('issue_no', $issueNo)->first();
|
|
|
if (!$data) $data = static::prediction($issueNo);
|