Kaynağa Gözat

wesmiler 抢表商城

APPLE 3 yıl önce
ebeveyn
işleme
a96fba9e3f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)
     public function sellCheck($goodsId)
     {
     {
-        $goods = $this->where(['id'=> $goodsId,'mark'=>1])->first();
+        $goods = $this->model->where(['id'=> $goodsId,'mark'=>1])->first();
         if(empty($goods)){
         if(empty($goods)){
             $this->error = 2061;
             $this->error = 2061;
             return false;
             return false;