mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-01 03:18:33 +08:00
下单规格转义处理
This commit is contained in:
parent
6e06f6cc4b
commit
9259db686b
@ -70,6 +70,12 @@ class Buy extends Common
|
||||
{
|
||||
MyViewAssign('msg', '商品信息为空');
|
||||
return MyView('public/tips_error');
|
||||
} else {
|
||||
// 规格数据避免被转义
|
||||
if(!empty($data['spec']))
|
||||
{
|
||||
$data['spec'] = htmlspecialchars_decode($data['spec']);
|
||||
}
|
||||
}
|
||||
|
||||
// 参数
|
||||
|
@ -673,12 +673,12 @@ class BuyService
|
||||
{
|
||||
// 正常购买
|
||||
case 'goods' :
|
||||
$ret = BuyService::BuyGoods($params);
|
||||
$ret = self::BuyGoods($params);
|
||||
break;
|
||||
|
||||
// 购物车
|
||||
case 'cart' :
|
||||
$ret = BuyService::BuyCart($params);
|
||||
$ret = self::BuyCart($params);
|
||||
break;
|
||||
|
||||
// 默认
|
||||
|
Loading…
Reference in New Issue
Block a user