feat: 移除步梯搬运费,所有商品搬运费改为0元

- 清除所有商品的步梯搬运收费配置,floor_fee和free_floor全部置0
- 订单详情、服务详情页移除步梯搬运费相关显示项
- 提现规则调整为全部金额需后台审核,取消小额免审自动转账
- 新增师傅端收支账单明细页面,支持查看结算和提现记录
- 更新提现相关配置,降低最低提现金额至0.1元,取消提现次数限制
这个提交包含在:
2026-11-30 10:49:05 +08:00
父节点 f6cdc99f0d
当前提交 48e54631b6
共有 28 个文件被更改,包括 1219 次插入 和 1074 次删除

查看文件

@@ -1136,17 +1136,12 @@ class Home extends Base
$floorAmount = 0;
$urgentAmount = 0;
} else {
$floor = max(0, (int)$params['floor']);
$freeFloor = isset($service['free_floor']) && (int)$service['free_floor'] >= 0 ? (int)$service['free_floor'] : 2;
$floorFee = isset($service['floor_fee']) && (float)$service['floor_fee'] >= 0 ? (float)$service['floor_fee'] : 10.0;
if ((int)$params['has_elevator'] === 0 && $floor > $freeFloor) {
$floorAmount = ($floor - $freeFloor) * $floorFee;
}
// 全平台商品步梯搬运不收费,floor / has_elevator 仅作订单楼层与电梯标签保留给接单师傅查看
$floorAmount = 0;
$singleUrgent = max(20.0, min(200.0, round($base * 0.2, 2)));
$urgentAmount = (int)$params['urgent'] === 1 ? $singleUrgent : 0;
$total = round($base + $floorAmount + $urgentAmount, 2);
$total = round($base + $urgentAmount, 2);
}
$discount = 0;
@@ -1173,15 +1168,15 @@ class Home extends Base
'goods_amount' => $type === 'quote' ? 0 : round($goodsAmount, 2),
'addon_amount' => $type === 'quote' ? 0 : round($addonAmount, 2),
'base_amount' => $type === 'quote' ? 0 : round($base, 2),
'floor_amount' => round($floorAmount, 2),
'floor_amount' => 0.0,
'urgent_amount' => round($urgentAmount, 2),
'estimated_urgent_amount' => round(max(20.0, min(200.0, round($base * 0.2, 2))), 2),
'total_amount' => $total,
'discount_amount' => round($discount, 2),
'pay_amount' => max(0, round($total - $discount, 2)),
'coupon' => $couponInfo,
'free_floor' => $type === 'custom' ? 0 : ($service ? (int)$service['free_floor'] : 0),
'floor_fee' => $type === 'custom' ? 0 : round($service ? (float)$service['floor_fee'] : 0.0, 2),
'free_floor' => 0,
'floor_fee' => 0.0,
];
}
@@ -1518,8 +1513,8 @@ class Home extends Base
'unit' => $row['unit'],
'price_text' => $priceText,
'sales' => (int)$row['sales'],
'floor_fee' => isset($row['floor_fee']) ? (float)$row['floor_fee'] : 0,
'free_floor' => isset($row['free_floor']) ? (int)$row['free_floor'] : 0,
'floor_fee' => 0.0,
'free_floor' => 0,
'need_model' => isset($row['need_model']) ? (int)$row['need_model'] : 1,
'description' => isset($row['description']) ? $row['description'] : '',
'tag' => isset($row['tag']) && $row['tag'] ? $row['tag'] : '明码标价',

查看文件

@@ -1586,45 +1586,17 @@ class Master extends MasterBase
return;
}
// 3. 若命中「小额免审自动发起微信转账」,在本地事务外自动发起商家转账(失败必落库记录中文原因并明确回传,严禁静默吞掉)
$autoInitiated = false;
$canConfirmNow = false;
$autoFailReason = '';
if (
$channel === 'wechat'
&& $wdCfg['transfer_mode'] === 'wx_mch_transfer'
&& $wdCfg['audit_mode'] === 'auto_small'
&& $amount <= (float)$wdCfg['auto_max_amount']
) {
try {
$autoWd = PaymentService::initiateWithdrawTransfer($withdrawId, '小额免审自动发起微信商家转账');
$autoInitiated = true;
$formattedAuto = $this->formatWithdrawItem($autoWd);
$canConfirmNow = !empty($formattedAuto['can_confirm']);
} catch (\Throwable $ae) {
$autoFailReason = trim((string)$ae->getMessage());
Db::name('withdraw')->where('id', $withdrawId)->update([
'audit_msg' => mb_substr('【小额免审自动转账失败】' . $autoFailReason, 0, 480),
'updatetime' => time(),
]);
\think\Log::error('[Master::withdraw auto_small] withdraw_id=' . $withdrawId . ' 自动转账失败: ' . $autoFailReason);
}
}
if ($canConfirmNow) {
$tipMsg = '提现已自动审核通过,请立即确认收款入账微信零钱';
} elseif ($autoFailReason !== '') {
$tipMsg = '提现申请已提交并冻结金额,但微信自动转账发起失败:' . $autoFailReason . ',已记录原因待财务核查处理';
} else {
$tipMsg = '提现申请已提交,审核通过后请在钱包内确认收款';
}
// 3. 所有提现申请均需经过后台财务审核后打款
$tipMsg = $channel === 'bank'
? '提现申请已提交,审核通过后打款至银行卡'
: '提现申请已提交,审核通过后请在钱包内确认收款';
$this->success($tipMsg, [
'withdraw_id' => $withdrawId,
'arrive_amount' => $arrive,
'auto_initiated' => $autoInitiated,
'can_confirm' => $canConfirmNow,
'auto_fail_reason' => $autoFailReason,
'auto_initiated' => false,
'can_confirm' => false,
'auto_fail_reason' => '',
]);
}