修改商品预览的错误
This commit is contained in:
parent
d9b769d6f8
commit
a8f42976bd
@ -13,6 +13,7 @@
|
||||
|
||||
namespace app\controller\api\store\product;
|
||||
|
||||
use app\common\model\store\product\Product;
|
||||
use app\common\repositories\store\PriceRuleRepository;
|
||||
use app\common\repositories\store\product\SpuRepository;
|
||||
use app\common\repositories\store\StoreCategoryRepository;
|
||||
@ -167,6 +168,7 @@ class StoreProduct extends BaseController
|
||||
public function preview()
|
||||
{
|
||||
$param = $this->request->params(['key','id',['product_type',0]]);
|
||||
$param['product_type'] = Product::getInstance()->where('product_id', $param['id'])->value('product_type');
|
||||
$data = [];
|
||||
if($param['key']){
|
||||
$data = Cache::get($param['key']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user