作者 王智

222

@@ -131,8 +131,6 @@ class ShopCar extends Api @@ -131,8 +131,6 @@ class ShopCar extends Api
131 } 131 }
132 } 132 }
133 $arr = Db::name('shopcar')->where(['user_id' => $user_id])->select(); 133 $arr = Db::name('shopcar')->where(['user_id' => $user_id])->select();
134 - print_r($arr);  
135 - die;  
136 foreach ($arr as $k => $v) { 134 foreach ($arr as $k => $v) {
137 $list[$k] = $this->CalculateCommodityAmount($v['product_id'], $v['id'], $v['buy_num']); 135 $list[$k] = $this->CalculateCommodityAmount($v['product_id'], $v['id'], $v['buy_num']);
138 } 136 }
@@ -154,11 +152,7 @@ class ShopCar extends Api @@ -154,11 +152,7 @@ class ShopCar extends Api
154 $return['list'] = $listitem; 152 $return['list'] = $listitem;
155 $this->success('', $return); 153 $this->success('', $return);
156 } 154 }
157 - public function ceshi()  
158 - {  
159 - $rr = $this->CalculateCommodityAmount(8, 78, 9);  
160 - print_r($rr);  
161 - } 155 +
162 156
163 /** 157 /**
164 * @ApiTitle (购物车接口-购物车删除) 158 * @ApiTitle (购物车接口-购物车删除)