|
|
@@ -32,7 +32,7 @@ class MerchantController extends BaseController
|
|
|
$merchant = MerchantService::getInfo($this->sj, $this->sjExtend);
|
|
|
util::success($merchant);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//商家现有的会员等级 shish 2019.12.12
|
|
|
public function actionMemberLevel()
|
|
|
{
|
|
|
@@ -96,7 +96,7 @@ class MerchantController extends BaseController
|
|
|
$ids = SetAuthService::getAuthIdList($setId, $endId);
|
|
|
util::success(['ids' => $ids]);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//商家信息 shish 2020.1.11
|
|
|
public function actionIntroduceShop()
|
|
|
{
|
|
|
@@ -106,10 +106,10 @@ class MerchantController extends BaseController
|
|
|
util::fail('没有找到介绍人');
|
|
|
}
|
|
|
$merchantName = isset($merchant['merchantName']) ? $merchant['merchantName'] : '';
|
|
|
- $smallLogoUrl = isset($merchant['smallLogoUrl']) ? $merchant['smallLogoUrl'] : '';
|
|
|
- $logoUrl = isset($merchant['logoUrl']) ? $merchant['logoUrl'] : '';
|
|
|
- $data = ['merchantName' => $merchantName, 'smallLogoUrl' => $smallLogoUrl, 'id' => $id, 'logoUrl' => $logoUrl, 'fullAddress' => '暂无'];
|
|
|
+ $logoUrl = isset($merchant['smallLogoUrl']) && !empty($merchant['smallLogoUrl']) ? $merchant['smallLogoUrl'] : Yii::$app->params['imgHost'] . '/hhb_small.png';
|
|
|
+ $address = $merchant['address'] ?? '';
|
|
|
+ $data = ['merchantName' => $merchantName, 'smallLogoUrl' => $logoUrl, 'id' => $id, 'fullAddress' => $address];
|
|
|
util::success($data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|