wesley 6 lat temu
rodzic
commit
9b3c8e17db
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Http/Controllers/Api/V1/HomeController.php

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

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