添加:手动打款 日志信息

This commit is contained in:
wuhui_zzw 2024-04-30 09:20:04 +08:00
parent 4875d920f1
commit 6aef8bd411
1 changed files with 18 additions and 13 deletions

View File

@ -668,20 +668,25 @@ class PayedService
* *
* @return bool * @return bool
*/ */
private function manualWithdrawPay() private function manualWithdrawPay(){
{
// 第三方代发(汇优财)
\Log::debug('------- 灵活务工 - 手动打款 - 打款类型 -----',$this->withdrawModel->manual_type);
if($this->withdrawModel->manual_type == 4){ if($this->withdrawModel->manual_type == 4){
// 第三方代发(汇优财) try{
$staff = UseStaff::getSingleInfo(['uid'=>$this->withdrawModel->member_id]); $staff = UseStaff::getSingleInfo(['uid'=>$this->withdrawModel->member_id]);
$info = [ $info = [
'uid' => $this->withdrawModel->member_id, 'uid' => $this->withdrawModel->member_id,
'month' => date("Ym",strtotime($this->withdrawModel->created_at)), 'month' => date("Ym",strtotime($this->withdrawModel->created_at)),
'member_id' => $staff['member_id'], 'member_id' => $staff['member_id'],
'salary' => $this->withdrawModel->actual_amounts 'salary' => $this->withdrawModel->actual_amounts
]; ];
$result = (new ExternalApi())->salaryModelOutOrder($info); $result = (new ExternalApi())->salaryModelOutOrder($info);
if((int)$result['respCode'] === 2) return true; if((int)$result['respCode'] === 2) return true;
else throw new ShopException($result['respDesc']); else throw new ShopException($result['respDesc']);
}catch(\Exception $e){
\Log::debug('------- 灵活务工 - 确认打款错误 -----',$e->getMessage());
}
} }
return true; return true;
} }