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; }