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, '');
+
+                }
+                
             }
         }