|
|
@@ -5,6 +5,7 @@ namespace ghs\controllers;
|
|
|
use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\sj\services\MerchantExtendService;
|
|
|
use bizGhs\admin\classes\AdminClass;
|
|
|
+use bizGhs\custom\classes\CustomClass;
|
|
|
use bizGhs\merchant\classes\ShopClass;
|
|
|
use bizGhs\merchant\services\ShopService;
|
|
|
use common\components\dict;
|
|
|
@@ -253,4 +254,28 @@ class ShopController extends BaseController
|
|
|
util::complete();
|
|
|
}
|
|
|
|
|
|
+ //散客门店详情 shish 20211007
|
|
|
+ public function actionSkCustom()
|
|
|
+ {
|
|
|
+ $skCustomId = $this->shop->skCustomId ?? 0;
|
|
|
+ $custom = [];
|
|
|
+ if (!empty($skCustomId)) {
|
|
|
+ $custom = CustomClass::getById($skCustomId);
|
|
|
+ $avatar = $custom['avatar'] ?? '';
|
|
|
+ $custom['avatar'] = imgUtil::groupImg($avatar) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
|
|
|
+ }
|
|
|
+ util::success(['custom' => $custom]);
|
|
|
+ }
|
|
|
+
|
|
|
+ //散客门店设置
|
|
|
+ public function actionSkCustomSet()
|
|
|
+ {
|
|
|
+ $id = Yii::$app->request->get('id', 0);
|
|
|
+ $custom = CustomClass::getById($id, true);
|
|
|
+ CustomClass::valid($custom, $this->shopId);
|
|
|
+ $this->shop->skCustomId = $id;
|
|
|
+ $this->shop->save();
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
}
|