| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace mall\controllers;
- use bizHd\custom\classes\HdClass;
- use common\components\util;
- use bizHd\custom\classes\CustomClass;
- class HdController extends BaseController
- {
- //花店信息 ssh 20230111
- public function actionInfo()
- {
- $user = $this->user;
- if (empty($user)) {
- util::success(['hd' => $this->shop]);
- } else {
- $respond = CustomClass::buildRelation($this->shop, $user);
- $hd = $respond['hd'];
- util::success(['hd' => $hd]);
- }
- }
- public function actionList()
- {
- $showGlInfo = getenv('SHOW_GL_INFO');
- $info = $showGlInfo === false ? 1 : $showGlInfo;
- if (isset($this->userId) == false || empty($this->userId)) {
- util::success(['list' => [], 'showGlInfo' => $info]);
- }
- $where = [];
- $where['userId'] = $this->userId;
- $where['delStatus'] = 0;
- $respond = HdClass::getHdList($where);
- $respond['showGlInfo'] = $info;
- util::success($respond);
- }
- }
|