RedpackLog.php 857 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * 同布赌注表
  4. * User: ben
  5. */
  6. class Sync_RedpackLog extends Sync_Base {
  7. protected $dbKey = 'dw_chat';
  8. protected $frequency = 1;
  9. protected $index = 4;
  10. protected $dataField = ['transfer_trx_id', 'player', 'quantity', 'status', 'update_time_int'];
  11. /**
  12. * 清除数据的时间间隔
  13. * @var int
  14. */
  15. protected $clearTtl = 600;
  16. protected $clearAction = 'clearlog';
  17. public function __construct() {
  18. parent::__construct('redpack_log', 'id', 'update_time_int', 'redpacklog');
  19. }
  20. protected function addNewRows($newRows) {
  21. parent::addNewRows($newRows);
  22. alermErrorMsg("redpack_log 不应该有新增数据, newRows:" . json_encode($newRows));
  23. }
  24. protected function updateRow($row, $priValue, $dbRow) {
  25. parent::updateRow($row, $priValue, $dbRow);
  26. }
  27. }