shish %!s(int64=4) %!d(string=hai) anos
pai
achega
694ff8dc4a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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";
                 }
             }
         }