ShopYeChangeController.php 687 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace hd\controllers;
  3. use biz\shop\classes\ShopYeChangeClass;
  4. use common\components\dict;
  5. use common\components\util;
  6. use Yii;
  7. class ShopYeChangeController extends BaseController
  8. {
  9. public $guestAccess = [];
  10. public function actionList()
  11. {
  12. $get = Yii::$app->request->get();
  13. $status = $get['status'] ?? 0;
  14. $where = [];
  15. if (!empty($status)) {
  16. $where['status'] = $status;
  17. }
  18. $where['mainId'] = $this->mainId;
  19. $tx = $get['tx'] ?? 0;
  20. if (!empty($tx)) {
  21. $where['tx'] = $tx;
  22. }
  23. $list = ShopYeChangeClass::getChangeList($where);
  24. util::success($list);
  25. }
  26. }