|
@@ -29,7 +29,7 @@ class Teac extends Api
|
|
|
if(!in_array($type_id, [ProductTeac::Buying, ProductTeac::Sell])) $this->error('类型错误');
|
|
if(!in_array($type_id, [ProductTeac::Buying, ProductTeac::Sell])) $this->error('类型错误');
|
|
|
|
|
|
|
|
$list = $productTeac->with('users')
|
|
$list = $productTeac->with('users')
|
|
|
- ->where('status', ProductTeac::Normal)->where('type_id', $type_id)
|
|
|
|
|
|
|
+ ->where('product_teac.status', ProductTeac::Normal)->where('type_id', $type_id)
|
|
|
->order('create_time desc')
|
|
->order('create_time desc')
|
|
|
->paginate($this->pageSize);
|
|
->paginate($this->pageSize);
|
|
|
|
|
|