Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
470cb348
Commit
470cb348
authored
Jun 22, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:商品取消下单tcc
parent
31655d1d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
245 additions
and
8 deletions
+245
-8
Tcc.php
application/modules/Tcc/controllers/Tcc.php
+21
-0
TccService.php
application/services/tcc/TccService.php
+224
-8
No files found.
application/modules/Tcc/controllers/Tcc.php
View file @
470cb348
...
...
@@ -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
application/services/tcc/TccService.php
View file @
470cb348
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment