package com.seeran.common.utils.net;

/**
 * Created by zhyf on 2016/8/27.
 */
public class NetUtils {

    public static String handleNetCode(String codeStr) {
        int code = 0;
        try {
            code = Integer.valueOf(codeStr);
        } catch (Exception e) {

        }
        switch (code) {
            case 200:
                return "成功";
            case 701:
                return "请求参数错误";
            case 702:
                return "您已在其他设备登录,请重新登录！";
            case 703:
                return "手机号码已经存在";
            case 704:
                return "手机号码已经存在";
            case 705:
                return "密码错误";
            case 706:
                return "当前用户状态不可用";
            case 707:
                return "用户信息未完善";
            case 708:
                return "验证码不正确";
            case 400:
                return "系统错误";
            case 801:
                return "订单不存在";
            case 802:
                return "订单状态错误";
            case 803:
                return "您的身份不对，不能进行订单的修改操作";
            case 804:
                return "袋子编码已经存在";
            case 805:
                return "余额不足";
            case 901:
                return "兑换码不存在";
            case 902:
                return "该兑换码已经被兑换";
            case 903:
                return "该兑换码已经过期或失效";
            case 904:
                return "您已经兑换过该号码了";
            default:
                return "未知错误";
        }
    }
}
