Przeglądaj źródła

下单获取运费

shish 10 miesięcy temu
rodzic
commit
f2b0d2389d

+ 2 - 2
app-mall/controllers/OrderController.php

@@ -367,7 +367,7 @@ class OrderController extends BaseController
                 $sendCost = bcdiv($fee, 100, 2);
                 $post['sendCost'] = $sendCost;
                 $post['sendDistance'] = $distance;
-                noticeUtil::push("运费:{$sendCost} 重量:{$totalWeight} 距离:{$distance} 姓名:{$customName} 手机号 {$customMobile} 经纬 {$originalLng} {$originalLat} 金额:{$modifyPrice} 数量:{$totalNum}", '15280215347');
+                noticeUtil::push("散客下单,获取运费:{$sendCost} 重量:{$totalWeight} 距离:{$distance} 姓名:{$customName} 手机号 {$customMobile} 经纬 {$originalLng} {$originalLat} 金额:{$modifyPrice} 数量:{$totalNum}", '15280215347');
                 $modifyPrice = bcadd($modifyPrice, $sendCost, 2);
             }
 
@@ -565,7 +565,7 @@ class OrderController extends BaseController
                 if ($goodsInfo->freightType == 1) {
                     $sendCost = 0;
                 }
-                noticeUtil::push("运费:{$sendCost} 重量:{$totalWeight} 距离:{$sendDistance} 姓名:{$customName} 手机号 {$customMobile} 经纬 {$originalLng} {$originalLat} 金额:{$goodsPrice} 数量:{$goodsNum}", '15280215347');
+                noticeUtil::push("散客下单!获取运费:{$sendCost} 重量:{$totalWeight} 距离:{$sendDistance} 姓名:{$customName} 手机号 {$customMobile} 经纬 {$originalLng} {$originalLat} 金额:{$goodsPrice} 数量:{$goodsNum}", '15280215347');
             }
             $post['sendDistance'] = $sendDistance;
             $post['sendCost'] = $sendCost;

+ 3 - 0
biz-hd/purchase/classes/PurchaseClass.php

@@ -477,6 +477,9 @@ class PurchaseClass extends BaseClass
         $showDistance = sprintf("%.1f", ($distance / 1000));
         $fee = $result['est_fee'] ?? 0;
         $totalFee = sprintf("%.1f", ($fee / 100));
+
+        noticeUtil::push("花店下单,获取运费:{$totalFee} 重量:{$weight} 距离:{$showDistance} 客户名:{$customMobile} 手机号 {$customMobile} 经纬 {$shopLong} {$shopLat} 金额:{$price} 数量:{$packageNum}", '15280215347');
+
         return ['distance' => $distance, 'showDistance' => $showDistance, 'fee' => $totalFee];
     }