下单规格转义处理

This commit is contained in:
Devil 2021-08-07 11:58:44 +08:00
parent 6e06f6cc4b
commit 9259db686b
2 changed files with 8 additions and 2 deletions

View File

@ -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']);
}
}
// 参数

View File

@ -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;
// 默认