From 7af9877af4ebbed43186d0e452ec9d148e44e49c Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Tue, 8 Feb 2022 10:30:13 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 5bd7d6b..a5eb247 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -94,7 +94,9 @@ class Coupon extends Base $res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){ return $q->with([ - "couponMain", + "couponMain" => function ($q) { + $q->field("id,name,image_url,type_name"); + }, "scoreModel", "business" => function ($q) { $q->field("code,id,business_name,business_subtitle");