|
|
@@ -184,8 +184,6 @@ class Teac extends Api
|
|
|
// 我的交易列表
|
|
|
public function getUserTeacList(ProductTeac $productTeac)
|
|
|
{
|
|
|
- $type_id = $this->request->post('type_id/d', 0);
|
|
|
- if(!in_array($type_id, [ProductTeac::Buying, ProductTeac::Sell])) $this->error('类型错误');
|
|
|
$list = $productTeac::where('user_id', $this->auth->id)
|
|
|
->where('status', ProductTeac::Normal)->where('type_id', $type_id)
|
|
|
->order('create_time desc')
|