浏览代码

我的交易列表

afa 6 月之前
父节点
当前提交
88f76aac0b
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      application/api/controller/Teac.php

+ 0 - 2
application/api/controller/Teac.php

@@ -184,8 +184,6 @@ class Teac extends Api
     // 我的交易列表
     // 我的交易列表
     public function getUserTeacList(ProductTeac $productTeac)
     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)
         $list = $productTeac::where('user_id', $this->auth->id)
              ->where('status', ProductTeac::Normal)->where('type_id', $type_id)
              ->where('status', ProductTeac::Normal)->where('type_id', $type_id)
              ->order('create_time desc')
              ->order('create_time desc')