|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
namespace mall\controllers;
|
|
|
|
|
|
-use bizHd\custom\classes\HdClass;
|
|
|
+use bizMall\hd\classes\HdClass;
|
|
|
use common\components\imgUtil;
|
|
|
use common\components\util;
|
|
|
use bizHd\custom\classes\CustomClass;
|
|
|
@@ -18,7 +18,7 @@ class HdController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
|
- $hd = \bizMall\hd\classes\HdClass::getById($id);
|
|
|
+ $hd = HdClass::getById($id);
|
|
|
if (empty($hd)) {
|
|
|
util::fail('没有花店信息');
|
|
|
}
|
|
|
@@ -57,7 +57,7 @@ class HdController extends BaseController
|
|
|
$hd = $respond['hd'];
|
|
|
$custom = $respond['custom'];
|
|
|
} else {
|
|
|
- $hd = \bizMall\hd\classes\HdClass::getById($id, true);
|
|
|
+ $hd = HdClass::getById($id, true);
|
|
|
$customId = $hd->customId;
|
|
|
$custom = \bizMall\custom\classes\CustomClass::getById($customId, true);
|
|
|
}
|
|
|
@@ -67,16 +67,10 @@ class HdController extends BaseController
|
|
|
|
|
|
public function actionList()
|
|
|
{
|
|
|
- $showGlInfo = getenv('SHOW_GL_INFO');
|
|
|
- $info = $showGlInfo === false ? 1 : $showGlInfo;
|
|
|
- if (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);
|
|
|
}
|
|
|
|