| 1234567891011121314151617181920212223242526 |
- <?php
- namespace client\controllers;
- use biz\ad\services\AdService;
- use biz\goods\services\CategoryService;
- use biz\goods\services\GoodsCategoryService;
- use biz\merchant\services\MerchantService;
- use biz\merchant\services\ShopService;
- use Yii;
- use yii\web\Controller;
- use common\components\util;
- class ShopController extends BaseController
- {
- //获取商家的默认门店 shish 2019.12.6
- public function actionDetail()
- {
- $merchant = $this->merchant;
- $shop = ShopService::getDefaultShop($merchant);
- $ad = AdService::getAdList($this->merchantId);
- util::success(['ad' => $ad, 'shop' => $shop]);
- }
- }
|