mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
系统优化
This commit is contained in:
@ -164,7 +164,12 @@ class Goods extends Common
|
||||
{
|
||||
// 开始处理
|
||||
$params = $this->data_post;
|
||||
return GoodsService::GoodsSpecType($params);
|
||||
$ret = GoodsService::GoodsSpecType($params);
|
||||
if($ret['code'] == 0)
|
||||
{
|
||||
$ret['data'] = $ret['data']['spec_type'];
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -179,7 +184,12 @@ class Goods extends Common
|
||||
{
|
||||
// 开始处理
|
||||
$params = $this->data_post;
|
||||
return GoodsService::GoodsSpecDetail($params);
|
||||
$ret = GoodsService::GoodsSpecDetail($params);
|
||||
if($ret['code'] == 0)
|
||||
{
|
||||
$ret['data'] = $ret['data']['spec_base'];
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user