Commit badd88c3 authored by 董先生's avatar 董先生

置换订单收集

parent 115ce95f
......@@ -88,7 +88,8 @@ class RefundService {
$refund->member_id = auth('api')->user()['uid'];
$refund->status = 0;
$refund->refund_no = str_replace('-', '', Str::orderedUuid());
$refund->amount = $item->total_price;
$refund->amount = $item->total_price-$item->total_integral;
// $refund->amount = $item->total_price;
if($refund->save()){
$item->status = 4;
......
......@@ -40,7 +40,7 @@ class PayService {
$description = "订单支付";
break;
}
$data->amount = $data->amount-$data->integral;
$payData = [
'mchid' => $config['mch_id'],
'appid' => $config['app_id'],
......
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