|
@@ -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;
|