Browse Source

增加是否会员

ZxcZxc123 1 year ago
parent
commit
f896b08d8c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/models/store/StoreCart.php

+ 3 - 3
app/models/store/StoreCart.php

@@ -271,10 +271,10 @@ class StoreCart extends BaseModel
                 $cart['cart_num'] = $cart['trueStock'];
                 $model->where('id', $cart['id'])->update(['cart_num' => $cart['cart_num']]);
                 $valid[$k] = $cart;
-                if (($valid[$k]['productInfo']['is_best'] ?? 0) > 0) {
-                    $store_order = 1;
-                }
+            }
 
+            if (($valid[$k]['productInfo']['is_best'] ?? 0) > 0) {
+                $store_order = 1;
             }
 
             unset($valid[$k]['uid'], $valid[$k]['is_del'], $valid[$k]['is_new'], $valid[$k]['is_pay'], $valid[$k]['add_time']);