Kirin 2 years ago
parent
commit
764ffbdd70
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/admin/controller/store/Placeorder.php

+ 2 - 3
app/admin/controller/store/Placeorder.php

@@ -122,11 +122,11 @@ class Placeorder extends AuthController
             $product = \app\admin\model\store\StoreProduct::get($info['product_id']);
             $discounts = json_decode($product['time_area_discount'] ?: '[]', true);
             $discount = 0;
-            var_dump($discounts);
             if (count($discounts) > 0) {
                 foreach ($discounts as $kk => $v) {
+                    var_dump($kk);
+                    var_dump(explode('-', $kk));
                     $times = explode('-', $kk);
-                    var_dump($times);
                     if (!(count($times) == 2)) {
                         break;
                     }
@@ -136,7 +136,6 @@ class Placeorder extends AuthController
                         $discount = $v;
                     }
                 }
-                var_dump($discount);
             }
             if ($discount > 0) {
                 $info['price'] = bcmul(bcdiv($discount, 100, 4), $info['price'], 2);