diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 38cf832..3bc3255 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -96,9 +96,9 @@ class Coupon extends Base //重置优惠券名称 if(isset($item->couponMain) && $item->couponMain){ $item->couponName = $item->couponMain->name; - $item->image_url = $item->couponMain->image_url; + $item->image_url = $this->request->domain() . $item->couponMain->image_url; }else{ - $item->image_url = ''; + $item->image_url = $this->request->domain() . ''; } //是否已经打分过了 if(isset($item->scoreModel) && $item->scoreModel){