...
|
...
|
@@ -65,7 +65,6 @@ class Order extends Frontend |
|
|
];
|
|
|
}
|
|
|
$goodsModel = new \app\index\model\Goods();
|
|
|
$goods_price = [];
|
|
|
$store_ids = [];
|
|
|
foreach($data as $key1 => $vo){
|
|
|
//获取店铺id
|
...
|
...
|
@@ -91,6 +90,7 @@ class Order extends Frontend |
|
|
}
|
|
|
$store[$key2]['goods_ids'] = $goods_ids;
|
|
|
$goods_arr = [];
|
|
|
$goods_price = [];
|
|
|
foreach($goods_ids as $key4 => $goods_id){
|
|
|
$goods = $goodsModel->findData(['g.id'=>$goods_id]);
|
|
|
if($goods['inventory'] < $number[$key4]){
|
...
|
...
|
@@ -122,6 +122,7 @@ class Order extends Frontend |
|
|
//总合计
|
|
|
$goods_total1 = 0;
|
|
|
$postage_total1 = 0;
|
|
|
// dump(collection($store)->toArray());
|
|
|
foreach($store as $key => $vo3){
|
|
|
$goods_total1 = $goods_total1 + $vo3['goods_total'];
|
|
|
$postage_total1 = $postage_total1 + $vo3['postage_price'];
|
...
|
...
|
@@ -190,7 +191,6 @@ class Order extends Frontend |
|
|
];
|
|
|
}
|
|
|
$goodsModel = new \app\index\model\Goods();
|
|
|
$goods_price = [];
|
|
|
$store_ids = [];
|
|
|
foreach($data as $key1 => $vo){
|
|
|
//获取店铺id
|
...
|
...
|
@@ -216,6 +216,7 @@ class Order extends Frontend |
|
|
}
|
|
|
$store[$key2]['goods_ids'] = $goods_ids;
|
|
|
$goods_arr = [];
|
|
|
$goods_price = [];
|
|
|
foreach($goods_ids as $key4 => $goods_id){
|
|
|
$goods = $goodsModel->findData(['g.id'=>$goods_id]);
|
|
|
if($goods['inventory'] < $number[$key4]){
|
...
|
...
|
@@ -303,7 +304,6 @@ class Order extends Frontend |
|
|
}
|
|
|
}
|
|
|
$goodsModel = new \app\index\model\Goods();
|
|
|
$goods_price = [];
|
|
|
$store_ids = [];
|
|
|
foreach($data as $key1 => $vo){
|
|
|
//获取店铺id
|
...
|
...
|
@@ -329,6 +329,7 @@ class Order extends Frontend |
|
|
}
|
|
|
$store[$key2]['goods_ids'] = $goods_ids;
|
|
|
$goods_arr = [];
|
|
|
$goods_price = [];
|
|
|
foreach($goods_ids as $key4 => $goods_id){
|
|
|
$goods = $goodsModel->findData(['g.id'=>$goods_id]);
|
|
|
if($goods['inventory'] < $number[$key4]){
|
...
|
...
|
|