|
|
@@ -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('订单已完成');
|