admin
2021-06-05 ddff7888bf7e754d12fb5fc85a58f3012f456490
app/src/main/java/com/tejia/lijin/app/ShoppingApi.java
@@ -65,7 +65,7 @@
    public static OkHttpClient mOkHttpClientSoon;//okHttpClient 实例
    private final static  String API_PACKAGE_NAME="com.youhuiquan.android";
    private final static String API_PACKAGE_NAME = "com.youhuiquan.android";
    static {
        mOkHttpClient = new OkHttpClient.Builder()
@@ -121,6 +121,10 @@
        params.put("page", page);
        if (subId != null)
            params.put("subId", subId);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "hotsell/getList", params, handler);
    }
@@ -259,6 +263,10 @@
        if (!StringUtils.isEmpty(page))
            params.put("page", page);
        params.put("goodsType", goodsType);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "recommend/getGoodList", params, handler);
    }
@@ -547,6 +555,9 @@
        params.put("startprice", startprice);
        params.put("endprice", endprice);
        params.put("totalSales", totalSales);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "class/getSubGoods", params, handler);
    }
@@ -560,6 +571,9 @@
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("gcid", key);
        params.put("page", page);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "class/getClassGoods", params, handler);
    }
@@ -668,6 +682,11 @@
        if (type != null && !type.equals("") && !type.equals("null") && !type.equals("0")) {
            params.put("type", type);
        }
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "commoncontent/getNavGoodsList", params, handler);
    }
@@ -683,8 +702,7 @@
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("orderId", orderId);
        params.put("userInfo.id", uid + "");
        params.put("type", type);
        commonPostWithFailture(context, BASE_URL + "lostOrder/findLostOrder", params, handler);
        commonPostWithFailture(context, BASE_URL2 + "lostOrder/findLostOrder", params, handler);
    }
    /**
@@ -828,7 +846,7 @@
        params.put("page", page);
        if (type != null)
            params.put("type", type);
        commonPost(context, BASE_URL + "user/msg/getMsgList", params, handler);
        commonPost(context, BASE_URL2 + "user/msg/getMsgList", params, handler);
    }
    /**
@@ -1340,6 +1358,12 @@
        params.put("slideVerify", slideVerify);
        params.put("phone", phone);
        commonPostWithFailture(context, BASE_URL + "sms/sendMSMLogin", params, handler);
    }
    public static void allowOneKeyLogin(Context context, BasicTextHttpResponseHandler handler) {
        LinkedHashMap<String, String> params = new LinkedHashMap<>();
        commonPostWithFailture(context, BASE_URL + "sms/allowOneKeyLogin", params, handler);
    }
    /**
@@ -2423,6 +2447,10 @@
        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
        params.put("page", page + "");
        params.put("cid", cid);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "dynamic/getList", params, handler);
    }
@@ -2971,6 +2999,10 @@
        params.put("page", page);
        if (uid != null) params.put("uid", uid + "");
        params.put("goodsType", goodsType);
        if (UserUtil.getUid(context) != null) {
            params.put("uid", UserUtil.getUid(context) + "");
        }
        commonPostWithFailture(context, BASE_URL2 + "shraeStorage/getlist", params, handler);
    }