MerchantController.php 663 B

12345678910111213141516171819202122232425262728293031
  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 MerchantController extends BaseController
  11. {
  12. //当前用户获取门店信息
  13. public function actionGetShopInfo()
  14. {
  15. $merchant = $this->merchant;
  16. $merchant['defaultShop'] = ShopService::getDefaultShopInfo($merchant);
  17. util::success($merchant);
  18. }
  19. //当前用户获取商家信息
  20. public function actionGetInfo()
  21. {
  22. $merchant = $this->merchant;
  23. util::success($merchant);
  24. }
  25. }