GroupActivityController.php 645 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\api\controller;
  3. use app\api\logic\GroupActivityLogic;
  4. /**
  5. * 拼团活动控制器
  6. * Class UserController
  7. * @package app\api\controller
  8. */
  9. class GroupActivityController extends BaseApiController
  10. {
  11. public array $notNeedLogin = ['detail','orderDetail'];
  12. public function detail()
  13. {
  14. $id = $this->request->param('id');
  15. $result = GroupActivityLogic::detail($id);
  16. return $this->data($result);
  17. }
  18. public function orderDetail(){
  19. $id = $this->request->param('id');
  20. $result = GroupActivityLogic::detail($id,$this->userId);
  21. return $this->data($result);
  22. }
  23. }