wesmiler 1 dzień temu
rodzic
commit
82fe2461a8
2 zmienionych plików z 2 dodań i 2 usunięć
  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';
-    
+
     // 封面图
     public function getThumbAttribute($value)
     {

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

@@ -185,7 +185,7 @@ class GoodsService extends BaseService
             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() : [];
         if ($info) {
             RedisService::set($cacheKey, $info, rand(10, 20));