Bladeren bron

我的交易列表

afa 6 maanden geleden
bovenliggende
commit
88f76aac0b
1 gewijzigde bestanden met toevoegingen van 0 en 2 verwijderingen
  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)
     {
-        $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')