wesmiler 22 小時之前
父節點
當前提交
82fe2461a8
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Models/GoodsModel.php
  2. 1 1
      app/Services/Api/GoodsService.php

+ 1 - 1
app/Models/GoodsModel.php

@@ -21,7 +21,7 @@ class GoodsModel extends BaseModel
 {
 {
     // 设置数据表
     // 设置数据表
     protected $table = 'goods';
     protected $table = 'goods';
-    
+
     // 封面图
     // 封面图
     public function getThumbAttribute($value)
     public function getThumbAttribute($value)
     {
     {

+ 1 - 1
app/Services/Api/GoodsService.php

@@ -185,7 +185,7 @@ class GoodsService extends BaseService
             return $info;
             return $info;
         }
         }
 
 
-        $info = $this->model->with(['store','category','skus'])->where(['id' => $id])->first();
+        $info = $this->model->with(['category','skus'])->where(['id' => $id])->first();
         $info = $info ? $info->toArray() : [];
         $info = $info ? $info->toArray() : [];
         if ($info) {
         if ($info) {
             RedisService::set($cacheKey, $info, rand(10, 20));
             RedisService::set($cacheKey, $info, rand(10, 20));