afa 6 hónapja
szülő
commit
534f6d5b59
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      application/api/controller/Teac.php

+ 1 - 1
application/api/controller/Teac.php

@@ -196,7 +196,7 @@ class Teac extends Api
     //取消交易
     public function cancelTrade(ProductTeac $productTeac, TeacLogin $teacLogin)
     {
-        $id = $this->request->post('id/d', 0);
+        $id = $this->request->post('teac_id/d', 0);
         $row = $productTeac::where(['id' => $id, 'user_id' => $this->auth->id])->find();
         if(empty($row)) $this->error('订单不存在');
         if($row['status'] != ProductTeac::Normal) $this->error('订单已完成');