调整渠道数据统计

This commit is contained in:
2021-02-22 17:14:58 +08:00
parent a04494c30e
commit da90fc891c

View File

@@ -22,7 +22,7 @@ class IndexController extends Controller
$coupons = Coupon::where('user_id', $user->id) $coupons = Coupon::where('user_id', $user->id)
->whereYear('created_at', $month[0]) ->whereYear('created_at', $month[0])
// ->whereMonth('created_at', $month[1]) ->whereMonth('created_at', $month[1])
->where('status', 2) ->where('status', 2)
->get(['id', 'thirdPartyGoodsId', 'created_at']); ->get(['id', 'thirdPartyGoodsId', 'created_at']);