Commit 470cb348 authored by luhongguang's avatar luhongguang

update:商品取消下单tcc

parent 31655d1d
......@@ -43,18 +43,39 @@ class TccController extends Base
$this->success(["result"=>$res]);
}
/**
* 取消订单单 商品tcc try
* @throws \App\Exception\custom\ParamException
*/
public function cancel_order_tryAction()
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderTry($this->params["goods_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
/**
* 取消订单单 商品tcc confirm
* @throws \App\Exception\custom\ParamException
*/
public function cancel_order_confirmAction()
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderConfirm($this->params["goods_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
/**
* 取消订单单 商品tcc cancel
* @throws \App\Exception\custom\ParamException
*/
public function cancel_order_cancelAction()
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderCancel($this->params["goods_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment