Merge pull request 'dev' (#525) from dev into main
Reviewed-on: https://gitea.lihaink.cn/mkm/multi-store/pulls/525
This commit is contained in:
commit
f4460d5dfe
@ -429,6 +429,7 @@ class LocalController extends BaseAdminController
|
|||||||
'need_num' => $product['nums'],
|
'need_num' => $product['nums'],
|
||||||
'mark' => $product['mark'] ?? '',
|
'mark' => $product['mark'] ?? '',
|
||||||
'buyer_id' => $params['buyer_id'],
|
'buyer_id' => $params['buyer_id'],
|
||||||
|
'buyer_confirm' => 1,
|
||||||
'buyer_nums' => $product['nums'],
|
'buyer_nums' => $product['nums'],
|
||||||
'total_price' => $product['purchase_total'],
|
'total_price' => $product['purchase_total'],
|
||||||
'status' => 0,
|
'status' => 0,
|
||||||
|
@ -458,7 +458,9 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
|||||||
$purchaseProductOffer['purchase']=$purchaseProductOffer['price'];
|
$purchaseProductOffer['purchase']=$purchaseProductOffer['price'];
|
||||||
$product = StoreProduct::where('id', $purchaseProductOffer['product_id'])->withTrashed()->field('id,store_name,top_cate_id,two_cate_id,cate_id')->find();
|
$product = StoreProduct::where('id', $purchaseProductOffer['product_id'])->withTrashed()->field('id,store_name,top_cate_id,two_cate_id,cate_id')->find();
|
||||||
|
|
||||||
PurchaseProductOfferLogic::setProductGroupPrice($purchaseProductOffer, $product, $params['warehouse_id']);
|
if (!in_array($beforehandOrder['order_type'], [6, 9])) {
|
||||||
|
PurchaseProductOfferLogic::setProductGroupPrice($purchaseProductOffer, $product, $params['warehouse_id']);
|
||||||
|
}
|
||||||
|
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user