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

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

xqd
@@ -1303,7 +1303,7 @@ class HomeController extends Controller
             $flag = false;
 
             $product = ProductInfoModel::find(request('product_id'));
-            \Log::info($value->coupon());
+            \Log::info($value->coupon->product_id);
             $products = explode(',', $value->coupon->product_id);
 
             if ((strtotime($value->coupon->end_time) > strtotime(Carbon::now('Asia/Shanghai'))) && in_array($product->category_id, $products)) {