ScanPayController.php 545 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\order\classes\ScanPayClass;
  4. use common\components\util;
  5. use Yii;
  6. class ScanPayController extends BaseController
  7. {
  8. public $guestAccess = [];
  9. public function actionList()
  10. {
  11. $get = Yii::$app->request->get();
  12. $status = $get['status'] ?? 0;
  13. $where = [];
  14. $where['mainId'] = $this->mainId;
  15. if (!empty($status)) {
  16. $where['status'] = $status;
  17. }
  18. $list = ScanPayClass::getPayList($where);
  19. util::success($list);
  20. }
  21. }