新浪彩票 v0.96.37版本的 MD5 值为:0c7ddce345383506e2959f5d75bdceab

以下内容为反编译后的 h.java 源代码,内容仅作参考


package com.netease.nrtc.engine.impl;

import android.text.TextUtils;
import com.netease.nrtc.engine.rawapi.IRtcRoomServerHandler;
import com.netease.yunxin.base.http.AsyncHttpURLConnection;
import ewUlBWKNoApzb1Mnhgn4.Hs3z8m4Zk5vN3zlf3ycP.tuTnrQl15gwcjciRsKuT.yDr5rnM22EGc6cSogojL.C3550;
import java.util.HashMap;
import java.util.Locale;
import org.apache.http.HttpHost;
import org.json.JSONException;
import org.json.JSONObject;
public class h {
    private static String a = "https://roomserver.netease.im/v1/sdk/command/rooms";

    public static void a(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        if (str.startsWith(HttpHost.DEFAULT_SCHEME_NAME) || str.startsWith("https")) {
            a = str;
        }
    }

    public static void a(long j, long j2, String str, long j3, final IRtcRoomServerHandler iRtcRoomServerHandler) throws Exception {
        String format = String.format(Locale.getDefault(), "%s/%d", a, Long.valueOf(j2));
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("Token", str);
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("suid", j3);
        jSONObject.put("cid", j2);
        jSONObject.put("uid", j);
        jSONObject.put("cmd", 10001);
        AsyncHttpURLConnection asyncHttpURLConnection = new AsyncHttpURLConnection(format, jSONObject.toString(), new AsyncHttpURLConnection.AsyncHttpEvents() {
            @Override
            public void onHttpComplete(String str2) {
                try {
                    JSONObject jSONObject2 = new JSONObject(str2);
                    int optInt = jSONObject2.optInt(C3550.f13679, -1);
                    IRtcRoomServerHandler iRtcRoomServerHandler2 = IRtcRoomServerHandler.this;
                    if (iRtcRoomServerHandler2 != null) {
                        if (optInt == 200) {
                            iRtcRoomServerHandler2.onResult(200, "success");
                        } else {
                            iRtcRoomServerHandler2.onResult(optInt, jSONObject2.optString("errmsg"));
                        }
                    }
                } catch (JSONException e) {
                    e.printStackTrace();
                    IRtcRoomServerHandler iRtcRoomServerHandler3 = IRtcRoomServerHandler.this;
                    if (iRtcRoomServerHandler3 != null) {
                        iRtcRoomServerHandler3.onResult(400, str2);
                    }
                }
            }

            @Override
            public void onHttpError(int i, String str2) {
                IRtcRoomServerHandler iRtcRoomServerHandler2 = IRtcRoomServerHandler.this;
                if (iRtcRoomServerHandler2 != null) {
                    iRtcRoomServerHandler2.onResult(i, str2);
                }
            }
        });
        asyncHttpURLConnection.setHead(hashMap);
        asyncHttpURLConnection.setTimeOut(3000);
        asyncHttpURLConnection.send();
    }
}