Kirin 3 年 前
コミット
42c278c40d
1 ファイル変更2 行追加0 行削除
  1. 2 0
      app/models/game/Lottery.php

+ 2 - 0
app/models/game/Lottery.php

@@ -131,8 +131,10 @@ class Lottery extends BaseModel
             Cache::set('last_game', $name, 60);
             Cache::set('last_open', $result, 60);
             Cache::set('open_time', time(), 60);
+            self::commitTrans();
             return true;
         } catch (\Exception $e) {
+            self::rollbackTrans();
             return self::setErrorInfo($e->getMessage());
         }
     }