ShopController.php 611 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace client\controllers;
  3. use biz\ad\services\AdService;
  4. use biz\goods\services\CategoryService;
  5. use biz\goods\services\GoodsCategoryService;
  6. use biz\merchant\services\MerchantService;
  7. use biz\merchant\services\ShopService;
  8. use Yii;
  9. use yii\web\Controller;
  10. use common\components\util;
  11. class ShopController extends BaseController
  12. {
  13. //获取商家的默认门店 shish 2019.12.6
  14. public function actionDetail()
  15. {
  16. $merchant = $this->merchant;
  17. $shop = ShopService::getDefaultShop($merchant);
  18. $ad = AdService::getAdList($this->merchantId);
  19. util::success(['ad' => $ad, 'shop' => $shop]);
  20. }
  21. }