TransferLog.php 834 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * 同布转账记录表
  4. * User: ben
  5. */
  6. class Sync_TransferLog extends Sync_Base {
  7. protected $dbKey = 'dw_chat_user';
  8. protected $frequency = 1;
  9. protected $index = 4;
  10. protected $dataField = ['transfer_trx_id', 'update_time_int'];
  11. /**
  12. * 清除数据的时间间隔
  13. * @var int
  14. */
  15. protected $clearTtl = 600;
  16. protected $clearAction = 'cleartransferlog';
  17. public function __construct() {
  18. parent::__construct('transfer_eos_log', 'id', 'update_time_int', 'transferlog');
  19. }
  20. protected function addNewRows($newRows) {
  21. parent::addNewRows($newRows);
  22. foreach ($newRows as $newRow) {
  23. // if ($newRow[''])
  24. }
  25. }
  26. protected function updateRow($row, $priValue, $dbRow) {
  27. parent::updateRow($row, $priValue, $dbRow);
  28. }
  29. }