From 491703e67a6b3f2153921344a83cbc01769438d7 Mon Sep 17 00:00:00 2001 From: zwesy Date: Mon, 29 Nov 2021 09:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- app/controller/api/Consumer.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 79e5639..fca1daa 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ public/storage/* /Test.php nginx.htaccess dump.rdb -/app/controller/api/Test.php \ No newline at end of file +/app/controller/api/Test.php +/view/error/test.html \ No newline at end of file diff --git a/app/controller/api/Consumer.php b/app/controller/api/Consumer.php index 4729815..b5296ca 100644 --- a/app/controller/api/Consumer.php +++ b/app/controller/api/Consumer.php @@ -4,6 +4,7 @@ namespace app\controller\api; use app\model\CouponMain; use app\repository\CouponRepository; use think\Collection; +use think\response\Json; /** * 消费者端:游客、普通用户 @@ -17,6 +18,10 @@ class Consumer extends Base 'home', ]; + /** + * 获取附近商家发布的优惠卷 + * @return Json + */ public function home() { $params = [