|
|
@@ -666,7 +666,7 @@ class PurchaseController extends BaseController
|
|
|
$rate = bcadd(1, bcdiv($changeRate, 100, 4), 4);
|
|
|
$sendCost = bcmul($sendCost, $rate, 2);
|
|
|
}
|
|
|
- Yii::info("打日志666677777");
|
|
|
+
|
|
|
// 自定义计费也要套满减,否则确认页按规则免了 15 元、下单仍按起步价落库
|
|
|
$distanceMeters = floatval($distanceRespond['distance'] ?? 0);
|
|
|
if ($distanceMeters <= 0 && $sendDistance > 0) {
|
|
|
@@ -681,15 +681,10 @@ class PurchaseController extends BaseController
|
|
|
);
|
|
|
$sendCost = $discountRespond['sendCost'] ?? $sendCost;
|
|
|
|
|
|
- Yii::info("打日志6666");
|
|
|
-
|
|
|
$post['sendCost'] = bcadd($post['sendCost'] ?? 0, $sendCost, 2);
|
|
|
$post['sendDistance'] = $sendDistance;
|
|
|
- Yii::info("打日志66668888");
|
|
|
- noticeUtil::push("333333", '15280215347');
|
|
|
- noticeUtil::push("自定义运费计算:" . $sendCost . "|" . $post['sendCost'] . " distanceMeters:" . $distanceMeters, '15280215347');
|
|
|
+
|
|
|
noticeUtil::push("自定义运费计算:" . $sendCost . "|" . $post['sendCost'] . " distanceMeters:" . $distanceMeters . " config:" . json_encode($shCurrentConfig), '15280215347');
|
|
|
- Yii::info("打日志6666888899999");
|
|
|
} else {
|
|
|
// 使用 DeliveryQuoteUtil 获取配送报价
|
|
|
try {
|