shish 5 years ago
parent
commit
e9fefeeecf

+ 0 - 1
app-hd/controllers/ConsoleController.php

@@ -69,7 +69,6 @@ class ConsoleController extends BaseController
             'asset' => $asset,
             'asset' => $asset,
             'notice' => $notice,
             'notice' => $notice,
             'todayData' => $todayData,
             'todayData' => $todayData,
-            'admin' => ['avatar' => 'http://a.huahb.com/images/avatar.jpg'],
             'visitStat' => $visitStat,
             'visitStat' => $visitStat,
             'incomeStat' => $incomeStat,
             'incomeStat' => $incomeStat,
         ]);
         ]);

+ 1 - 0
app-hd/controllers/OrderController.php

@@ -175,6 +175,7 @@ class OrderController extends BaseController
 
 
             $post['prePrice'] = $actPrice;
             $post['prePrice'] = $actPrice;
             $post['actPrice'] = $actPrice;
             $post['actPrice'] = $actPrice;
+            $post['sendCost'] = isset($post['sendCost']) && is_numeric($post['sendCost']) ? $post['sendCost'] : 0;
             $order = OrderClass::addOrder($post);
             $order = OrderClass::addOrder($post);
             $orderId = $order['id'];
             $orderId = $order['id'];
             $orderSn = $order['orderSn'];
             $orderSn = $order['orderSn'];