|
|
@@ -97,4 +97,19 @@ class MerchantController extends BaseController
|
|
|
util::success(['ids' => $ids]);
|
|
|
}
|
|
|
|
|
|
+ //商家信息 shish 2020.1.11
|
|
|
+ public function actionIntroduceShop()
|
|
|
+ {
|
|
|
+ $id = Yii::$app->request->get('id');
|
|
|
+ $merchant = MerchantService::getMerchantById($id);
|
|
|
+ if (empty($merchant)) {
|
|
|
+ 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' => '暂无'];
|
|
|
+ util::success($data);
|
|
|
+ }
|
|
|
+
|
|
|
}
|