添加:手动打款 日志信息
This commit is contained in:
parent
4875d920f1
commit
6aef8bd411
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue