ActivityCheck.php 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace app\models\activity;
  3. use app\models\mining\UserMiningMachine;
  4. use app\models\system\SystemMoney;
  5. use app\models\user\User;
  6. use app\models\user\UserMoney;
  7. use Exception;
  8. use think\db\exception\DataNotFoundException;
  9. use think\db\exception\DbException;
  10. use think\db\exception\ModelNotFoundException;
  11. use crmeb\traits\ModelTrait;
  12. use crmeb\basic\BaseModel;
  13. /**
  14. * TODO 文章Model
  15. * Class Article
  16. * @package app\models\article
  17. */
  18. class ActivityCheck extends BaseModel
  19. {
  20. /**
  21. * 数据表主键
  22. * @var string
  23. */
  24. protected $pk = 'id';
  25. /**
  26. * 模型名称
  27. * @var string
  28. */
  29. protected $name = 'activity_check';
  30. use ModelTrait;
  31. /**
  32. * @param $page
  33. * @param $limit
  34. * @return array
  35. */
  36. public static function getList($page, $limit): array
  37. {
  38. $model = new self();
  39. $data = $model->page((int)$page, (int)$limit)->select();
  40. $count = $model->count();
  41. return compact('data', 'count');
  42. }
  43. }