<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Shop\Web\Controller; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Member\Api\Controller\MemberAddressController; use Module\Member\Support\MemberLoginCheck; class CartController extends ModuleBaseController implements MemberLoginCheck { private $api; private $memberAddressApi; public function __construct() { $this->api = app(\Module\Shop\Api\Controller\CartController::class); $this->memberAddressApi = app(MemberAddressController::class); } public function index() { return $this->view('cart.index'); } public function checkout() { goto bqN51; bzHCU: return $this->view('cart.checkout', $avcnU); goto TZpEB; bqN51: $tx11y = Response::tryGetData($this->memberAddressApi->all()); goto LKL_1; LKL_1: $avcnU = Response::tryGetData($this->api->checkoutInfo()); goto hqIll; hqIll: $avcnU['memberAddressList'] = $tx11y; goto bzHCU; TZpEB: } }