shish 5 лет назад
Родитель
Сommit
50e2971ca0
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app-hd/controllers/PurchaseController.php

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

@@ -37,6 +37,7 @@ class PurchaseController extends BaseController
         //判断product数据是不是同个供货商的
         ProductClass::valid($productList, $currentShopId);
         $post['product'] = $productList;
+        $post['sendCost'] = isset($post['sendCost']) && is_numeric($post['sendCost']) ? $post['sendCost'] : 0;
         $respond = PurchaseClass::addPurchase($post);
         $orderSn = $respond['orderSn'] ?? '';
         $actPrice = $respond['actPrice'] ?? '';