Active.php 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\store\controller\apps\sharing;
  3. use app\store\controller\Controller;
  4. use app\store\model\sharing\Active as ActiveModel;
  5. use app\store\model\sharing\ActiveUsers as ActiveUsersModel;
  6. /**
  7. * 拼单管理控制器
  8. * Class Active
  9. * @package app\store\controller\apps\sharing
  10. */
  11. class Active extends Controller
  12. {
  13. /**
  14. * 拼单列表
  15. * @param null $active_id
  16. * @return mixed
  17. * @throws \think\exception\DbException
  18. */
  19. public function index($active_id = null)
  20. {
  21. $model = new ActiveModel;
  22. $list = $model->getList($active_id);
  23. return $this->fetch('index', compact('list'));
  24. }
  25. /**
  26. *
  27. * @param $active_id
  28. * @return mixed
  29. * @throws \think\exception\DbException
  30. */
  31. public function users($active_id)
  32. {
  33. $model = new ActiveUsersModel;
  34. $list = $model->getList($active_id);
  35. return $this->fetch('users', compact('list'));
  36. }
  37. }