shish 4 лет назад
Родитель
Сommit
694ff8dc4a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      console/controllers/InitController.php

+ 2 - 1
console/controllers/InitController.php

@@ -101,6 +101,7 @@ class InitController extends Controller
                 $total = bcadd($total, $labourCost, 2);
                 $final = bcsub($total, $discountAmount, 2);
                 $final = floatval($final);
+                $shopAdminName = $order['shopAdminName'] ?? '';
                 $actPrice = $order['actPrice'] ?? 0;
                 $orderSn = $order['orderSn'] ?? '';
                 if ($final != $orderPrice) {
@@ -119,7 +120,7 @@ class InitController extends Controller
                         }
                     }
                     echo "===\n";
-                    echo "商品总和:{$goodsPrice} \n运费:{$sendCost} \n人工包装费:{$labourCost} \n合计:{$total} \n优惠:{$discountAmount} \n订单金额:{$orderPrice} \n实付金额:{$actPrice}\n\n\n\n\n";
+                    echo "商品总和:{$goodsPrice} \n运费:{$sendCost} \n人工包装费:{$labourCost} \n合计:{$total} \n优惠:{$discountAmount} \n订单金额:{$orderPrice} \n实付金额:{$actPrice} \n开单人:{$shopAdminName}\n\n\n\n\n";
                 }
             }
         }