Robot.php 404 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\models\vote;
  3. use crmeb\basic\BaseModel;
  4. use crmeb\traits\ModelTrait;
  5. class Robot extends BaseModel
  6. {
  7. /**
  8. * 数据表主键
  9. * @var string
  10. */
  11. protected $pk = 'id';
  12. /**
  13. * 模型名称
  14. * @var string
  15. */
  16. protected $name = 'robot';
  17. use ModelTrait;
  18. public static function ing()
  19. {
  20. return self::where('status', 1);
  21. }
  22. }