seven 2 週間 前
コミット
a31b1f58e2
1 ファイル変更6 行追加2 行削除
  1. 6 2
      app/Services/IssueService.php

+ 6 - 2
app/Services/IssueService.php

@@ -748,9 +748,13 @@ class IssueService extends BaseService
                     $combo[] = '尾' . $tail; // 尾数
                 }
 
-
+                $key = 'lottery_numbers_' . $v->issue_no;
                 $combo = implode(' ', $combo);
-                self::lotteryDraw($v->id, $winning_numbers, $combo, '');
+                if(Cache::add($key, $winning_numbers, 100)){
+                    self::lotteryDraw($v->id, $winning_numbers, $combo, '');
+
+                }
+                
             }
         }