mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-06 03:56:57 +08:00
规格优化
This commit is contained in:
@ -117,10 +117,6 @@ class Goods extends Common
|
||||
{
|
||||
// 开始处理
|
||||
$params = $this->data_post;
|
||||
if(isset($_POST['spec']))
|
||||
{
|
||||
$params['spec'] = $_POST['spec'];
|
||||
}
|
||||
return GoodsService::GoodsSpecType($params);
|
||||
}
|
||||
|
||||
@ -136,10 +132,6 @@ class Goods extends Common
|
||||
{
|
||||
// 开始处理
|
||||
$params = $this->data_post;
|
||||
if(isset($_POST['spec']))
|
||||
{
|
||||
$params['spec'] = $_POST['spec'];
|
||||
}
|
||||
return GoodsService::GoodsSpecDetail($params);
|
||||
}
|
||||
|
||||
|
||||
@ -1789,7 +1789,7 @@ class GoodsService
|
||||
// 规格不为数组则为json字符串
|
||||
if(!is_array($params['spec']))
|
||||
{
|
||||
$params['spec'] = json_decode($params['spec'], true);
|
||||
$params['spec'] = json_decode(htmlspecialchars_decode($params['spec']), true);
|
||||
}
|
||||
foreach($params['spec'] as $v)
|
||||
{
|
||||
@ -1903,7 +1903,7 @@ class GoodsService
|
||||
// 规格不为数组则为json字符串
|
||||
if(!is_array($params['spec']))
|
||||
{
|
||||
$params['spec'] = json_decode($params['spec'], true);
|
||||
$params['spec'] = json_decode(htmlspecialchars_decode($params['spec']), true);
|
||||
}
|
||||
foreach($params['spec'] as $v)
|
||||
{
|
||||
|
||||
@ -62,14 +62,6 @@ return array (
|
||||
1 => 'app\\plugins\\commononlineservice\\Hook',
|
||||
2 => 'app\\plugins\\expressforkdn\\Hook',
|
||||
),
|
||||
'plugins_service_goods_handle_end' =>
|
||||
array (
|
||||
0 => 'app\\plugins\\usernotloginhidegoodsprice\\Hook',
|
||||
),
|
||||
'plugins_service_goods_spec_base' =>
|
||||
array (
|
||||
0 => 'app\\plugins\\usernotloginhidegoodsprice\\Hook',
|
||||
),
|
||||
'plugins_service_navigation_header_handle' =>
|
||||
array (
|
||||
0 => 'app\\plugins\\answers\\Hook',
|
||||
|
||||
Reference in New Issue
Block a user