MerchantController.php 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace client\controllers;
  3. use biz\merchant\services\MerchantExtendService;
  4. use biz\merchant\services\ShopService;
  5. use Yii;
  6. use yii\web\Controller;
  7. use common\components\util;
  8. class MerchantController extends BaseController
  9. {
  10. //当前用户获取门店信息
  11. public function actionGetShopInfo()
  12. {
  13. $merchant = $this->merchant;
  14. $merchant['defaultShop'] = ShopService::getDefaultShopInfo($merchant);
  15. util::success($merchant);
  16. }
  17. //当前用户获取商家信息
  18. public function actionGetInfo()
  19. {
  20. $merchant = $this->merchant;
  21. util::success($merchant);
  22. }
  23. //客户的会员等级 shish 2020.1.2
  24. public function actionUserGrade()
  25. {
  26. $list = MerchantExtendService::getGradeList($this->merchantExtend, 'asc', false);
  27. util::success($list);
  28. }
  29. }