| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace client\controllers;
- use biz\merchant\services\MerchantExtendService;
- use biz\merchant\services\ShopService;
- use Yii;
- use yii\web\Controller;
- use common\components\util;
- class MerchantController extends BaseController
- {
-
- //当前用户获取门店信息
- public function actionGetShopInfo()
- {
- $merchant = $this->merchant;
- $merchant['defaultShop'] = ShopService::getDefaultShopInfo($merchant);
- util::success($merchant);
- }
- //当前用户获取商家信息
- public function actionGetInfo()
- {
- $merchant = $this->merchant;
- util::success($merchant);
- }
- //客户的会员等级 shish 2020.1.2
- public function actionUserGrade()
- {
- $list = MerchantExtendService::getGradeList($this->merchantExtend, 'asc', false);
- util::success($list);
- }
- }
|