|
|
@@ -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'] ?? '';
|