stanley-king před 8 roky
rodič
revize
f5b9b50423
1 změnil soubory, kde provedl 1 přidání a 13 odebrání
  1. 1 13
      mobile/control/cart.php

+ 1 - 13
mobile/control/cart.php

@@ -54,7 +54,6 @@ class cartControl extends mobileControl
     }
     public function listOp()
     {
-        Log::record("cart 1",Log::DEBUG);
         $model_cart	= Model('cart');
         $minest_cartid = intval($_GET['minest_cartid']);
         if($minest_cartid < 0) $minest_cartid = 0;
@@ -85,7 +84,6 @@ class cartControl extends mobileControl
             $has_more = false;
             $pages = 1;
         }
-        Log::record("cart 2",Log::DEBUG);
 
         $goods_ids = array();
         $cart_infos = array();
@@ -99,22 +97,17 @@ class cartControl extends mobileControl
             $cart_infos[] = $cart_item;
         }
 
-        Log::record("cart 3",Log::DEBUG);
-
         $helper = new goods_helper();
-        Log::record("cart 4",Log::DEBUG);
         $summaries = $helper->cart_summary($goods_ids,$related_goods);
-        Log::record("cart 5",Log::DEBUG);
         $summary_list = $summaries['summary'];
         if(!empty($related_goods)) {
             $related_summary = $helper->cart_summary($related_goods,$x);
             $summary_list = array_merge($summary_list,$related_summary['summary']);
         }
-        Log::record("cart 6",Log::DEBUG);
+
         if($minest_cartid == 0) {
             $ret['free_info'] = $this->full_send();
         }
-        Log::record("cart 7",Log::DEBUG);
 
         $ret['cart_count'] = $total;
         $ret['cart_list']  = $cart_infos;
@@ -129,12 +122,9 @@ class cartControl extends mobileControl
 
     private function full_send()
     {
-        Log::record("full_send 1",Log::DEBUG);
         $result = [];
 
         $rules = activity_helper::fullsent_rules();
-        Log::record("full_send 2",Log::DEBUG);
-
         foreach ($rules as $rule) {
             $item['title'] = '全场促销';
             $item['value'] = $rule;
@@ -142,8 +132,6 @@ class cartControl extends mobileControl
         }
 
         $free_ship = activity_helper::free_ship();
-        Log::record("full_send 3",Log::DEBUG);
-
         if($free_ship != false) {
             $item['title'] = '全场包邮';
             $item['value'] = $free_ship;