ScoreGoodsSkuPrice.php 599 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace addons\shopro\controller;
  3. class ScoreGoodsSkuPrice extends Base
  4. {
  5. protected $noNeedLogin = ['*'];
  6. protected $noNeedRight = ['*'];
  7. public function index()
  8. {
  9. $params = $this->request->get();
  10. $goods = \addons\shopro\model\ScoreGoodsSkuPrice::getGoodsList($params);
  11. $this->success('积分商城列表', $goods);
  12. }
  13. public function detail()
  14. {
  15. $id = $this->request->get('id');
  16. $detail = \addons\shopro\model\ScoreGoodsSkuPrice::getGoodsDetail($id);
  17. $this->success('商品详情', $detail);
  18. }
  19. }