修改获取提现数据
This commit is contained in:
parent
f1555f5c8e
commit
416651ab11
@ -306,7 +306,7 @@ class DoctorAccountService extends BaseService
|
|||||||
$amount_total = floor($doctor_account['balance_account'] * 100) / 100;
|
$amount_total = floor($doctor_account['balance_account'] * 100) / 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取可提现订单列表
|
/* // 获取可提现订单列表
|
||||||
$orders = Order:: getDoctorWithdrawalOrderList($params, $user_doctor['is_platform_deep_cooperation'], ['*']);
|
$orders = Order:: getDoctorWithdrawalOrderList($params, $user_doctor['is_platform_deep_cooperation'], ['*']);
|
||||||
if (empty($orders)){
|
if (empty($orders)){
|
||||||
// 无订单,账户余额强制赋0;
|
// 无订单,账户余额强制赋0;
|
||||||
@ -339,7 +339,7 @@ class DoctorAccountService extends BaseService
|
|||||||
$diff_amount_total = abs($amount_total - $expected_amount_total);
|
$diff_amount_total = abs($amount_total - $expected_amount_total);
|
||||||
if ($diff_amount_total >= 1){
|
if ($diff_amount_total >= 1){
|
||||||
return fail(HttpEnumCode::HTTP_ERROR, "提现金额错误");
|
return fail(HttpEnumCode::HTTP_ERROR, "提现金额错误");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// 计算医生个人所得税
|
// 计算医生个人所得税
|
||||||
$income_tax = $this->computeIndividualIncomeTax($amount_total);
|
$income_tax = $this->computeIndividualIncomeTax($amount_total);
|
||||||
@ -353,7 +353,6 @@ class DoctorAccountService extends BaseService
|
|||||||
$result['amount_total'] = $amount_total; // 账户余额
|
$result['amount_total'] = $amount_total; // 账户余额
|
||||||
$result['withdrawal_amount'] = $withdrawal_amount; // 提现金额
|
$result['withdrawal_amount'] = $withdrawal_amount; // 提现金额
|
||||||
$result['income_tax'] = $income_tax; // 个人所得税
|
$result['income_tax'] = $income_tax; // 个人所得税
|
||||||
$result['order_nos'] = $order_nos; // 订单号
|
|
||||||
|
|
||||||
return success($result);
|
return success($result);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user