Active.php 1.0 KB

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