ShopCapitalController.php 496 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace ghs\controllers;
  3. use biz\shop\classes\ShopCapitalClass;
  4. use common\components\util;
  5. use Yii;
  6. class ShopCapitalController extends BaseController
  7. {
  8. public $guestAccess = [];
  9. public function actionList()
  10. {
  11. $get = Yii::$app->request->get();
  12. $where = [];
  13. $io = $get['io'] ?? 1;
  14. $where['mainId'] = $this->mainId;
  15. $where['io'] = $io;
  16. $list = ShopCapitalClass::getCapitalList($where);
  17. util::success($list);
  18. }
  19. }