feat: 移除步梯搬运费,所有商品搬运费改为0元
- 清除所有商品的步梯搬运收费配置,floor_fee和free_floor全部置0 - 订单详情、服务详情页移除步梯搬运费相关显示项 - 提现规则调整为全部金额需后台审核,取消小额免审自动转账 - 新增师傅端收支账单明细页面,支持查看结算和提现记录 - 更新提现相关配置,降低最低提现金额至0.1元,取消提现次数限制
这个提交包含在:
@@ -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'] : '明码标价',
|
||||
|
||||
在新工单中引用
屏蔽一个用户