浏览代码

取消交易

afa 6 月之前
父节点
当前提交
534f6d5b59
共有 1 个文件被更改,包括 1 次插入1 次删除
  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('订单已完成');