From 093e8770fe83edf4c95ad709288086bf0868380e Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Fri, 13 May 2022 13:46:59 +0800 Subject: [PATCH] dis --- app/Admin/Forms/ProfitSuccessForm.php | 3 ++- app/Services/DistributeService.php | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Admin/Forms/ProfitSuccessForm.php b/app/Admin/Forms/ProfitSuccessForm.php index 55105bb0..9b288b5b 100644 --- a/app/Admin/Forms/ProfitSuccessForm.php +++ b/app/Admin/Forms/ProfitSuccessForm.php @@ -41,7 +41,8 @@ class ProfitSuccessForm extends Form implements LazyRenderable $service = new DistributeService(); if ($input['pay_way'] === PayWay::WxpayTransfer->value && !$order->pay_no) { $order->update([ - 'pay_no' => serial_number() + 'pay_no' => serial_number(), + 'pay_way' => PayWay::WxpayTransfer->value ]); } try { diff --git a/app/Services/DistributeService.php b/app/Services/DistributeService.php index 1577a791..596e36ac 100644 --- a/app/Services/DistributeService.php +++ b/app/Services/DistributeService.php @@ -113,9 +113,7 @@ class DistributeService 'desc' => '推荐返利', ]); - $this->success($profit, [ - 'paid_at' => data_get($result, 'payment_time') - ]); + $this->success($profit, $result); } /**