ShopYeChangeController.php 676 B

123456789101112131415161718192021222324252627282930
  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. $tx = $get['tx'] ?? dict::getDict('yeTx', 'canNot');
  15. $where = [];
  16. if (!empty($status)) {
  17. $where['status'] = $status;
  18. }
  19. $where['shopId'] = $this->shopId;
  20. $where['tx'] = $tx;
  21. $list = ShopYeChangeClass::getChangeList($where);
  22. util::success($list);
  23. }
  24. }