|
|
@@ -0,0 +1,31 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace client\controllers;
|
|
|
+
|
|
|
+use biz\goods\services\CategoryService;
|
|
|
+use biz\goods\services\GoodsCategoryService;
|
|
|
+use biz\merchant\services\MerchantService;
|
|
|
+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);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|