Ken 6 days ago
parent
commit
18edace836
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Models/Prediction.php

+ 2 - 2
app/Models/Prediction.php

@@ -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);