user_id)) return $this->success(); $unclaimedGift = (new UpgradeGiftGoodsService(['mall_id' => $this->mall_id, 'user_id' => $this->user_id]))->getUnclaimedGift(); if ($unclaimedGift['is_have']) { $unclaimedGift['level_text'] = UserLevel::getUserLevelOne([['mall_id' => $this->mall_id], ['level' => $unclaimedGift['level']]], [], true)['name'] ?? ''; } $this->success('success', [ 'gift_info' => $unclaimedGift ]); } }