Kirin před 3 roky
rodič
revize
42c278c40d
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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_game', $name, 60);
             Cache::set('last_open', $result, 60);
             Cache::set('last_open', $result, 60);
             Cache::set('open_time', time(), 60);
             Cache::set('open_time', time(), 60);
+            self::commitTrans();
             return true;
             return true;
         } catch (\Exception $e) {
         } catch (\Exception $e) {
+            self::rollbackTrans();
             return self::setErrorInfo($e->getMessage());
             return self::setErrorInfo($e->getMessage());
         }
         }
     }
     }