From 6aef8bd411e5ecf9916facb57bfafdc0c275116d Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Tue, 30 Apr 2024 09:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=89=93=E6=AC=BE=20=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/services/withdraw/PayedService.php | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/app/common/services/withdraw/PayedService.php b/app/common/services/withdraw/PayedService.php index 69bbdf2d..624c67fd 100644 --- a/app/common/services/withdraw/PayedService.php +++ b/app/common/services/withdraw/PayedService.php @@ -668,20 +668,25 @@ class PayedService * * @return bool */ - private function manualWithdrawPay() - { + private function manualWithdrawPay(){ + + // 第三方代发(汇优财) + \Log::debug('------- 灵活务工 - 手动打款 - 打款类型 -----',$this->withdrawModel->manual_type); if($this->withdrawModel->manual_type == 4){ - // 第三方代发(汇优财) - $staff = UseStaff::getSingleInfo(['uid'=>$this->withdrawModel->member_id]); - $info = [ - 'uid' => $this->withdrawModel->member_id, - 'month' => date("Ym",strtotime($this->withdrawModel->created_at)), - 'member_id' => $staff['member_id'], - 'salary' => $this->withdrawModel->actual_amounts - ]; - $result = (new ExternalApi())->salaryModelOutOrder($info); - if((int)$result['respCode'] === 2) return true; - else throw new ShopException($result['respDesc']); + try{ + $staff = UseStaff::getSingleInfo(['uid'=>$this->withdrawModel->member_id]); + $info = [ + 'uid' => $this->withdrawModel->member_id, + 'month' => date("Ym",strtotime($this->withdrawModel->created_at)), + 'member_id' => $staff['member_id'], + 'salary' => $this->withdrawModel->actual_amounts + ]; + $result = (new ExternalApi())->salaryModelOutOrder($info); + if((int)$result['respCode'] === 2) return true; + else throw new ShopException($result['respDesc']); + }catch(\Exception $e){ + \Log::debug('------- 灵活务工 - 确认打款错误 -----',$e->getMessage()); + } } return true; }