APPLE 3 лет назад
Родитель
Сommit
a96fba9e3f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/GoodsService.php

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

@@ -417,7 +417,7 @@ class GoodsService extends BaseService
      */
     public function sellCheck($goodsId)
     {
-        $goods = $this->where(['id'=> $goodsId,'mark'=>1])->first();
+        $goods = $this->model->where(['id'=> $goodsId,'mark'=>1])->first();
         if(empty($goods)){
             $this->error = 2061;
             return false;