Procházet zdrojové kódy

fix one trans action error

stanley-king před 3 roky
rodič
revize
c869c03c83
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      helper/refill/RefillBase.php

+ 5 - 2
helper/refill/RefillBase.php

@@ -414,8 +414,11 @@ class RefillBase
                         Log::record(sprintf(__METHOD__ . "request time=%.6f", microtime(true) - $start), Log::DEBUG);
                     }
                 }
-                else {
-                    $trans->commit();
+                else
+                {
+                    if($fTrans) {
+                        $trans->commit();
+                    }
                     Log::record("{$result['msg']}",Log::ERR);
                     continue;
                 }