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:
commit
7a8cea4265
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user