GamePackLog.php 616 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\v1\model\advert;
  3. use plugin\saiadmin\basic\BaseNormalModel;
  4. /**
  5. * 打包记录模型
  6. */
  7. class GamePackLog extends BaseNormalModel
  8. {
  9. /**
  10. * 数据表主键
  11. * @var string
  12. */
  13. protected $pk = 'id';
  14. /**
  15. * 数据库表名称
  16. * @var string
  17. */
  18. protected $table = 'game_pack_log';
  19. /**
  20. * 数据库连接
  21. * @var string
  22. */
  23. protected $connection = 'db_game_log';
  24. /**
  25. * 游戏名 搜索
  26. */
  27. public function searchGameNameAttr($query, $value)
  28. {
  29. $query->where('game_name', 'like', '%'.$value.'%');
  30. }
  31. }