|
|
@ -633,13 +633,13 @@ class PaymentService extends AbstractService
|
|
|
|
$withdraw->save();
|
|
|
|
$withdraw->save();
|
|
|
|
|
|
|
|
|
|
|
|
if ($withdrawType == 'entrust') {
|
|
|
|
if ($withdrawType == 'entrust') {
|
|
|
|
return $this->doEntrustWithdraw($data, $withdraw);
|
|
|
|
return $this->doEntrustWithdraw($data, $withdraw, $token);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return $this->doWithdraw($data, $withdraw);
|
|
|
|
return $this->doWithdraw($data, $withdraw, $token);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function doWithdraw(array $data, Withdraw $withdraw) {
|
|
|
|
private function doWithdraw(array $data, Withdraw $withdraw, string $token) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$result = $baofu->withdraw([
|
|
|
|
$result = $baofu->withdraw([
|
|
|
@ -662,7 +662,7 @@ class PaymentService extends AbstractService
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function doEntrustWithdraw(array $data, Withdraw $withdraw) {
|
|
|
|
private function doEntrustWithdraw(array $data, Withdraw $withdraw, string $token) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$result = $baofu->entrustWithdraw([
|
|
|
|
$result = $baofu->entrustWithdraw([
|
|
|
|