if ($_GET["ajax"]) { echo '數量更新成功!!'; exit; } alert('數量更新成功!!', '?list=1'); } else { if ($_GET["ajax"]) { echo $shopping_car->erromsg; exit; } alert('數量更新失敗!!', '?list=1'); } } //--顯示購物車清單 if ($_GET["list"]) { $shopping_car->reload(); $car = $shopping_car->car_list(NULL, 'sort,name'); if ($car) { foreach ($car as $k => $v) { $pro_aray[] = $v["id"]; } $temp = $conn->GetRow("select * from " . PREFIX . "products where id in(" . implode(',', $pro_aray) . ") and close_ezship=1"); if ($temp) { $data["close_ezship"] = 1; } } $order = $shopping_car->car(); $active = $shopping_car->active_list(); //--會員自動判斷是否升級 $check_total = 0; if ($member->getinfo('type') != 'vip' || strtotime($member->getinfo('mode_time')) <= strtotime(date('Y-m-d H:i:s'))) {