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");