//-- $vip_m = $conn->GetRow("select * from " . PREFIX . "data_list where type='memberdesh' and new_type='vip' and status=1"); if ($vip_m) { if ($check_total >= $vip_m['memo'] * 1 && $vip_m['memo'] * 1 > 0) { $indata["type"] = $vip_m['new_type']; $indata["mode_time"] = date('Y-m-d H:i:s', strtotime('+1 year')); } else { $indata['type'] = 'member'; } $member->update($indata); } } } //--刪除 if ($_GET["del"] && $_GET["del"] != '') { if ($shopping_car->car_remove($_GET["del"])) { linkto('?list=1'); } } //--付款 if ($_GET["payorder"]) { $pay_bill = $shopping_car->getorder(" where id='" . $_GET["payorder"] . "'"); if ($pay_bill["pay_status"] != '1') { $temp = $shopping_car->esun_pay_send($pay_bill, '回傳路由'); } else { alert('此筆交易已經成功付款了,無需再次付款!!', -1); exit; } } //--商品退貨 if ($_GET["back_item"]) {
linkto($console->_j_web_set['main_path'] . "/member/detail"); } if ($_POST) { if ($member->login($_POST["account"], $_POST["password"])) { /*先清除原有購物車內容*/ $shopping_car = new order($console->conn, PREFIX . "shopping_car", PREFIX . "shopping_car_list", PREFIX . "products"); $temp_del = $shopping_car->car_list(); if ($temp_del) { $temp_id_str = ''; foreach ($temp_del as $k => $v) { if ($temp_id_str != '') { $temp_id_str .= ','; } $temp_id_str .= $v["shopping_car_list_id"]; } $shopping_car->car_remove($temp_id_str); } if ($_SESSION["login_page"]) { //-判斷有否暫存頁面 $temp = $_SESSION["login_page"]; unset($_SESSION["login_page"]); linkto($temp); } else { linkto($console->_j_web_set['main_path'] . "/member/detail"); } } else { alert($console->tags('INFO_INSERT_ERRO'), -1); //請確認資料是否正確 exit; } }