Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
26b2088d
authored
Feb 14, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整钱包退款参数
parent
4e852a46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Http/Controllers/RefundController.php
app/Http/Controllers/RefundController.php
View file @
26b2088d
...
...
@@ -191,12 +191,12 @@ class RefundController extends Controller
public
function
walletRefund
(
Request
$request
,
$id
)
{
// 获取退款单
$refund
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_refund'
)
->
where
(
'refund_id'
,
$id
)
->
first
();
//
$refund = DB::connection('order')->table('lie_order_refund')->where('refund_id', $id)->first();
if
(
!
$
refun
d
)
echo
'未获取到退款单'
;
if
(
!
$
i
d
)
echo
'未获取到退款单'
;
$data
[
'
order_id'
]
=
$refund
->
order_
id
;
$data
[
'refund_amount'
]
=
number_format
(
$refund
->
pay_amount
-
$refund
->
price_fall
,
2
);
$data
[
'
refund_id'
]
=
$
id
;
// $data['refund_amount'] = number_format($refund->pay_amount - $refund->price_fall, 2); // 最終退款金額
$data
[
'pay_code'
]
=
'unionpay'
;
$url
=
Config
(
'website.api_domain'
)
.
'refund/recharge'
;
...
...
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