APPLE пре 3 година
родитељ
комит
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;