ShopController.php 528 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace client\controllers;
  3. use biz\goods\services\CategoryService;
  4. use biz\goods\services\GoodsCategoryService;
  5. use biz\merchant\services\MerchantService;
  6. use biz\merchant\services\ShopService;
  7. use Yii;
  8. use yii\web\Controller;
  9. use common\components\util;
  10. class ShopController extends BaseController
  11. {
  12. //获取用户所属商家的默认门店 shish 2019.12.6
  13. public function actionDefaultShop()
  14. {
  15. $merchant = $this->merchant;
  16. $shop = ShopService::getDefaultShopInfo($merchant);
  17. util::success($shop);
  18. }
  19. }