Commit 4a6894f8 authored by luhongguang's avatar luhongguang

update:tcc参数调整

parent 1b4b482f
......@@ -15,7 +15,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::placeAnOrderTry($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::placeAnOrderTry($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -27,7 +27,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::placeAnOrderConfirm($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::placeAnOrderConfirm($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -39,7 +39,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::placeAnOrderCancel($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::placeAnOrderCancel($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -51,7 +51,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderTry($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::cancelOrderTry($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -63,7 +63,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderConfirm($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::cancelOrderConfirm($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -75,7 +75,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::cancelOrderCancel($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::cancelOrderCancel($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
......@@ -87,7 +87,7 @@ class TccController extends Base
{
(new GoodsTccValidate())->validate();
$res = TccService::tccIsFinish($this->params["goods_id"], $this->params["t_id"]);
$res = TccService::tccIsFinish($this->params["goods_sku_id"], $this->params["t_id"]);
$this->success(["result"=>$res]);
}
}
\ No newline at end of file
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