You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
814 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://doc.hyperf.io
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. namespace App\Controller;
  12. use Hyperf\DbConnection\Db;
  13. use Hyperf\Redis\Redis;
  14. use Hyperf\Utils\ApplicationContext;
  15. use App\CouponRebate\CouponRebateInterface;
  16. use http\Client\Curl\User;
  17. use Hyperf\Di\Annotation\Inject;
  18. class CouponRebateController extends BaseController
  19. {
  20. /**
  21. * @Inject
  22. * @var CouponRebateInterface
  23. */
  24. protected $CouponRebate;
  25. public function isCouponRebate()
  26. {
  27. $user_id = $this->request->input('user_id', 0);
  28. $res = $this->CouponRebate->isCouponRebate($user_id);
  29. return $this->success($res);
  30. }
  31. }