|
|
@@ -9,6 +9,7 @@ use bizMall\invite\services\InviteService;
|
|
|
use bizMall\merchant\services\MerchantService;
|
|
|
use bizMall\merchant\services\ShopService;
|
|
|
use bizMall\user\services\UserService;
|
|
|
+use common\components\imgUtil;
|
|
|
use Yii;
|
|
|
use yii\web\Controller;
|
|
|
use common\components\util;
|
|
|
@@ -21,9 +22,16 @@ class ShopController extends BaseController
|
|
|
{
|
|
|
$introUserId = Yii::$app->request->get('introUserId');
|
|
|
$shop = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
|
|
|
- $ad = [
|
|
|
- ['adImgUrl' => 'https://img.theflorist.cn/example/shop/1.jpg']
|
|
|
- ];
|
|
|
+ $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 = [];
|