wesley 6 years ago
parent
commit
961dcda356
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/Api/V1/HomeController.php

+ 1 - 0
app/Http/Controllers/Api/V1/HomeController.php

xqd
@@ -1032,6 +1032,7 @@ class HomeController extends Controller
             if (strtotime($value->coupon->end_time) < strtotime(Carbon::now('Asia/Shanghai'))) {
                 return false;
             } else {
+                $value->product = CouponInfoModel::find($value->id)?CouponInfoModel::find($value->id)->product():'';
                 return true;
             }