Merge pull request 'feat(OrderLogic): updated logic for orders, fixed bugs, improved code quality' (#206) from dev into main

Reviewed-on: #206
This commit is contained in:
mkm 2024-09-17 08:30:53 +08:00
commit 7a8cea4265

View File

@ -92,7 +92,9 @@ class OrderLogic extends BaseLogic
$off_activity = Config::where('name', 'off_activity')->value('value');
$field = 'id,store_name,image,unit,price,vip_price,cost,purchase,cate_id,store_info,rose';
foreach ($cart_select as $k => $v) {
$source=$v['source'];
if($source==0){
$source=$v['source'];
}
$find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find();
if (!$find) {