HdController.php 655 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace mall\controllers;
  3. use bizHd\custom\classes\HdClass;
  4. use common\components\util;
  5. class HdController extends BaseController
  6. {
  7. public function actionList()
  8. {
  9. $showGlInfo = getenv('SHOW_GL_INFO');
  10. $info = $showGlInfo === false ? 1 : $showGlInfo;
  11. if (isset($this->userId) == false || empty($this->userId)) {
  12. util::success(['list' => [], 'showGlInfo' => $info]);
  13. }
  14. $where = [];
  15. $where['userId'] = $this->userId;
  16. $where['delStatus'] = 0;
  17. $respond = HdClass::getHdList($where);
  18. $respond['showGlInfo'] = $info;
  19. util::success($respond);
  20. }
  21. }