public function cancel_order () { require(RPC_ROOT . 'includes/lib_order.php'); include_once('includes/lib_transaction.php'); checkLogin(); $user_id = intval($_SESSION['user_id']); $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0; $msg = zy_cancel_order($order_id, $user_id); jsonExit("{\"status\":\"$msg[0]\",\"code\":\"$msg[1]\"}"); }
$code = '1'; } jsonExit("{\"status\":\"$msg\",\"code\":\"$code\"}"); } /* 取消订单 */ elseif ($act == 'cancel_order') { require(ROOT_PATH . 'includes/lib_order.php'); include_once('includes/lib_transaction.php'); checkLogin(); $user_id = intval($_SESSION['user_id']); $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0; $msg = zy_cancel_order($order_id, $user_id); jsonExit("{\"status\":\"$msg[0]\",\"code\":\"$msg[1]\"}"); } /* 显示会员注册界面 */ else if ($act == 'register') { require_once(ROOT_PATH . 'languages/' .$_CFG['lang']. '/user.php'); if (!isset($back_act) && isset($GLOBALS['_SERVER']['HTTP_REFERER'])) { $back_act = strpos($GLOBALS['_SERVER']['HTTP_REFERER'], 'user.php') ? './index.php' : $GLOBALS['_SERVER']['HTTP_REFERER']; } /* 取出注册扩展字段 */ $sql = 'SELECT * FROM ' . $ecs->table('reg_fields') . ' WHERE type < 2 AND display = 1 ORDER BY dis_order, id';