public function index()
 {
     $root = array();
     $email = strim($GLOBALS['request']['email']);
     //用户名或邮箱
     $pwd = strim($GLOBALS['request']['pwd']);
     //密码
     //检查用户,用户密码
     $user = user_check($email, $pwd);
     $user_id = intval($user['id']);
     if ($user_id > 0) {
         require APP_ROOT_PATH . 'app/Lib/uc_func.php';
         $root['user_login_status'] = 1;
         $paypassword = strim($GLOBALS['request']['paypassword']);
         $amount = floatval($GLOBALS['request']['amount']);
         $bid = intval($GLOBALS['request']['bid']);
         $result = getUcSaveCarry($amount, $paypassword, $bid);
         $root['response_code'] = $result['status'];
         $root['show_err'] = $result['show_err'];
     } else {
         $root['response_code'] = 0;
         $root['show_err'] = "未登录";
         $root['user_login_status'] = 0;
     }
     output($root);
 }
 function savecarry()
 {
     if ($GLOBALS['user_info']['id'] > 0) {
         require_once APP_ROOT_PATH . 'app/Lib/uc_func.php';
         $paypassword = strim($_REQUEST['paypassword']);
         $amount = floatval($_REQUEST['amount']);
         $bid = floatval($_REQUEST['bid']);
         $status = getUcSaveCarry($amount, $paypassword, $bid);
         if ($status['status'] == 0) {
             showErr($status['show_err']);
         } else {
             showSuccess($status['show_err']);
         }
     } else {
         app_redirect(url("index", "user#login"));
     }
 }