revert+fix: 回滚充值扣费折算(恢复全额上分)+取消提现手续费
业务调整:客户不让用户承担手续费,改为客户自行预存代付账户余额(全额上分全额提现)。 1) 回滚 alin_recharge_settle 的代收费率折算,恢复充值全额上分 2) apply_withdraw/apply_withdraw_bank 提现手续费默认值 1→0,取消提现手续费
This commit is contained in:
@@ -3830,7 +3830,7 @@ class Pcapi extends Controller{
|
||||
$system = Db::name('system')->find();
|
||||
$money = $user['money'];
|
||||
$withdrawMoney = empty($system['withdraw_money']) ? 100 : $system['withdraw_money'];
|
||||
$withdrawFee = empty($system['withdraw_fee']) ? 1 : $system['withdraw_fee'];
|
||||
$withdrawFee = empty($system['withdraw_fee']) ? 0 : $system['withdraw_fee'];
|
||||
|
||||
// 计算积分兑换
|
||||
$amountMoney = $withdrawMoney/100*($amount);
|
||||
@@ -3912,7 +3912,7 @@ class Pcapi extends Controller{
|
||||
$system = Db::name('system')->find();
|
||||
$money = $user['money'];
|
||||
$withdrawMoney = empty($system['withdraw_money']) ? 100 : $system['withdraw_money'];
|
||||
$withdrawFee = empty($system['withdraw_fee']) ? 1 : $system['withdraw_fee'];
|
||||
$withdrawFee = empty($system['withdraw_fee']) ? 0 : $system['withdraw_fee'];
|
||||
|
||||
// 计算积分兑换
|
||||
$amountMoney = $withdrawMoney/100*($amount);
|
||||
|
||||
@@ -232,15 +232,6 @@ trait alinPay
|
||||
'agent' => 1,
|
||||
])->lock(true)->find();
|
||||
|
||||
// 代收手续费由客户承担:AlinPay 代收时从平台代付账户扣手续费(回调 real_amount 仍是充值全额),
|
||||
// 若全额上分会导致代付账户被持续掏空(充100万→账户净收99万→提现100万必差)。
|
||||
// 故按 ALIN_VN 配置的 collection_fee_rate(百分比) 折算上分额,使"客户余额=账户实收"。
|
||||
$alinCfg = json_decode(Db::name('pay_channel')->where('key', 'ALIN_VN')->value('value'), true);
|
||||
$alinFeeRate = isset($alinCfg['collection_fee_rate']) ? floatval($alinCfg['collection_fee_rate']) : 0;
|
||||
if ($alinFeeRate > 0) {
|
||||
$order['money'] = round($order['money'] * (1 - $alinFeeRate / 100), 2);
|
||||
}
|
||||
|
||||
if (!$zdl || $zdl['money'] < $order['money']) {
|
||||
Db::rollback();
|
||||
addLogToFile('代收结算失败:代理余额不足 order=' . $orderNo, 'alin_callback_error', 'alin');
|
||||
|
||||
Reference in New Issue
Block a user