RedpackLogMeetOne.php 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * 领取红包记录
  4. * User: solu
  5. */
  6. class Sync_RedpackLogMeetOne 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. ENV === ENV_FORMAL && $GLOBALS['eosUrl'] = $GLOBALS['eosxURL']; // 改为MeetOne侧链
  19. parent::__construct('redpack_log', 'id', 'update_time_int', 'redpacklog', $GLOBALS['codeMeeMO'], ['net_id' => Eos::NET_MEETONE]);
  20. }
  21. protected function addNewRows($newRows) {
  22. parent::addNewRows($newRows);
  23. alermErrorMsg("redpack_log 不应该有新增数据, newRows:" . json_encode($newRows));
  24. }
  25. protected function updateRow($row, $priValue, $dbRow) {
  26. parent::updateRow($row, $priValue, $dbRow);
  27. }
  28. }