feat(OrderLogic): updated logic for orders, fixed bugs, improved code quality

This commit is contained in:
mkm 2024-09-17 08:30:20 +08:00
parent c45ae4e1a1
commit e5c0752280

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) {