|
|
@@ -32,6 +32,7 @@ class GiftController extends Controller
|
|
|
$customerId = auth()->user()->id;
|
|
|
// 获取用户拥有的所有礼品卡
|
|
|
$userGiftCards = GiftCards::where('customer_id', $customerId)
|
|
|
+ ->where('giftcard_status', 1)
|
|
|
->get()
|
|
|
->keyBy('channel');
|
|
|
$gifts = $this->giftCardsModel->giftcards();
|