Commit 26b2088d by 朱继来

调整钱包退款参数

parent 4e852a46
Showing with 4 additions and 4 deletions
......@@ -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 (!$refund) echo '未获取到退款单';
if (!$id) 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';
......
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 sign in to comment