You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Controller\v3;
use App\Controller\BaseController;use Hyperf\Di\Annotation\Inject;use App\Service\v3\Interfaces\ShopCartServiceInterface;
class ShopCartController extends BaseController{ /** * @Inject * @var ShopCartServiceInterface */ protected $shopCart; public function detail() { //获取购物车商品信息
$res['store_goood_lists'] = $this->shopCart->detail(); //获取购物车失效商品信息
$res['store_invalid_goood_lists'] = $this->shopCart->undo(); //计算购物车价格
$res['total'] = '820.00'; return $this->success($res); }
public function check() {
}
public function undo() {
}}
|