GoodsController.php 643 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\plugins\food\controllers\client;
  8. use app\plugins\food\controllers\BaseController;
  9. use app\plugins\food\models\client\GoodsForm;
  10. use yii\web\Controller;
  11. class GoodsController extends BaseController
  12. {
  13. /**
  14. * 商品详情
  15. * @return array|mixed
  16. */
  17. public function actionDetail() {
  18. $form = new GoodsForm();
  19. $form->store_id = get_store_id();
  20. $form->attributes = get_params();
  21. return $form->detail();
  22. }
  23. }