|
|
@@ -12,14 +12,15 @@ class HdController extends BaseController
|
|
|
|
|
|
public function actionList()
|
|
|
{
|
|
|
- $where = [];
|
|
|
- $where['ownShopId'] = $this->shopId;
|
|
|
- $respond = HdClass::getHdList($where);
|
|
|
-
|
|
|
$showGlInfo = getenv('SHOW_GL_INFO');
|
|
|
$info = $showGlInfo === false ? 1 : $showGlInfo;
|
|
|
+ if (isset($this->userId) || empty($this->userId)) {
|
|
|
+ util::success(['list' => [], 'showGlInfo' => $info]);
|
|
|
+ }
|
|
|
+ $where = [];
|
|
|
+ $where['userId'] = $this->userId;
|
|
|
+ $respond = HdClass::getHdList($where);
|
|
|
$respond['showGlInfo'] = $info;
|
|
|
-
|
|
|
util::success($respond);
|
|
|
}
|
|
|
|