购物车优化

This commit is contained in:
devil_gong
2018-10-11 18:29:03 +08:00
parent ea7d81b07c
commit e9b1a76cab
6 changed files with 84 additions and 58 deletions

View File

@ -43,8 +43,10 @@ class BuyController extends CommonController
{
if(IS_POST)
{
redirect(U('Home/Buy/Index', $_POST));
} else {
// 获取商品列表
$params = $_POST;
$params = $_GET;
$params['user'] = $this->user;
$ret = BuyService::BuyTypeGoodsList($params);
@ -75,9 +77,6 @@ class BuyController extends CommonController
$this->assign('msg', isset($ret['msg']) ? $ret['msg'] : L('common_param_error'));
$this->display('/Public/TipsError');
}
} else {
$this->assign('msg', L('common_unauthorized_access'));
$this->display('/Public/TipsError');
}
}