request->get('introUserId'); $shop = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : []; $ad = []; if (isset($this->shop->img) && !empty($this->shop->img) && $this->shop->img != '[]') { $arr = json_decode($this->shop->img, true); if (!empty($arr)) { foreach ($arr as $img) { $imgUrl = imgUtil::groupImg($img); $ad[] = ['adImgUrl' => $imgUrl]; } } } //新人专享礼物 $newUserGift = []; if (!empty($introUserId)) { $userInfo = UserService::getUserInfo($this->userId); $newUserGift = InviteService::hasNewGift($userInfo); } util::success(['ad' => $ad, 'shop' => $shop, 'newUserGift' => $newUserGift]); } }