审查视图

addons/shopro/controller/ScoreGoodsSkuPrice.php 599 字节
何书鹏 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php

namespace addons\shopro\controller;


class ScoreGoodsSkuPrice extends Base
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function index()
    {
        $params = $this->request->get();
        $goods = \addons\shopro\model\ScoreGoodsSkuPrice::getGoodsList($params);
        
        $this->success('积分商城列表', $goods);
    }

    public function detail()
    {
        $id = $this->request->get('id');
        $detail = \addons\shopro\model\ScoreGoodsSkuPrice::getGoodsDetail($id);

        $this->success('商品详情', $detail);
    }
}