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