芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/vision.mgaplay.com.br/lib/Entity/Bandwidth.php
setCommonDependencies($store, $log); } public function save() { try { $this->getStore()->updateWithDeadlockLoop(' INSERT INTO `bandwidth` (Month, Type, DisplayID, Size) VALUES (:month, :type, :displayId, :size) ON DUPLICATE KEY UPDATE Size = Size + :size2 ', [ 'month' => strtotime(date('m') . '/02/' . date('Y') . ' 00:00:00'), 'type' => $this->type, 'displayId' => $this->displayId, 'size' => $this->size, 'size2' => $this->size ]); } catch (DeadlockException $deadlockException) { $this->getLog()->error('Deadlocked inserting bandwidth'); } } }